[Uml-devel] kdesdk/umbrello/umbrello

Stephan Binner binner at kde.org
Mon Nov 10 06:51:30 UTC 2003


CVS commit by binner: 

Added "Tip of the Day" to "Help" menu


  M +7 -1      uml.cpp   1.79
  M +5 -0      uml.h   1.29


--- kdesdk/umbrello/umbrello/uml.cpp  #1.78:1.79
@@ -47,4 +47,5 @@
 #include <kstandarddirs.h>
 #include <kstatusbar.h>
+#include <ktip.h>
 
 #include <qclipboard.h>
@@ -255,4 +256,6 @@ void UMLApp::initActions() {
                                     "zoom100");
 
+        KStdAction::tipOfDay( this, SLOT( tipOfTheDay() ), actionCollection() );
+
         // use the absolute path to your umbrelloui.rc file for testing purpose in createGUI();
         createGUI();
@@ -1347,5 +1350,8 @@ void UMLApp::updateLangSelectMenu() {
 }
 
-
+void UMLApp::tipOfTheDay()
+{
+   KTipDialog::showTip(this ,QString::null, true);
+}
 
 void UMLApp::keyPressEvent(QKeyEvent *e) {

--- kdesdk/umbrello/umbrello/uml.h  #1.28:1.29
@@ -364,4 +364,9 @@ protected slots:
         void updateLangSelectMenu();
 
+        /**
+         * Show "Tip of the Day" dialog
+         */
+        void tipOfTheDay();
+
 public slots:
         






More information about the umbrello-devel mailing list