From 07c93af78c721c302a69df475235962ee003d532 Mon Sep 17 00:00:00 2001 From: zautrix Date: Wed, 20 Oct 2004 11:31:39 +0000 Subject: fixed categorie dialog access --- (limited to 'pwmanager/pwmanager') 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 @@ -25,6 +25,11 @@ #include #include "pwmprefs.h" +#ifndef DESKTOP_VERSION +#include +#else +#include +#endif #define INITIAL_CATEGORIES_WIDTH 100 PwMViewStyle_1::PwMViewStyle_1(PwMView *view) @@ -76,6 +81,11 @@ PwMViewStyle_1::PwMViewStyle_1(PwMView *view) 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())); 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 @@ -24,7 +24,7 @@ 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); @@ -37,9 +37,9 @@ RenCatWnd::RenCatWnd(QWidget *parent, 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())); -- cgit v0.9.0.2