[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdebase/konqueror
From:       Dominik Haumann <dhdev () gmx ! de>
Date:       2005-04-14 16:39:04
Message-ID: 20050414163904.E81305FA () office ! kde ! org
[Download RAW message or body]

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 <klocale.h>
 #include <ksimpleconfig.h>
+#include <kseparator.h>
 #include <kpushbutton.h>
 
@@ -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 * ) ),


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic