From kde-commits Thu Apr 14 16:39:04 2005 From: Dominik Haumann Date: Thu, 14 Apr 2005 16:39:04 +0000 To: kde-commits Subject: kdebase/konqueror Message-Id: <20050414163904.E81305FA () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=111349675428745 CVS commit by dhaumann: - Fix wrong stretch factor for listview - Add separator above buttons (now I'm happy again ;)) imo, this dlg should be derived from KDialogBase to make things easier (like separator, buttons, and maybe more) M +9 -5 konq_profiledlg.cc 1.42 --- kdebase/konqueror/konq_profiledlg.cc #1.41:1.42 @@ -36,4 +36,5 @@ #include #include +#include #include @@ -76,5 +77,5 @@ KonqProfileDlg::KonqProfileDlg( KonqView #define N_BUTTONS 4 - m_pGrid = new QGridLayout( this, 10, N_BUTTONS, KDialog::marginHint(), KDialog::spacingHint() ); + m_pGrid = new QGridLayout( this, 11, N_BUTTONS, KDialog::marginHint(), KDialog::spacingHint() ); QLabel *lblName = new QLabel( i18n( "&Profile name:" ), this ); @@ -95,4 +96,5 @@ KonqProfileDlg::KonqProfileDlg( KonqView m_pGrid->addMultiCellWidget( m_pListView, 2, 6, 0, N_BUTTONS-1 ); + m_pGrid->setRowStretch( 2, 1 ); connect( m_pListView, SIGNAL( itemRenamed( QListViewItem * ) ), @@ -114,17 +116,19 @@ KonqProfileDlg::KonqProfileDlg( KonqView m_pSaveButton->setDefault( true ); - m_pGrid->addWidget( m_pSaveButton, 9, 0 ); + m_pGrid->addMultiCellWidget( new KSeparator( this ), 9, 9, 0, N_BUTTONS-1 ); + + m_pGrid->addWidget( m_pSaveButton, 10, 0 ); m_pDeleteProfileButton = new KPushButton( KGuiItem( i18n( "&Delete Profile" ), "editdelete"), this ); - m_pGrid->addWidget( m_pDeleteProfileButton, 9, 1 ); + m_pGrid->addWidget( m_pDeleteProfileButton, 10, 1 ); m_pRenameProfileButton = new KPushButton( i18n( "&Rename Profile" ), this ); - m_pGrid->addWidget( m_pRenameProfileButton, 9, 2 ); + m_pGrid->addWidget( m_pRenameProfileButton, 10, 2 ); m_pCloseButton = new KPushButton( KStdGuiItem::close(), this ); - m_pGrid->addWidget( m_pCloseButton, 9, 3 ); + m_pGrid->addWidget( m_pCloseButton, 10, 3 ); connect( m_pListView, SIGNAL( selectionChanged( QListViewItem * ) ),