Diffstat (limited to 'pwmanager/pwmanager/addentrywnd_emb.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | pwmanager/pwmanager/addentrywnd_emb.cpp | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/pwmanager/pwmanager/addentrywnd_emb.cpp b/pwmanager/pwmanager/addentrywnd_emb.cpp index 2fa9e8a..f76d33b 100644 --- a/pwmanager/pwmanager/addentrywnd_emb.cpp +++ b/pwmanager/pwmanager/addentrywnd_emb.cpp | |||
@@ -29,12 +29,15 @@ $Id$ | |||
29 | #include <qlayout.h> | 29 | #include <qlayout.h> |
30 | #include <qlabel.h> | 30 | #include <qlabel.h> |
31 | #include <qtabwidget.h> | 31 | #include <qtabwidget.h> |
32 | #include <qgroupbox.h> | 32 | #include <q3groupbox.h> |
33 | //Added by qt3to4: | ||
34 | #include <Q3GridLayout> | ||
35 | #include <Q3VBoxLayout> | ||
33 | #include <klocale.h> | 36 | #include <klocale.h> |
34 | #include <kcombobox.h> | 37 | #include <kcombobox.h> |
35 | #include <klineedit.h> | 38 | #include <klineedit.h> |
36 | #include <qpushbutton.h> | 39 | #include <qpushbutton.h> |
37 | #include <qmultilineedit.h> | 40 | #include <q3multilineedit.h> |
38 | 41 | ||
39 | /* | 42 | /* |
40 | * Constructs a addEntryWnd as a child of 'parent', with the | 43 | * Constructs a addEntryWnd as a child of 'parent', with the |
@@ -49,7 +52,7 @@ addEntryWnd::addEntryWnd( PwMDoc* d, QWidget* parent, const char* name) | |||
49 | KDialogBase::Ok, parent, name, true ), doc(d) | 52 | KDialogBase::Ok, parent, name, true ), doc(d) |
50 | { | 53 | { |
51 | QWidget *page = plainPage(); | 54 | QWidget *page = plainPage(); |
52 | QVBoxLayout *pageLayout = new QVBoxLayout( page ); | 55 | Q3VBoxLayout *pageLayout = new Q3VBoxLayout( page ); |
53 | 56 | ||
54 | QTabWidget* mTabWidget = new QTabWidget( page ); | 57 | QTabWidget* mTabWidget = new QTabWidget( page ); |
55 | pageLayout->addWidget( mTabWidget ); | 58 | pageLayout->addWidget( mTabWidget ); |
@@ -58,7 +61,7 @@ addEntryWnd::addEntryWnd( PwMDoc* d, QWidget* parent, const char* name) | |||
58 | // This is the Password tab | 61 | // This is the Password tab |
59 | QWidget *tab1 = new QWidget( mTabWidget ); | 62 | QWidget *tab1 = new QWidget( mTabWidget ); |
60 | 63 | ||
61 | QGridLayout *layout = new QGridLayout( tab1, 3, 1 ); | 64 | Q3GridLayout *layout = new Q3GridLayout( tab1, 3, 1 ); |
62 | layout->setMargin( KDialogBase::marginHint() ); | 65 | layout->setMargin( KDialogBase::marginHint() ); |
63 | layout->setSpacing( KDialogBase::spacingHint() ); | 66 | layout->setSpacing( KDialogBase::spacingHint() ); |
64 | 67 | ||
@@ -77,7 +80,7 @@ addEntryWnd::addEntryWnd( PwMDoc* d, QWidget* parent, const char* name) | |||
77 | layout->addWidget( categoryComboBox, i, 1 ); | 80 | layout->addWidget( categoryComboBox, i, 1 ); |
78 | i++; | 81 | i++; |
79 | categoryComboBox->setEditable( TRUE ); | 82 | categoryComboBox->setEditable( TRUE ); |
80 | categoryComboBox->setSizeLimit( 8 ); | 83 | categoryComboBox->setMaxVisibleItems( 8 ); |
81 | categoryComboBox->setAutoCompletion( TRUE ); | 84 | categoryComboBox->setAutoCompletion( TRUE ); |
82 | categoryComboBox->setDuplicatesEnabled( FALSE ); | 85 | categoryComboBox->setDuplicatesEnabled( FALSE ); |
83 | connect(categoryComboBox,SIGNAL(activated(const QString&)), SLOT(categorySelected(const QString&))); | 86 | connect(categoryComboBox,SIGNAL(activated(const QString&)), SLOT(categorySelected(const QString&))); |
@@ -117,12 +120,12 @@ addEntryWnd::addEntryWnd( PwMDoc* d, QWidget* parent, const char* name) | |||
117 | // This is the Comment tab | 120 | // This is the Comment tab |
118 | QWidget *tab2 = new QWidget( mTabWidget ); | 121 | QWidget *tab2 = new QWidget( mTabWidget ); |
119 | 122 | ||
120 | layout = new QGridLayout( tab2, 3, 1 ); | 123 | layout = new Q3GridLayout( tab2, 3, 1 ); |
121 | layout->setMargin( KDialogBase::marginHintSmall() ); | 124 | layout->setMargin( KDialogBase::marginHintSmall() ); |
122 | layout->setSpacing( KDialogBase::spacingHintSmall() ); | 125 | layout->setSpacing( KDialogBase::spacingHintSmall() ); |
123 | i = 0; | 126 | i = 0; |
124 | 127 | ||
125 | commentTextEdit = new QMultiLineEdit(tab2); | 128 | commentTextEdit = new Q3MultiLineEdit(tab2); |
126 | layout->addMultiCellWidget( commentTextEdit, i, i, 0, 0 ); | 129 | layout->addMultiCellWidget( commentTextEdit, i, i, 0, 0 ); |
127 | i++; | 130 | i++; |
128 | 131 | ||
@@ -134,7 +137,7 @@ addEntryWnd::addEntryWnd( PwMDoc* d, QWidget* parent, const char* name) | |||
134 | // This is the Launcher tab | 137 | // This is the Launcher tab |
135 | QWidget *tab3 = new QWidget( mTabWidget ); | 138 | QWidget *tab3 = new QWidget( mTabWidget ); |
136 | 139 | ||
137 | layout = new QGridLayout( tab3, 3, 1 ); | 140 | layout = new Q3GridLayout( tab3, 3, 1 ); |
138 | layout->setMargin( KDialogBase::marginHintSmall() ); | 141 | layout->setMargin( KDialogBase::marginHintSmall() ); |
139 | layout->setSpacing( KDialogBase::spacingHintSmall() ); | 142 | layout->setSpacing( KDialogBase::spacingHintSmall() ); |
140 | i = 0; | 143 | i = 0; |