author | ulf69 <ulf69> | 2004-08-02 22:23:36 (UTC) |
---|---|---|
committer | ulf69 <ulf69> | 2004-08-02 22:23:36 (UTC) |
commit | caccbdef7506ed596669c35009bd6d5634ee6ee1 (patch) (unidiff) | |
tree | c45c1ff5cc2dd236dfe96ef087c1eaeb28d7b382 /microkde | |
parent | 5a7175ae22a89b28699983e8f97b7896d45f26e1 (diff) | |
download | kdepimpi-caccbdef7506ed596669c35009bd6d5634ee6ee1.zip kdepimpi-caccbdef7506ed596669c35009bd6d5634ee6ee1.tar.gz kdepimpi-caccbdef7506ed596669c35009bd6d5634ee6ee1.tar.bz2 |
optimized layout for SL5500
-rw-r--r-- | microkde/kresources/configpage.cpp | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/microkde/kresources/configpage.cpp b/microkde/kresources/configpage.cpp index 912c62e..2fe021d 100644 --- a/microkde/kresources/configpage.cpp +++ b/microkde/kresources/configpage.cpp | |||
@@ -104,3 +104,3 @@ ConfigPage::ConfigPage( QWidget *parent, const char *name ) | |||
104 | groupBox->layout()->setMargin( 11 ); | 104 | groupBox->layout()->setMargin( 11 ); |
105 | QGridLayout *groupBoxLayout = new QGridLayout( groupBox->layout(), 2, 2 ); | 105 | QGridLayout *groupBoxLayout = new QGridLayout( groupBox->layout(), 4, 2 ); |
106 | 106 | ||
@@ -116,15 +116,25 @@ ConfigPage::ConfigPage( QWidget *parent, const char *name ) | |||
116 | 116 | ||
117 | groupBoxLayout->addWidget( mListView, 1, 0 ); | 117 | //US groupBoxLayout->addWidget( mListView, 1, 0 ); |
118 | groupBoxLayout->addMultiCellWidget( mListView, 1, 1, 0, 1 ); | ||
119 | |||
120 | |||
121 | mAddButton = new QPushButton( i18n( "&Add..." ), this ); | ||
122 | groupBoxLayout->addWidget( mAddButton, 2, 0 ); | ||
123 | mRemoveButton = new QPushButton( i18n( "&Remove" ), this ); | ||
124 | groupBoxLayout->addWidget( mRemoveButton, 2, 1 ); | ||
125 | mEditButton = new QPushButton( i18n( "&Edit..." ), this ); | ||
126 | groupBoxLayout->addWidget( mEditButton, 3, 0 ); | ||
127 | mStandardButton = new QPushButton( i18n( "&Use as Standard" ), this ); | ||
128 | groupBoxLayout->addWidget( mStandardButton, 3, 1 ); | ||
118 | 129 | ||
119 | KButtonBox *buttonBox = new KButtonBox( groupBox, Vertical ); | ||
120 | mAddButton = buttonBox->addButton( i18n( "&Add..." ), this, SLOT(slotAdd()) ); | ||
121 | mRemoveButton = buttonBox->addButton( i18n( "&Remove" ), this, SLOT(slotRemove()) ); | ||
122 | mRemoveButton->setEnabled( false ); | 130 | mRemoveButton->setEnabled( false ); |
123 | mEditButton = buttonBox->addButton( i18n( "&Edit..." ), this, SLOT(slotEdit()) ); | ||
124 | mEditButton->setEnabled( false ); | 131 | mEditButton->setEnabled( false ); |
125 | mStandardButton = buttonBox->addButton( i18n( "&Use as Standard" ), this, SLOT(slotStandard()) ); | ||
126 | mStandardButton->setEnabled( false ); | 132 | mStandardButton->setEnabled( false ); |
127 | buttonBox->layout(); | ||
128 | 133 | ||
129 | groupBoxLayout->addWidget( buttonBox, 1, 1 ); | 134 | |
135 | connect( mAddButton, SIGNAL( clicked() ), SLOT(slotAdd()) ); | ||
136 | connect( mRemoveButton, SIGNAL( clicked() ), SLOT(slotRemove()) ); | ||
137 | connect( mEditButton, SIGNAL( clicked() ), SLOT(slotEdit()) ); | ||
138 | connect( mStandardButton, SIGNAL( clicked() ), SLOT(slotStandard()) ); | ||
139 | |||
130 | 140 | ||