-rw-r--r-- | korganizer/mainwindow.cpp | 10 | ||||
-rw-r--r-- | korganizer/mainwindow.h | 1 |
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 @@ -43,2 +43,3 @@ #include "kdialogbase.h" +#include "kapplication.h" #include "kstandarddirs.h" @@ -693,2 +694,6 @@ void MainWindow::initActions() SLOT( about() ) ); + action = new QAction( "licence", i18n("Licence..."), 0, this ); + action->addTo( helpMenu ); + connect( action, SIGNAL( activated() ), + SLOT( licence() ) ); //menuBar->insertSeparator(); @@ -1062,2 +1067,7 @@ 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 @@ -42,2 +42,3 @@ class MainWindow : public QMainWindow void about(); + void licence(); void faq(); |