From 409f5296344084e22833b35c03923b89d7be653b Mon Sep 17 00:00:00 2001 From: zautrix Date: Fri, 01 Jul 2005 06:40:20 +0000 Subject: fixxx --- (limited to 'kaddressbook') 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() 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() ); int wid = fm.width(i18n( "All Fields" ) ); #ifdef DESKTOP_VERSION diff --git a/kaddressbook/kabcore.cpp b/kaddressbook/kabcore.cpp index 046cb63..b4e0b07 100644 --- a/kaddressbook/kabcore.cpp +++ b/kaddressbook/kabcore.cpp @@ -828,6 +828,7 @@ void KABCore::resizeEvent(QResizeEvent* e ) if ( !mMiniSplitter ) return; //qDebug("KABCore::resizeEvent(QResizeEvent* e ) "); + if ( e->oldSize().width() != e->size().width() ) if ( QApplication::desktop()->width() >= 480 ) { if (QApplication::desktop()->width() == 640 ) { // e.g. 640x480 if ( mMiniSplitter->orientation() == Qt::Vertical ) { -- cgit v0.9.0.2