author | zautrix <zautrix> | 2005-03-30 18:01:56 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-03-30 18:01:56 (UTC) |
commit | 5e354884787756ceaf663ea48167c5193dad6bf1 (patch) (unidiff) | |
tree | 7ca871b5d0365ebb828951ac7ba9a22b36a9b135 | |
parent | 0d8be3961052dc4396aa7db1c5f50db3ec1ac194 (diff) | |
download | kdepimpi-5e354884787756ceaf663ea48167c5193dad6bf1.zip kdepimpi-5e354884787756ceaf663ea48167c5193dad6bf1.tar.gz kdepimpi-5e354884787756ceaf663ea48167c5193dad6bf1.tar.bz2 |
fixi
-rw-r--r-- | kaddressbook/incsearchwidget.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kaddressbook/incsearchwidget.cpp b/kaddressbook/incsearchwidget.cpp index 314de10..7577079 100644 --- a/kaddressbook/incsearchwidget.cpp +++ b/kaddressbook/incsearchwidget.cpp | |||
@@ -120,13 +120,15 @@ void IncSearchWidget::setSize() | |||
120 | if ( KABPrefs::instance()->mHideSearchOnSwitch && QApplication::desktop()->width() == 480) { | 120 | if ( KABPrefs::instance()->mHideSearchOnSwitch && QApplication::desktop()->width() == 480) { |
121 | mFieldCombo->setMaximumWidth( 40 ); | 121 | mFieldCombo->setMaximumWidth( 40 ); |
122 | mSearchText->setMaximumWidth( 30 ); | 122 | mSearchText->setMaximumWidth( 30 ); |
123 | } else { | 123 | } else { |
124 | QFontMetrics fm ( mFieldCombo->font() ); | 124 | QFontMetrics fm ( mFieldCombo->font() ); |
125 | int wid = fm.width(i18n( "All Fields" ) ); | 125 | int wid = fm.width(i18n( "All Fields" ) ); |
126 | int max = wid; | 126 | #ifdef DESKTOP_VERSION |
127 | wid = wid * 2; | ||
128 | #endif | ||
127 | mFieldCombo->setMaximumWidth( wid+60 ); | 129 | mFieldCombo->setMaximumWidth( wid+60 ); |
128 | mSearchText->setMaximumWidth( 1024 ); | 130 | mSearchText->setMaximumWidth( 1024 ); |
129 | } | 131 | } |
130 | } | 132 | } |
131 | void IncSearchWidget::setFields( const KABC::Field::List &list ) | 133 | void IncSearchWidget::setFields( const KABC::Field::List &list ) |
132 | { | 134 | { |