forked from pool/ktorrent
Copy from KDE:Distro:Factory/ktorrent based on submit request 43162 from user Beineri OBS-URL: https://build.opensuse.org/request/show/43162 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ktorrent?expand=0&rev=58
73 lines
1.9 KiB
Diff
73 lines
1.9 KiB
Diff
Index: ktorrent/gui.cpp
|
|
===================================================================
|
|
--- ktorrent/gui.cpp (revision 1053967)
|
|
+++ ktorrent/gui.cpp (working copy)
|
|
@@ -38,6 +38,7 @@
|
|
#include <kpushbutton.h>
|
|
#include <kxmlguifactory.h>
|
|
#include <KNotifyConfigWidget>
|
|
+#include <KTipDialog>
|
|
#include <kio/jobclasses.h>
|
|
#include <kio/jobuidelegate.h>
|
|
|
|
@@ -116,6 +117,8 @@
|
|
//markk.update();
|
|
updateActions();
|
|
core->startUpdateTimer();
|
|
+
|
|
+ QTimer::singleShot(0, this, SLOT(showDhtTip()));
|
|
}
|
|
|
|
GUI:: ~GUI()
|
|
@@ -600,6 +603,11 @@
|
|
return torrent_activity;
|
|
}
|
|
|
|
+ void GUI::showDhtTip()
|
|
+ {
|
|
+ KTipDialog::showTip(this, "ktorrent/dhttip");
|
|
+ }
|
|
+
|
|
}
|
|
|
|
#include "gui.moc"
|
|
Index: ktorrent/dhttip
|
|
===================================================================
|
|
--- ktorrent/dhttip (revision 0)
|
|
+++ ktorrent/dhttip (revision 0)
|
|
@@ -0,0 +1,11 @@
|
|
+<tip category="Ktorrent">
|
|
+<html>
|
|
+<p>
|
|
+Please respect the rights of copyright holders.
|
|
+</p>
|
|
+<p>
|
|
+Free Software also depends upon the principle of copyright.
|
|
+</p>
|
|
+</html>
|
|
+</tip>
|
|
+
|
|
Index: ktorrent/gui.h
|
|
===================================================================
|
|
--- ktorrent/gui.h (revision 1053967)
|
|
+++ ktorrent/gui.h (working copy)
|
|
@@ -121,6 +121,7 @@
|
|
void applySettings();
|
|
void showOrHide();
|
|
void configureNotifications();
|
|
+ void showDhtTip();
|
|
|
|
private:
|
|
void setupActions();
|
|
Index: ktorrent/CMakeLists.txt
|
|
===================================================================
|
|
--- ktorrent/CMakeLists.txt (revision 1053967)
|
|
+++ ktorrent/CMakeLists.txt (working copy)
|
|
@@ -89,5 +89,6 @@
|
|
install(FILES magnet.protocol DESTINATION ${SERVICES_INSTALL_DIR} )
|
|
install(FILES ktorrentui.rc DESTINATION ${DATA_INSTALL_DIR}/ktorrent )
|
|
install(FILES ktorrent.notifyrc DESTINATION ${DATA_INSTALL_DIR}/ktorrent )
|
|
+install(FILES dhttip DESTINATION ${DATA_INSTALL_DIR}/ktorrent)
|
|
|
|
add_subdirectory(icons)
|