author | zautrix <zautrix> | 2005-07-01 06:40:20 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-07-01 06:40:20 (UTC) |
commit | 409f5296344084e22833b35c03923b89d7be653b (patch) (unidiff) | |
tree | 5332c1a045c6fece04a38313cac18485380259c6 /kaddressbook/incsearchwidget.cpp | |
parent | a7924287e231b461585c4121f6ee2ce32f955089 (diff) | |
download | kdepimpi-409f5296344084e22833b35c03923b89d7be653b.zip kdepimpi-409f5296344084e22833b35c03923b89d7be653b.tar.gz kdepimpi-409f5296344084e22833b35c03923b89d7be653b.tar.bz2 |
fixxx
Diffstat (limited to 'kaddressbook/incsearchwidget.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | kaddressbook/incsearchwidget.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/kaddressbook/incsearchwidget.cpp b/kaddressbook/incsearchwidget.cpp index b1ffe04..5f8b83d 100644 --- a/kaddressbook/incsearchwidget.cpp +++ b/kaddressbook/incsearchwidget.cpp | |||
@@ -118,9 +118,12 @@ void IncSearchWidget::announceFieldChanged() | |||
118 | void IncSearchWidget::setSize() | 118 | void IncSearchWidget::setSize() |
119 | { | 119 | { |
120 | if ( KABPrefs::instance()->mHideSearchOnSwitch && QApplication::desktop()->width() == 480) { | 120 | if ( KABPrefs::instance()->mHideSearchOnSwitch && QApplication::desktop()->width() == 480) { |
121 | mFieldCombo->setMaximumWidth( 40 ); | 121 | setCurrentItem( 0 ); |
122 | mSearchText->setMaximumWidth( 30 ); | 122 | //mFieldCombo->setMaximumWidth( 0 ); |
123 | mFieldCombo->hide(); | ||
124 | mSearchText->setMaximumWidth( 200 ); | ||
123 | } else { | 125 | } else { |
126 | mFieldCombo->show(); | ||
124 | QFontMetrics fm ( mFieldCombo->font() ); | 127 | QFontMetrics fm ( mFieldCombo->font() ); |
125 | int wid = fm.width(i18n( "All Fields" ) ); | 128 | int wid = fm.width(i18n( "All Fields" ) ); |
126 | #ifdef DESKTOP_VERSION | 129 | #ifdef DESKTOP_VERSION |