author | andyq <andyq> | 2002-10-16 18:59:07 (UTC) |
---|---|---|
committer | andyq <andyq> | 2002-10-16 18:59:07 (UTC) |
commit | 5d3fda975262b1bf406415c3f27ffd71af126304 (patch) (side-by-side diff) | |
tree | bd42d40d99ca1bea8bff37faafacbd3dcd20b9b8 | |
parent | 0feff4043ce813c63e501d6bbd3114e7fcfd8ce6 (diff) | |
download | opie-5d3fda975262b1bf406415c3f27ffd71af126304.zip opie-5d3fda975262b1bf406415c3f27ffd71af126304.tar.gz opie-5d3fda975262b1bf406415c3f27ffd71af126304.tar.bz2 |
Now displays an about box (only the version is shown)
-rw-r--r-- | noncore/settings/aqpkg/mainwin.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/noncore/settings/aqpkg/mainwin.cpp b/noncore/settings/aqpkg/mainwin.cpp index 5de4dc9..206d11c 100644 --- a/noncore/settings/aqpkg/mainwin.cpp +++ b/noncore/settings/aqpkg/mainwin.cpp @@ -1,43 +1,44 @@ /***************************************************************************
mainwin.cpp - description
-------------------
begin : Mon Aug 26 13:32:30 BST 2002
copyright : (C) 2002 by Andy Qua
email : andy.qua@blueyonder.co.uk
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include <qmenubar.h>
#include <qpopupmenu.h>
+#include <qmessagebox.h>
#include "mainwin.h"
#include "datamgr.h"
#include "networkpkgmgr.h"
#include "settingsimpl.h"
#include "helpwindow.h"
#include "global.h"
MainWindow :: MainWindow( QWidget *p, char *name )
: QMainWindow( p, name )
{
#ifdef QWS
showMaximized();
#endif
setCaption( "AQPkg - Package Manager" );
// Create our menu
QPopupMenu *help = new QPopupMenu( this );
help->insertItem( "&General", this, SLOT(displayHelp()), Qt::CTRL+Qt::Key_H );
help->insertItem( "&About", this, SLOT(displayAbout()), Qt::CTRL+Qt::Key_A );
QPopupMenu *settings = new QPopupMenu( this );
settings->insertItem( "&Settings", this, SLOT(displaySettings()), Qt::CTRL+Qt::Key_S );
@@ -60,26 +61,26 @@ MainWindow :: MainWindow( QWidget *p, char *name ) }
MainWindow :: ~MainWindow()
{
delete networkPkgWindow;
}
void MainWindow :: displaySettings()
{
SettingsImpl *dlg = new SettingsImpl( mgr, this, "Settings", true );
if ( dlg->showDlg( 0 ) )
networkPkgWindow->updateData();
delete dlg;
}
void MainWindow :: displayHelp()
{
HelpWindow *dlg = new HelpWindow( this );
dlg->exec();
delete dlg;
}
void MainWindow :: displayAbout()
{
-
+ QMessageBox::about( this, "About AQPkg", VERSION_TEXT );
}
|