-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 @@ -36,4 +36,5 @@ #include <qtoolbutton.h> +#include <qapplication.h> #include <qlabel.h> #include <qlistbox.h> @@ -220,5 +221,4 @@ void ViewConfigureFieldsPage::initGUI() QGridLayout *gl = 0; - if (orientation == 0) gl = new QGridLayout( this , 6, 4, 0, KDialog::spacingHint() ); @@ -231,5 +231,6 @@ void ViewConfigureFieldsPage::initGUI() mCategoryCombo = new QComboBox( false, this ); #endif //KAB_EMBEDDED - + if ( QApplication::desktop()->width() < 320 ) + mCategoryCombo->setMaximumWidth( 70 ); mCategoryCombo->insertItem( KABC::Field::categoryLabel( KABC::Field::All ) ); mCategoryCombo->insertItem( KABC::Field::categoryLabel( KABC::Field::Frequent ) ); @@ -242,5 +243,5 @@ void ViewConfigureFieldsPage::initGUI() gl->addWidget( mCategoryCombo, 0, 0 ); - QLabel *label = new QLabel( i18n( "&Selected fields:" ), this ); + QLabel *label = new QLabel( i18n( "&Selected\nfields:" ), this ); if (orientation == 0) gl->addWidget( label, 0, 2 ); @@ -251,5 +252,5 @@ void ViewConfigureFieldsPage::initGUI() mUnSelectedBox = new QListBox( this ); mUnSelectedBox->setSelectionMode( QListBox::Extended ); - mUnSelectedBox->setMinimumHeight( 100 ); + mUnSelectedBox->setMinimumHeight( 80 ); if (orientation == 0) gl->addWidget( mUnSelectedBox, 1, 0 ); @@ -258,5 +259,10 @@ 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 ); if (orientation == 0) @@ -326,8 +332,8 @@ void ViewConfigureFieldsPage::initGUI() slotShowFields( 0 ); - 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 ); gl->activate(); |