forked from pool/ktorrent
Accepted submit request 53723 from user dirkmueller OBS-URL: https://build.opensuse.org/request/show/53723 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ktorrent?expand=0&rev=62
65 lines
1.7 KiB
Diff
65 lines
1.7 KiB
Diff
--- ktorrent/CMakeLists.txt 2010-11-22 20:03:36.000000000 +0100
|
|
+++ ktorrent/CMakeLists.txt 2010-11-22 21:17:17.940000085 +0100
|
|
@@ -92,5 +92,6 @@
|
|
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)
|
|
|
|
add_subdirectory(icons)
|
|
--- ktorrent/dhttip 1970-01-01 01:00:00.000000000 +0100
|
|
+++ ktorrent/dhttip 2010-11-22 21:17:17.931000085 +0100
|
|
@@ -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>
|
|
+
|
|
--- ktorrent/gui.cpp 2010-11-22 20:03:36.000000000 +0100
|
|
+++ ktorrent/gui.cpp 2010-11-22 21:17:17.931000085 +0100
|
|
@@ -38,6 +38,7 @@
|
|
#include <kpushbutton.h>
|
|
#include <kxmlguifactory.h>
|
|
#include <KNotifyConfigWidget>
|
|
+#include <KTipDialog>
|
|
#include <kio/jobclasses.h>
|
|
#include <kio/jobuidelegate.h>
|
|
#include <kparts/partmanager.h>
|
|
@@ -128,6 +129,8 @@
|
|
//markk.update();
|
|
updateActions();
|
|
core->startUpdateTimer();
|
|
+
|
|
+ QTimer::singleShot(0, this, SLOT(showDhtTip()));
|
|
}
|
|
|
|
GUI:: ~GUI()
|
|
@@ -599,6 +602,11 @@
|
|
return torrent_activity;
|
|
}
|
|
|
|
+ void GUI::showDhtTip()
|
|
+ {
|
|
+ KTipDialog::showTip(this, "ktorrent/dhttip");
|
|
+ }
|
|
+
|
|
}
|
|
|
|
#include "gui.moc"
|
|
--- ktorrent/gui.h 2010-11-22 20:03:36.000000000 +0100
|
|
+++ ktorrent/gui.h 2010-11-22 21:18:05.565000084 +0100
|
|
@@ -113,6 +113,7 @@
|
|
void showOrHide();
|
|
void configureNotifications();
|
|
void activePartChanged(KParts::Part* p);
|
|
+ void showDhtTip();
|
|
|
|
private:
|
|
void setupActions();
|