summaryrefslogtreecommitdiffabout
path: root/kmicromail
authorzautrix <zautrix>2004-08-06 21:32:25 (UTC)
committer zautrix <zautrix>2004-08-06 21:32:25 (UTC)
commitacc0637eb0965d66b96d138d74514acf2cf24792 (patch) (side-by-side diff)
tree6787abd671406bbdeb2e3387aa39ba4806d84689 /kmicromail
parent2087f0a25354897ff9b987093e1c6716d7bd967b (diff)
downloadkdepimpi-acc0637eb0965d66b96d138d74514acf2cf24792.zip
kdepimpi-acc0637eb0965d66b96d138d74514acf2cf24792.tar.gz
kdepimpi-acc0637eb0965d66b96d138d74514acf2cf24792.tar.bz2
more licence stuff
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
@@ -5,6 +5,7 @@
#include <qlayout.h>
#include <kdialog.h>
#include <kiconloader.h>
+#include <kapplication.h>
#ifndef DESKTOP_VERSION
#include <qpe/qpeapplication.h>
@@ -150,12 +151,38 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
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");
diff --git a/kmicromail/mainwindow.h b/kmicromail/mainwindow.h
index 0cb252c..d6dc6cc 100644
--- a/kmicromail/mainwindow.h
+++ b/kmicromail/mainwindow.h
@@ -40,6 +40,9 @@ protected slots:
virtual void slotAdjustLayout();
virtual void slotEditSettings();
virtual void mailLeftClicked( QListViewItem * );
+ void showLicence();
+ void showAbout();
+ void showEtpanLicence();
protected:
QToolBar *toolBar;