summaryrefslogtreecommitdiffabout
path: root/kmicromail
Side-by-side diff
Diffstat (limited to 'kmicromail') (more/less context) (ignore whitespace changes)
-rw-r--r--kmicromail/mainwindow.cpp27
-rw-r--r--kmicromail/mainwindow.h3
2 files changed, 30 insertions, 0 deletions
diff --git a/kmicromail/mainwindow.cpp b/kmicromail/mainwindow.cpp
index aa51a37..24196b4 100644
--- a/kmicromail/mainwindow.cpp
+++ b/kmicromail/mainwindow.cpp
@@ -6,4 +6,5 @@
#include <kdialog.h>
#include <kiconloader.h>
+#include <kapplication.h>
#ifndef DESKTOP_VERSION
@@ -151,4 +152,17 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
closeMail->addTo(toolBar);
closeMail->addTo(mailMenu);
+
+
+ QPopupMenu* helpMenu = new QPopupMenu( menuBar );
+ menuBar->insertItem( tr( "Help" ), helpMenu );
+ QAction* li = new QAction(tr("About"), QPixmap(), 0, 0, this);
+ connect( li, SIGNAL( activated() ), SLOT( showAbout()) );
+ li->addTo(helpMenu);
+ li = new QAction(tr("Licence"),QPixmap(), 0, 0, this);
+ connect( li, SIGNAL( activated() ), SLOT( showLicence()) );
+ li->addTo(helpMenu);
+ li = new QAction(tr("LibEtPan Licence"), QPixmap(), 0, 0, this);
+ connect( li, SIGNAL( activated() ), SLOT( showEtpanLicence()) );
+ li->addTo(helpMenu);
}
@@ -157,4 +171,17 @@ MainWindow::~MainWindow()
}
+void MainWindow::showLicence()
+{
+ KApplication::showLicence();
+}
+void MainWindow::showAbout()
+{
+ qDebug("MainWindow::showAbout() ");
+}
+void MainWindow::showEtpanLicence()
+{
+ KApplication::showFile( "LibEtPan licence", "kdepim/kmicromail/COPYRIGHTlibetpan" );
+
+}
void MainWindow::appMessage(const QCString &, const QByteArray &)
{
diff --git a/kmicromail/mainwindow.h b/kmicromail/mainwindow.h
index 0cb252c..d6dc6cc 100644
--- a/kmicromail/mainwindow.h
+++ b/kmicromail/mainwindow.h
@@ -41,4 +41,7 @@ protected slots:
virtual void slotEditSettings();
virtual void mailLeftClicked( QListViewItem * );
+ void showLicence();
+ void showAbout();
+ void showEtpanLicence();
protected: