[Kst] branches/work/kst/portto4/kst/src/widgets

Joshua Netterfield drmrshdw at gmail.com
Wed Aug 31 19:42:34 UTC 2011


SVN commit 1250623 by joshuanetterfield:

Fixes width to size of widget.



 M  +4 -1      cclineedit.cpp  


--- branches/work/kst/portto4/kst/src/widgets/cclineedit.cpp #1250622:1250623
@@ -957,12 +957,15 @@
     setSelectionMode(QAbstractItemView::SingleSelection);
     setSelectionBehavior(QAbstractItemView::SelectItems);
     setMinimumHeight(150);
-    setFixedWidth(width());
     verticalHeader()->hide();
 }
 
 void CCTableView::updateSuggestions()
 {
+    if(parentWidget()) {
+        setFixedWidth(qMin(width(),parentWidget()->width()));
+    }
+
     //this could be made more efficient.
     if(!model()||(!_le&&!_te)) {
         return;


More information about the Kst mailing list