author | zautrix <zautrix> | 2004-09-17 11:06:59 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-09-17 11:06:59 (UTC) |
commit | d7a6a271b48f0c79e1f3beca03bbc9c3f2a54050 (patch) (side-by-side diff) | |
tree | 6bf244eed529e8141f7176ce9ec575ad4507bd7f | |
parent | e8dac946bcd8c080b9abb74b45221ca0c5f268c7 (diff) | |
download | kdepimpi-d7a6a271b48f0c79e1f3beca03bbc9c3f2a54050.zip kdepimpi-d7a6a271b48f0c79e1f3beca03bbc9c3f2a54050.tar.gz kdepimpi-d7a6a271b48f0c79e1f3beca03bbc9c3f2a54050.tar.bz2 |
Fixed layout problem in modify view
-rw-r--r-- | kaddressbook/viewconfigurefieldspage.cpp | 22 |
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 @@ #include <qtoolbutton.h> +#include <qapplication.h> #include <qlabel.h> @@ -221,3 +222,2 @@ void ViewConfigureFieldsPage::initGUI() QGridLayout *gl = 0; - if (orientation == 0) @@ -232,3 +232,4 @@ void ViewConfigureFieldsPage::initGUI() #endif //KAB_EMBEDDED - + if ( QApplication::desktop()->width() < 320 ) + mCategoryCombo->setMaximumWidth( 70 ); mCategoryCombo->insertItem( KABC::Field::categoryLabel( KABC::Field::All ) ); @@ -243,3 +244,3 @@ void ViewConfigureFieldsPage::initGUI() - QLabel *label = new QLabel( i18n( "&Selected fields:" ), this ); + QLabel *label = new QLabel( i18n( "&Selected\nfields:" ), this ); if (orientation == 0) @@ -252,3 +253,3 @@ void ViewConfigureFieldsPage::initGUI() mUnSelectedBox->setSelectionMode( QListBox::Extended ); - mUnSelectedBox->setMinimumHeight( 100 ); + mUnSelectedBox->setMinimumHeight( 80 ); if (orientation == 0) @@ -259,3 +260,8 @@ void ViewConfigureFieldsPage::initGUI() mSelectedBox = new QListBox( this ); + //if ( QApplication::desktop()->width() < 320 ) { + // mUnSelectedBox->setMaximumWidth( 134 ); + // mSelectedBox->setMaximumWidth( 134 ); + //} mSelectedBox->setSelectionMode( QListBox::Extended ); + mSelectedBox->setMinimumHeight( 80 ); label->setBuddy( mSelectedBox ); @@ -327,6 +333,6 @@ void ViewConfigureFieldsPage::initGUI() - sizeHint = sizeHint.expandedTo( mSelectedBox->sizeHint() ); - sizeHint.setWidth( mUnSelectedBox->maxItemWidth() ); - mUnSelectedBox->setMinimumSize( sizeHint ); - mSelectedBox->setMinimumSize( sizeHint ); + //sizeHint = sizeHint.expandedTo( mSelectedBox->sizeHint() ); + //sizeHint.setWidth( mUnSelectedBox->maxItemWidth() ); + // mUnSelectedBox->setMinimumSize( sizeHint ); + //mSelectedBox->setMinimumSize( sizeHint ); |