summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-03-30 18:01:56 (UTC)
committer zautrix <zautrix>2005-03-30 18:01:56 (UTC)
commit5e354884787756ceaf663ea48167c5193dad6bf1 (patch) (side-by-side diff)
tree7ca871b5d0365ebb828951ac7ba9a22b36a9b135
parent0d8be3961052dc4396aa7db1c5f50db3ec1ac194 (diff)
downloadkdepimpi-5e354884787756ceaf663ea48167c5193dad6bf1.zip
kdepimpi-5e354884787756ceaf663ea48167c5193dad6bf1.tar.gz
kdepimpi-5e354884787756ceaf663ea48167c5193dad6bf1.tar.bz2
fixi
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--kaddressbook/incsearchwidget.cpp4
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
@@ -114,25 +114,27 @@ void IncSearchWidget::announceDoSearch()
void IncSearchWidget::announceFieldChanged()
{
emit fieldChanged();
}
void IncSearchWidget::setSize()
{
if ( KABPrefs::instance()->mHideSearchOnSwitch && QApplication::desktop()->width() == 480) {
mFieldCombo->setMaximumWidth( 40 );
mSearchText->setMaximumWidth( 30 );
} else {
QFontMetrics fm ( mFieldCombo->font() );
int wid = fm.width(i18n( "All Fields" ) );
- int max = wid;
+#ifdef DESKTOP_VERSION
+ wid = wid * 2;
+#endif
mFieldCombo->setMaximumWidth( wid+60 );
mSearchText->setMaximumWidth( 1024 );
}
}
void IncSearchWidget::setFields( const KABC::Field::List &list )
{
mFieldCombo->clear();
mFieldCombo->insertItem( i18n( "All Fields" ) );
KABC::Field::List::ConstIterator it;
for ( it = list.begin(); it != list.end(); ++it ) {