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

Nicolas Brisset nicolas.brisset at eurocopter.com
Fri Feb 3 17:20:08 UTC 2012


SVN commit 1277950 by brisset:

Make sure the list of datasources has enough vertical space, and make room for the filenames (450 pix width, resizeable).
There is one issue left but it's more difficult to solve: when you add datasources while the dialog is open, it does not get updated. In this case you have to close and reopen it.


 M  +2 -3      choosecolordialog.cpp  


--- branches/work/kst/portto4/kst/src/libkstapp/choosecolordialog.cpp #1277949:1277950
@@ -77,7 +77,8 @@
 
   _grid = new QGridLayout(colorFrame);
   _grid->setSpacing(8);
-  _grid->setColumnStretch(1,0);
+  _grid->setColumnStretch(0,1);
+  _grid->setColumnMinimumWidth(0,450);
 
   int i=0;
   QMapIterator<DataSourcePtr, QColor> it(_dataSourceColors);
@@ -99,8 +100,6 @@
   }
 
   adjustSize();
-  resize(QSize(500, minimumSizeHint().height()));
-  setFixedHeight(height());
 }
 
 


More information about the Kst mailing list