summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2004-10-20 11:31:39 (UTC)
committer zautrix <zautrix>2004-10-20 11:31:39 (UTC)
commit07c93af78c721c302a69df475235962ee003d532 (patch) (side-by-side diff)
treeee87f2d89bbaf4ac7ec502c751718fb2274306aa
parentc45d38a1574bcb53e1b0fd0dc4987cb725d430c0 (diff)
downloadkdepimpi-07c93af78c721c302a69df475235962ee003d532.zip
kdepimpi-07c93af78c721c302a69df475235962ee003d532.tar.gz
kdepimpi-07c93af78c721c302a69df475235962ee003d532.tar.bz2
fixed categorie dialog access
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--pwmanager/pwmanager/pwmviewstyle_1.cpp10
-rw-r--r--pwmanager/pwmanager/rencatwnd.cpp6
2 files changed, 13 insertions, 3 deletions
diff --git a/pwmanager/pwmanager/pwmviewstyle_1.cpp b/pwmanager/pwmanager/pwmviewstyle_1.cpp
index a85cece..6b9def3 100644
--- a/pwmanager/pwmanager/pwmviewstyle_1.cpp
+++ b/pwmanager/pwmanager/pwmviewstyle_1.cpp
@@ -24,8 +24,13 @@
#include <klocale.h>
#include "pwmprefs.h"
+#ifndef DESKTOP_VERSION
+#include <qpe/qpeapplication.h>
+#else
+#include <qapplication.h>
+#endif
#define INITIAL_CATEGORIES_WIDTH 100
PwMViewStyle_1::PwMViewStyle_1(PwMView *view)
: QObject()
@@ -75,8 +80,13 @@ PwMViewStyle_1::PwMViewStyle_1(PwMView *view)
catCtxMenu->insertItem(i18n("&Rename"),
view, SLOT(renCatButton_slot()));
catCtxMenu->insertItem(i18n("&Delete"),
view, SLOT(delCatButton_slot()));
+
+#ifndef DESKTOP_VERSION
+ QPEApplication::setStylusOperation( categoriesList->viewport(), QPEApplication::RightOnHold );
+#endif
+
// connections
connect(categoriesList, SIGNAL(highlighted(int)),
view, SLOT(shiftToView()));
connect(categoriesList,
diff --git a/pwmanager/pwmanager/rencatwnd.cpp b/pwmanager/pwmanager/rencatwnd.cpp
index 1e8f9e9..3c4de27 100644
--- a/pwmanager/pwmanager/rencatwnd.cpp
+++ b/pwmanager/pwmanager/rencatwnd.cpp
@@ -23,9 +23,9 @@
RenCatWnd::RenCatWnd(QWidget *parent,
const char *name, bool modal, WFlags f)
- : QDialog(parent, name, modal, f)
+ : QDialog(parent, name, true, f)
{
vbox1 = new QVBox(this);
label = new QLabel(vbox1);
newName = new QLineEdit(vbox1);
@@ -36,11 +36,11 @@ RenCatWnd::RenCatWnd(QWidget *parent,
vbox1->setSpacing(10);
vbox1->setMargin(10);
hbox1->setSpacing(10);
- resize(400, 100);
+ resize(220, 100);
- setCaption(i18n("rename category"));
+ setCaption(i18n("Rename category"));
label->setText(i18n("New category name:"));
connect(okButton, SIGNAL(clicked()), this, SLOT(okButton_slot()));
connect(cancelButton, SIGNAL(clicked()), this, SLOT(cancelButton_slot()));