summaryrefslogtreecommitdiffabout
path: root/korganizer
Side-by-side diff
Diffstat (limited to 'korganizer') (more/less context) (show whitespace changes)
-rw-r--r--korganizer/mainwindow.cpp10
-rw-r--r--korganizer/mainwindow.h1
2 files changed, 11 insertions, 0 deletions
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp
index 6020a46..57b299f 100644
--- a/korganizer/mainwindow.cpp
+++ b/korganizer/mainwindow.cpp
@@ -42,4 +42,5 @@
#include "kodialogmanager.h"
#include "kdialogbase.h"
+#include "kapplication.h"
#include "kstandarddirs.h"
#include "koprefs.h"
@@ -692,4 +693,8 @@ void MainWindow::initActions()
connect( action, SIGNAL( activated() ),
SLOT( about() ) );
+ action = new QAction( "licence", i18n("Licence..."), 0, this );
+ action->addTo( helpMenu );
+ connect( action, SIGNAL( activated() ),
+ SLOT( licence() ) );
//menuBar->insertSeparator();
@@ -1061,4 +1066,9 @@ void MainWindow::whatsNew()
}
+void MainWindow::licence()
+{
+ KApplication::showLicence();
+
+}
void MainWindow::about()
{
diff --git a/korganizer/mainwindow.h b/korganizer/mainwindow.h
index a681f42..8a3f7b3 100644
--- a/korganizer/mainwindow.h
+++ b/korganizer/mainwindow.h
@@ -41,4 +41,5 @@ class MainWindow : public QMainWindow
void multiSync( bool askforPrefs = false );
void about();
+ void licence();
void faq();
void usertrans();