2012-03-12 19:15:13 +00:00
|
|
|
Index: ktorrent/CMakeLists.txt
|
|
|
|
===================================================================
|
|
|
|
--- ktorrent/CMakeLists.txt.orig
|
|
|
|
+++ ktorrent/CMakeLists.txt
|
|
|
|
@@ -91,6 +91,7 @@ install(FILES ktorrentplugin.desktop DE
|
2010-11-22 23:01:31 +00:00
|
|
|
install(FILES ktorrentui.rc DESTINATION ${DATA_INSTALL_DIR}/ktorrent )
|
|
|
|
install(FILES kttorrentactivityui.rc DESTINATION ${DATA_INSTALL_DIR}/ktorrent )
|
|
|
|
install(FILES ktorrent.notifyrc DESTINATION ${DATA_INSTALL_DIR}/ktorrent )
|
|
|
|
+install(FILES dhttip DESTINATION ${DATA_INSTALL_DIR}/ktorrent)
|
|
|
|
|
2012-03-12 19:15:13 +00:00
|
|
|
if (NOT ${ENABLE_KIO_MAGNET})
|
|
|
|
install(FILES magnet.protocol DESTINATION ${SERVICES_INSTALL_DIR} )
|
|
|
|
Index: ktorrent/dhttip
|
|
|
|
===================================================================
|
|
|
|
--- /dev/null
|
|
|
|
+++ ktorrent/dhttip
|
2010-11-22 23:01:31 +00:00
|
|
|
@@ -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>
|
|
|
|
+
|
2012-03-12 19:15:13 +00:00
|
|
|
Index: ktorrent/gui.cpp
|
|
|
|
===================================================================
|
|
|
|
--- ktorrent/gui.cpp.orig
|
|
|
|
+++ ktorrent/gui.cpp
|
2009-11-25 14:21:56 +00:00
|
|
|
@@ -38,6 +38,7 @@
|
|
|
|
#include <kpushbutton.h>
|
|
|
|
#include <kxmlguifactory.h>
|
|
|
|
#include <KNotifyConfigWidget>
|
|
|
|
+#include <KTipDialog>
|
|
|
|
#include <kio/jobclasses.h>
|
|
|
|
#include <kio/jobuidelegate.h>
|
2010-11-22 23:01:31 +00:00
|
|
|
#include <kparts/partmanager.h>
|
2012-03-12 19:15:13 +00:00
|
|
|
@@ -122,6 +123,8 @@ namespace kt
|
2009-11-25 14:21:56 +00:00
|
|
|
//markk.update();
|
|
|
|
updateActions();
|
|
|
|
core->startUpdateTimer();
|
|
|
|
+
|
|
|
|
+ QTimer::singleShot(0, this, SLOT(showDhtTip()));
|
|
|
|
}
|
|
|
|
|
|
|
|
GUI:: ~GUI()
|
2012-03-12 19:15:13 +00:00
|
|
|
@@ -597,6 +600,11 @@ namespace kt
|
2009-11-25 14:21:56 +00:00
|
|
|
return torrent_activity;
|
|
|
|
}
|
2010-07-19 19:25:50 +00:00
|
|
|
|
|
|
|
+ void GUI::showDhtTip()
|
|
|
|
+ {
|
|
|
|
+ KTipDialog::showTip(this, "ktorrent/dhttip");
|
|
|
|
+ }
|
2009-11-25 14:21:56 +00:00
|
|
|
+
|
|
|
|
}
|
|
|
|
|
|
|
|
#include "gui.moc"
|
2012-03-12 19:15:13 +00:00
|
|
|
Index: ktorrent/gui.h
|
|
|
|
===================================================================
|
|
|
|
--- ktorrent/gui.h.orig
|
|
|
|
+++ ktorrent/gui.h
|
|
|
|
@@ -113,6 +113,7 @@ namespace kt
|
2009-11-25 14:21:56 +00:00
|
|
|
void showOrHide();
|
|
|
|
void configureNotifications();
|
2010-11-22 23:01:31 +00:00
|
|
|
void activePartChanged(KParts::Part* p);
|
2009-11-25 14:21:56 +00:00
|
|
|
+ void showDhtTip();
|
|
|
|
|
|
|
|
private:
|
|
|
|
void setupActions();
|