summaryrefslogtreecommitdiffabout
path: root/kaddressbook
Side-by-side diff
Diffstat (limited to 'kaddressbook') (more/less context) (ignore whitespace changes)
-rw-r--r--kaddressbook/incsearchwidget.cpp7
-rw-r--r--kaddressbook/kabcore.cpp1
2 files changed, 6 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
@@ -120,5 +120,8 @@ void IncSearchWidget::setSize()
if ( KABPrefs::instance()->mHideSearchOnSwitch && QApplication::desktop()->width() == 480) {
- mFieldCombo->setMaximumWidth( 40 );
- mSearchText->setMaximumWidth( 30 );
+ setCurrentItem( 0 );
+ //mFieldCombo->setMaximumWidth( 0 );
+ mFieldCombo->hide();
+ mSearchText->setMaximumWidth( 200 );
} else {
+ mFieldCombo->show();
QFontMetrics fm ( mFieldCombo->font() );
diff --git a/kaddressbook/kabcore.cpp b/kaddressbook/kabcore.cpp
index 046cb63..b4e0b07 100644
--- a/kaddressbook/kabcore.cpp
+++ b/kaddressbook/kabcore.cpp
@@ -830,2 +830,3 @@ void KABCore::resizeEvent(QResizeEvent* e )
//qDebug("KABCore::resizeEvent(QResizeEvent* e ) ");
+ if ( e->oldSize().width() != e->size().width() )
if ( QApplication::desktop()->width() >= 480 ) {