summaryrefslogtreecommitdiffabout
Unidiff
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
@@ -22,12 +22,17 @@
22#include "listviewpwm.h" 22#include "listviewpwm.h"
23#include "commentbox.h" 23#include "commentbox.h"
24 24
25#include <klocale.h> 25#include <klocale.h>
26#include "pwmprefs.h" 26#include "pwmprefs.h"
27 27
28#ifndef DESKTOP_VERSION
29#include <qpe/qpeapplication.h>
30#else
31#include <qapplication.h>
32#endif
28 #define INITIAL_CATEGORIES_WIDTH100 33 #define INITIAL_CATEGORIES_WIDTH100
29 34
30PwMViewStyle_1::PwMViewStyle_1(PwMView *view) 35PwMViewStyle_1::PwMViewStyle_1(PwMView *view)
31 : QObject() 36 : QObject()
32{ 37{
33#ifndef PWM_EMBEDDED 38#ifndef PWM_EMBEDDED
@@ -73,12 +78,17 @@ PwMViewStyle_1::PwMViewStyle_1(PwMView *view)
73 categoriesTitle->setText(i18n("Categories:")); 78 categoriesTitle->setText(i18n("Categories:"));
74 catCtxMenu = new QPopupMenu(view); 79 catCtxMenu = new QPopupMenu(view);
75 catCtxMenu->insertItem(i18n("&Rename"), 80 catCtxMenu->insertItem(i18n("&Rename"),
76 view, SLOT(renCatButton_slot())); 81 view, SLOT(renCatButton_slot()));
77 catCtxMenu->insertItem(i18n("&Delete"), 82 catCtxMenu->insertItem(i18n("&Delete"),
78 view, SLOT(delCatButton_slot())); 83 view, SLOT(delCatButton_slot()));
84
85#ifndef DESKTOP_VERSION
86 QPEApplication::setStylusOperation( categoriesList->viewport(), QPEApplication::RightOnHold );
87#endif
88
79 // connections 89 // connections
80 connect(categoriesList, SIGNAL(highlighted(int)), 90 connect(categoriesList, SIGNAL(highlighted(int)),
81 view, SLOT(shiftToView())); 91 view, SLOT(shiftToView()));
82 connect(categoriesList, 92 connect(categoriesList,
83 SIGNAL(rightButtonClicked(QListBoxItem *, const QPoint &)), 93 SIGNAL(rightButtonClicked(QListBoxItem *, const QPoint &)),
84 this, 94 this,
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
@@ -21,28 +21,28 @@
21 21
22#include <klocale.h> 22#include <klocale.h>
23 23
24 24
25RenCatWnd::RenCatWnd(QWidget *parent, 25RenCatWnd::RenCatWnd(QWidget *parent,
26 const char *name, bool modal, WFlags f) 26 const char *name, bool modal, WFlags f)
27 : QDialog(parent, name, modal, f) 27 : QDialog(parent, name, true, f)
28{ 28{
29 vbox1 = new QVBox(this); 29 vbox1 = new QVBox(this);
30 label = new QLabel(vbox1); 30 label = new QLabel(vbox1);
31 newName = new QLineEdit(vbox1); 31 newName = new QLineEdit(vbox1);
32 hbox1 = new QHBox(vbox1); 32 hbox1 = new QHBox(vbox1);
33 okButton = new QPushButton(i18n("&Ok"), hbox1); 33 okButton = new QPushButton(i18n("&Ok"), hbox1);
34 cancelButton = new QPushButton(i18n("&Cancel"), hbox1); 34 cancelButton = new QPushButton(i18n("&Cancel"), hbox1);
35 35
36 vbox1->setSpacing(10); 36 vbox1->setSpacing(10);
37 vbox1->setMargin(10); 37 vbox1->setMargin(10);
38 hbox1->setSpacing(10); 38 hbox1->setSpacing(10);
39 39
40 resize(400, 100); 40 resize(220, 100);
41 41
42 setCaption(i18n("rename category")); 42 setCaption(i18n("Rename category"));
43 label->setText(i18n("New category name:")); 43 label->setText(i18n("New category name:"));
44 44
45 connect(okButton, SIGNAL(clicked()), this, SLOT(okButton_slot())); 45 connect(okButton, SIGNAL(clicked()), this, SLOT(okButton_slot()));
46 connect(cancelButton, SIGNAL(clicked()), this, SLOT(cancelButton_slot())); 46 connect(cancelButton, SIGNAL(clicked()), this, SLOT(cancelButton_slot()));
47} 47}
48 48