summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/keyz-cfg/cfgdlg.cpp6
-rw-r--r--noncore/apps/keyz-cfg/cfgdlg.h2
-rw-r--r--noncore/apps/keyz-cfg/main.cpp12
3 files changed, 11 insertions, 9 deletions
diff --git a/noncore/apps/keyz-cfg/cfgdlg.cpp b/noncore/apps/keyz-cfg/cfgdlg.cpp
index 863f21e..3965198 100644
--- a/noncore/apps/keyz-cfg/cfgdlg.cpp
+++ b/noncore/apps/keyz-cfg/cfgdlg.cpp
@@ -6,5 +6,7 @@
#include "cfgdlg.h"
-CfgDlg::CfgDlg(QWidget* parent, CfgFile* cf, QApplication* app):QDialog(parent), cfile(cf), application(app) {
+CfgDlg::CfgDlg(QWidget* parent, CfgFile* cf, QApplication* app, bool mod):
+ QDialog(parent, "CfgDlg", mod), cfile(cf), application(app) {
+
setCaption(tr("keyz configurator"));
@@ -28,5 +30,5 @@ CfgDlg::CfgDlg(QWidget* parent, CfgFile* cf, QApplication* app):QDialog(parent),
ad = new QSpinBox(50, 5000, 5, this);
ap = new QSpinBox(0, 5000, 5, this);
-
+
// QLabel* adms = new QLabel("ms", this);
// QLabel* apms = new QLabel("ms", this);
diff --git a/noncore/apps/keyz-cfg/cfgdlg.h b/noncore/apps/keyz-cfg/cfgdlg.h
index 16732ee..cbefdf1 100644
--- a/noncore/apps/keyz-cfg/cfgdlg.h
+++ b/noncore/apps/keyz-cfg/cfgdlg.h
@@ -15,5 +15,5 @@ Q_OBJECT
public:
- CfgDlg(QWidget* parent, CfgFile* cfile, QApplication *);
+ CfgDlg(QWidget* parent, CfgFile* cfile, QApplication *, bool b = false);
virtual ~CfgDlg();
diff --git a/noncore/apps/keyz-cfg/main.cpp b/noncore/apps/keyz-cfg/main.cpp
index 55cc23e..4615562 100644
--- a/noncore/apps/keyz-cfg/main.cpp
+++ b/noncore/apps/keyz-cfg/main.cpp
@@ -1,4 +1,5 @@
#include <stdio.h>
#include <qpe/qpeapplication.h>
+#include <qlayout.h>
#include <qmainwindow.h>
@@ -11,11 +12,10 @@ int main( int argc, char **argv ) {
cp.load(QPEApplication::qpeDir()+"/share/zkb/zkb.xml", cfile);
- QMainWindow m;
- CfgDlg c(&m, &cfile, &app);
- app.showMainWidget(&m);
- m.hide();
- c.showMaximized();
- int ret = app.exec();
+ CfgDlg c(0, &cfile, &app, true);
+
+
+ app.showMainWidget(&c);
+ int ret = QPEApplication::execDialog(&c);
return ret;