[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-pim
Subject: [Kde-pim] [patch] configure View Listbox too small
From: Martin Koller <m.koller () surfeu ! at>
Date: 2002-09-15 8:30:57
[Download RAW message or body]
Hi all,
I've seen that in the configure dialog for a view the listbox which holds the
selectable fields is too small to see the complete text of all the items,
therefore I always have to resize the dialog before I can work with it.
The following patch removes this problem.
--
Best regards/Schöne Grüße
Martin
["patch" (text/x-diff)]
Index: selectfieldswidget.cpp
===================================================================
RCS file: /home/kde/kdepim/kaddressbook/selectfieldswidget.cpp,v
retrieving revision 1.7
diff -u -3 -p -r1.7 selectfieldswidget.cpp
--- selectfieldswidget.cpp 18 Jun 2002 11:52:47 -0000 1.7
+++ selectfieldswidget.cpp 15 Sep 2002 08:16:46 -0000
@@ -156,7 +156,12 @@ void SelectFieldsWidget::initGUI( KABC::
// was here
QSize lbSizeHint = lbUnSelected->sizeHint();
+
+ // make sure we fill the list with all items, so that we can
+ // get the maxItemWidth we need to not truncate the view
+ showFields(0);
lbSizeHint = lbSizeHint.expandedTo( lbSelected->sizeHint() );
+ lbSizeHint.setWidth(lbUnSelected->maxItemWidth());
lbUnSelected->setMinimumSize( lbSizeHint );
lbSelected->setMinimumSize( lbSizeHint );
_______________________________________________
kde-pim mailing list
kde-pim@mail.kde.org
http://mail.kde.org/mailman/listinfo/kde-pim
kde-pim home page at http://pim.kde.org/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic