summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2004-09-17 11:06:59 (UTC)
committer zautrix <zautrix>2004-09-17 11:06:59 (UTC)
commitd7a6a271b48f0c79e1f3beca03bbc9c3f2a54050 (patch) (unidiff)
tree6bf244eed529e8141f7176ce9ec575ad4507bd7f
parente8dac946bcd8c080b9abb74b45221ca0c5f268c7 (diff)
downloadkdepimpi-d7a6a271b48f0c79e1f3beca03bbc9c3f2a54050.zip
kdepimpi-d7a6a271b48f0c79e1f3beca03bbc9c3f2a54050.tar.gz
kdepimpi-d7a6a271b48f0c79e1f3beca03bbc9c3f2a54050.tar.bz2
Fixed layout problem in modify view
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--kaddressbook/viewconfigurefieldspage.cpp22
1 files changed, 14 insertions, 8 deletions
diff --git a/kaddressbook/viewconfigurefieldspage.cpp b/kaddressbook/viewconfigurefieldspage.cpp
index 2c827eb..5daae1a 100644
--- a/kaddressbook/viewconfigurefieldspage.cpp
+++ b/kaddressbook/viewconfigurefieldspage.cpp
@@ -37,2 +37,3 @@
37#include <qtoolbutton.h> 37#include <qtoolbutton.h>
38#include <qapplication.h>
38#include <qlabel.h> 39#include <qlabel.h>
@@ -221,3 +222,2 @@ void ViewConfigureFieldsPage::initGUI()
221 QGridLayout *gl = 0; 222 QGridLayout *gl = 0;
222
223 if (orientation == 0) 223 if (orientation == 0)
@@ -232,3 +232,4 @@ void ViewConfigureFieldsPage::initGUI()
232 #endif //KAB_EMBEDDED 232 #endif //KAB_EMBEDDED
233 233 if ( QApplication::desktop()->width() < 320 )
234 mCategoryCombo->setMaximumWidth( 70 );
234 mCategoryCombo->insertItem( KABC::Field::categoryLabel( KABC::Field::All ) ); 235 mCategoryCombo->insertItem( KABC::Field::categoryLabel( KABC::Field::All ) );
@@ -243,3 +244,3 @@ void ViewConfigureFieldsPage::initGUI()
243 244
244 QLabel *label = new QLabel( i18n( "&Selected fields:" ), this ); 245 QLabel *label = new QLabel( i18n( "&Selected\nfields:" ), this );
245 if (orientation == 0) 246 if (orientation == 0)
@@ -252,3 +253,3 @@ void ViewConfigureFieldsPage::initGUI()
252 mUnSelectedBox->setSelectionMode( QListBox::Extended ); 253 mUnSelectedBox->setSelectionMode( QListBox::Extended );
253 mUnSelectedBox->setMinimumHeight( 100 ); 254 mUnSelectedBox->setMinimumHeight( 80 );
254 if (orientation == 0) 255 if (orientation == 0)
@@ -259,3 +260,8 @@ void ViewConfigureFieldsPage::initGUI()
259 mSelectedBox = new QListBox( this ); 260 mSelectedBox = new QListBox( this );
261 //if ( QApplication::desktop()->width() < 320 ) {
262 // mUnSelectedBox->setMaximumWidth( 134 );
263 // mSelectedBox->setMaximumWidth( 134 );
264 //}
260 mSelectedBox->setSelectionMode( QListBox::Extended ); 265 mSelectedBox->setSelectionMode( QListBox::Extended );
266 mSelectedBox->setMinimumHeight( 80 );
261 label->setBuddy( mSelectedBox ); 267 label->setBuddy( mSelectedBox );
@@ -327,6 +333,6 @@ void ViewConfigureFieldsPage::initGUI()
327 333
328 sizeHint = sizeHint.expandedTo( mSelectedBox->sizeHint() ); 334 //sizeHint = sizeHint.expandedTo( mSelectedBox->sizeHint() );
329 sizeHint.setWidth( mUnSelectedBox->maxItemWidth() ); 335 //sizeHint.setWidth( mUnSelectedBox->maxItemWidth() );
330 mUnSelectedBox->setMinimumSize( sizeHint ); 336 // mUnSelectedBox->setMinimumSize( sizeHint );
331 mSelectedBox->setMinimumSize( sizeHint ); 337 //mSelectedBox->setMinimumSize( sizeHint );
332 338