Diffstat (limited to 'pwmanager/pwmanager/editcategory.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | pwmanager/pwmanager/editcategory.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pwmanager/pwmanager/editcategory.cpp b/pwmanager/pwmanager/editcategory.cpp index 4e2378c..4f19299 100644 --- a/pwmanager/pwmanager/editcategory.cpp +++ b/pwmanager/pwmanager/editcategory.cpp | |||
@@ -25,13 +25,15 @@ $Id$ | |||
25 | 25 | ||
26 | #include "editcategory.h" | 26 | #include "editcategory.h" |
27 | #include "pwmdoc.h" | 27 | #include "pwmdoc.h" |
28 | 28 | ||
29 | #include <qlayout.h> | 29 | #include <qlayout.h> |
30 | #include <qlabel.h> | 30 | #include <qlabel.h> |
31 | #include <qgroupbox.h> | 31 | #include <q3groupbox.h> |
32 | //Added by qt3to4: | ||
33 | #include <Q3GridLayout> | ||
32 | #include <klocale.h> | 34 | #include <klocale.h> |
33 | #include <kcombobox.h> | 35 | #include <kcombobox.h> |
34 | #include <klineedit.h> | 36 | #include <klineedit.h> |
35 | #include <qpushbutton.h> | 37 | #include <qpushbutton.h> |
36 | 38 | ||
37 | 39 | ||
@@ -52,24 +54,24 @@ editCategoryWnd::editCategoryWnd( PwMDoc* d, QWidget* parent, const char* name) | |||
52 | findButton( User2 )->setText (i18n("Cancel" )) ; | 54 | findButton( User2 )->setText (i18n("Cancel" )) ; |
53 | connect(this,SIGNAL(user2Clicked()), SLOT(cancel_slot())); | 55 | connect(this,SIGNAL(user2Clicked()), SLOT(cancel_slot())); |
54 | enableButton( KDialogBase::Apply, false ); | 56 | enableButton( KDialogBase::Apply, false ); |
55 | 57 | ||
56 | 58 | ||
57 | QWidget *page = plainPage(); | 59 | QWidget *page = plainPage(); |
58 | QGridLayout *layout = new QGridLayout( page, 3, 1 ); | 60 | Q3GridLayout *layout = new Q3GridLayout( page, 3, 1 ); |
59 | layout->setMargin( KDialogBase::marginHint() ); | 61 | layout->setMargin( KDialogBase::marginHint() ); |
60 | layout->setSpacing( KDialogBase::spacingHint() ); | 62 | layout->setSpacing( KDialogBase::spacingHint() ); |
61 | 63 | ||
62 | int i = 0; | 64 | int i = 0; |
63 | categoryComboBox = new KComboBox( page ); | 65 | categoryComboBox = new KComboBox( page ); |
64 | QLabel* label = new QLabel( categoryComboBox, i18n("Category:"), page ); | 66 | QLabel* label = new QLabel( categoryComboBox, i18n("Category:"), page ); |
65 | layout->addWidget( label, i, 0 ); | 67 | layout->addWidget( label, i, 0 ); |
66 | layout->addWidget( categoryComboBox, i, 1 ); | 68 | layout->addWidget( categoryComboBox, i, 1 ); |
67 | i++; | 69 | i++; |
68 | categoryComboBox->setEditable( FALSE ); | 70 | categoryComboBox->setEditable( FALSE ); |
69 | categoryComboBox->setSizeLimit( 100 ); | 71 | categoryComboBox->setMaxVisibleItems( 100 ); |
70 | connect(categoryComboBox,SIGNAL(activated(const QString&)), SLOT(categorySelected(const QString&))); | 72 | connect(categoryComboBox,SIGNAL(activated(const QString&)), SLOT(categorySelected(const QString&))); |
71 | 73 | ||
72 | 74 | ||
73 | descLineEdit = new KLineEdit( page, "descLineEdit" ); | 75 | descLineEdit = new KLineEdit( page, "descLineEdit" ); |
74 | label = new QLabel( descLineEdit, i18n("Text1 (Description):"), page ); | 76 | label = new QLabel( descLineEdit, i18n("Text1 (Description):"), page ); |
75 | layout->addWidget( label, i, 0 ); | 77 | layout->addWidget( label, i, 0 ); |