summaryrefslogtreecommitdiffabout
path: root/kmicromail/mainwindow.cpp
Unidiff
Diffstat (limited to 'kmicromail/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--kmicromail/mainwindow.cpp27
1 files changed, 27 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 @@
6#include <kdialog.h> 6#include <kdialog.h>
7#include <kiconloader.h> 7#include <kiconloader.h>
8#include <kapplication.h>
8 9
9#ifndef DESKTOP_VERSION 10#ifndef DESKTOP_VERSION
@@ -151,4 +152,17 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
151 closeMail->addTo(toolBar); 152 closeMail->addTo(toolBar);
152 closeMail->addTo(mailMenu); 153 closeMail->addTo(mailMenu);
154
155
156 QPopupMenu* helpMenu = new QPopupMenu( menuBar );
157 menuBar->insertItem( tr( "Help" ), helpMenu );
158 QAction* li = new QAction(tr("About"), QPixmap(), 0, 0, this);
159 connect( li, SIGNAL( activated() ), SLOT( showAbout()) );
160 li->addTo(helpMenu);
161 li = new QAction(tr("Licence"),QPixmap(), 0, 0, this);
162 connect( li, SIGNAL( activated() ), SLOT( showLicence()) );
163 li->addTo(helpMenu);
164 li = new QAction(tr("LibEtPan Licence"), QPixmap(), 0, 0, this);
165 connect( li, SIGNAL( activated() ), SLOT( showEtpanLicence()) );
166 li->addTo(helpMenu);
153} 167}
154 168
@@ -157,4 +171,17 @@ MainWindow::~MainWindow()
157} 171}
158 172
173void MainWindow::showLicence()
174{
175 KApplication::showLicence();
176}
177void MainWindow::showAbout()
178{
179 qDebug("MainWindow::showAbout() ");
180}
181void MainWindow::showEtpanLicence()
182{
183 KApplication::showFile( "LibEtPan licence", "kdepim/kmicromail/COPYRIGHTlibetpan" );
184
185}
159void MainWindow::appMessage(const QCString &, const QByteArray &) 186void MainWindow::appMessage(const QCString &, const QByteArray &)
160{ 187{