summaryrefslogtreecommitdiffabout
path: root/microkde/kresources/configpage.cpp
authorulf69 <ulf69>2004-08-02 22:23:36 (UTC)
committer ulf69 <ulf69>2004-08-02 22:23:36 (UTC)
commitcaccbdef7506ed596669c35009bd6d5634ee6ee1 (patch) (side-by-side diff)
treec45c1ff5cc2dd236dfe96ef087c1eaeb28d7b382 /microkde/kresources/configpage.cpp
parent5a7175ae22a89b28699983e8f97b7896d45f26e1 (diff)
downloadkdepimpi-caccbdef7506ed596669c35009bd6d5634ee6ee1.zip
kdepimpi-caccbdef7506ed596669c35009bd6d5634ee6ee1.tar.gz
kdepimpi-caccbdef7506ed596669c35009bd6d5634ee6ee1.tar.bz2
optimized layout for SL5500
Diffstat (limited to 'microkde/kresources/configpage.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--microkde/kresources/configpage.cpp28
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
@@ -103,5 +103,5 @@ ConfigPage::ConfigPage( QWidget *parent, const char *name )
groupBox->layout()->setSpacing( 6 );
groupBox->layout()->setMargin( 11 );
- QGridLayout *groupBoxLayout = new QGridLayout( groupBox->layout(), 2, 2 );
+ QGridLayout *groupBoxLayout = new QGridLayout( groupBox->layout(), 4, 2 );
//US mFamilyCombo = new KComboBox( false, groupBox );
@@ -115,17 +115,27 @@ ConfigPage::ConfigPage( QWidget *parent, const char *name )
mListView->addColumn( i18n( "Standard" ) );
- groupBoxLayout->addWidget( mListView, 1, 0 );
+//US groupBoxLayout->addWidget( mListView, 1, 0 );
+ groupBoxLayout->addMultiCellWidget( mListView, 1, 1, 0, 1 );
+
+
+ mAddButton = new QPushButton( i18n( "&Add..." ), this );
+ groupBoxLayout->addWidget( mAddButton, 2, 0 );
+ mRemoveButton = new QPushButton( i18n( "&Remove" ), this );
+ groupBoxLayout->addWidget( mRemoveButton, 2, 1 );
+ mEditButton = new QPushButton( i18n( "&Edit..." ), this );
+ groupBoxLayout->addWidget( mEditButton, 3, 0 );
+ mStandardButton = new QPushButton( i18n( "&Use as Standard" ), this );
+ groupBoxLayout->addWidget( mStandardButton, 3, 1 );
- KButtonBox *buttonBox = new KButtonBox( groupBox, Vertical );
- mAddButton = buttonBox->addButton( i18n( "&Add..." ), this, SLOT(slotAdd()) );
- mRemoveButton = buttonBox->addButton( i18n( "&Remove" ), this, SLOT(slotRemove()) );
mRemoveButton->setEnabled( false );
- mEditButton = buttonBox->addButton( i18n( "&Edit..." ), this, SLOT(slotEdit()) );
mEditButton->setEnabled( false );
- mStandardButton = buttonBox->addButton( i18n( "&Use as Standard" ), this, SLOT(slotStandard()) );
mStandardButton->setEnabled( false );
- buttonBox->layout();
- groupBoxLayout->addWidget( buttonBox, 1, 1 );
+
+ connect( mAddButton, SIGNAL( clicked() ), SLOT(slotAdd()) );
+ connect( mRemoveButton, SIGNAL( clicked() ), SLOT(slotRemove()) );
+ connect( mEditButton, SIGNAL( clicked() ), SLOT(slotEdit()) );
+ connect( mStandardButton, SIGNAL( clicked() ), SLOT(slotStandard()) );
+
mainLayout->addWidget( groupBox );