summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/applets/zkbapplet/keyzcfg/cfgdlg.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/noncore/applets/zkbapplet/keyzcfg/cfgdlg.cpp b/noncore/applets/zkbapplet/keyzcfg/cfgdlg.cpp
index 6f24ea0..f4005bb 100644
--- a/noncore/applets/zkbapplet/keyzcfg/cfgdlg.cpp
+++ b/noncore/applets/zkbapplet/keyzcfg/cfgdlg.cpp
@@ -1,18 +1,21 @@
1 1
2#include <qdir.h> 2#include <qdir.h>
3#include <qregexp.h>
3#include <qpe/qpeapplication.h> 4#include <qpe/qpeapplication.h>
4#include <qpe/qcopenvelope_qws.h> 5#include <qpe/qcopenvelope_qws.h>
5#include <unistd.h> 6#include <unistd.h>
6#include "cfgdlg.h" 7#include "cfgdlg.h"
7 8
8CfgDlg::CfgDlg(QWidget* parent, CfgFile* cf, QApplication* app, bool mod): 9CfgDlg::CfgDlg(QWidget* parent, CfgFile* cf, QApplication* app, bool mod):
9 QDialog(parent, "CfgDlg", mod), cfile(cf), application(app) { 10 QDialog(parent, "CfgDlg", mod), cfile(cf), application(app) {
10 11
11 setCaption(tr("keyz configurator")); 12 setCaption(tr("keyz configurator"));
12 13
14 static QRegExp r("^common.*\\.xml$");
15 static QRegExp r2("^zkb\\.xml$");
13 QGridLayout* gl = new QGridLayout(this, 7, 5, 5, 5); 16 QGridLayout* gl = new QGridLayout(this, 7, 5, 5, 5);
14 17
15 QLabel* flabel = new QLabel("Available Keymaps", this); 18 QLabel* flabel = new QLabel("Available Keymaps", this);
16 files = new QListBox(this); 19 files = new QListBox(this);
17 QPushButton* addButton = new QPushButton(">>", this); //add->setText("Add"); 20 QPushButton* addButton = new QPushButton(">>", this); //add->setText("Add");
18 connect(addButton, SIGNAL(clicked()), this, SLOT(add())); 21 connect(addButton, SIGNAL(clicked()), this, SLOT(add()));
@@ -69,13 +72,13 @@ CfgDlg::CfgDlg(QWidget* parent, CfgFile* cf, QApplication* app, bool mod):
69 } 72 }
70 73
71 QDir dir(QPEApplication::qpeDir()+"share/zkb", "*.xml"); 74 QDir dir(QPEApplication::qpeDir()+"share/zkb", "*.xml");
72 QStringList flist = dir.entryList(); 75 QStringList flist = dir.entryList();
73 QStringList::Iterator sit; 76 QStringList::Iterator sit;
74 for(sit = flist.begin(); sit != flist.end(); ++sit) { 77 for(sit = flist.begin(); sit != flist.end(); ++sit) {
75 if (*sit != "common.xml" && *sit != "zkb.xml" && m.find(*sit) == m.end()) { 78 if (r.match(*sit)==-1 && r2.match(*sit)==-1&& m.find(*sit) == m.end()) {
76 files->insertItem(*sit); 79 files->insertItem(*sit);
77 } 80 }
78 } 81 }
79 82
80 ad->setValue(cfile->getAutorepeatDelay()); 83 ad->setValue(cfile->getAutorepeatDelay());
81 ap->setValue(cfile->getAutorepeatPeriod()); 84 ap->setValue(cfile->getAutorepeatPeriod());