summaryrefslogtreecommitdiffabout
path: root/kmicromail/mainwindow.cpp
Side-by-side diff
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
@@ -1,15 +1,16 @@
#include <qlabel.h>
#include <qvbox.h>
#include <qheader.h>
#include <qtimer.h>
#include <qlayout.h>
#include <kdialog.h>
#include <kiconloader.h>
+#include <kapplication.h>
#ifndef DESKTOP_VERSION
#include <qpe/qpeapplication.h>
#endif
#include "defines.h"
#include "mainwindow.h"
#include <KDGanttMinimizeSplitter.h>
@@ -145,22 +146,48 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
QLabel *spacer = new QLabel( toolBar );
spacer->setBackgroundMode( QWidget::PaletteButton );
toolBar->setStretchableWidget( spacer );
QAction* closeMail = new QAction(tr("Close"),SmallIcon("exit"), 0, 0, this);
connect( closeMail, SIGNAL( activated() ), SLOT( close() ) );
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);
}
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 &)
{
qDebug("appMessage implemented by subclass");
}
void MainWindow::slotAdjustLayout() {
/*