[Kst] branches/work/kst/portto4/kst/src/libkstapp
Barth Netterfield
netterfield at astro.utoronto.ca
Tue Dec 2 23:03:00 CET 2008
SVN commit 891812 by netterfield:
Put a minimum size on the dialog list widget.
This is not the best solution, because it is font/resolution dependent. I can't
figure out how to make the dialog list widget be the size of the largest item,
however.
M +1 -2 dialog.cpp
M +27 -30 dialog.ui
--- branches/work/kst/portto4/kst/src/libkstapp/dialog.cpp #891811:891812
@@ -8,7 +8,7 @@
* (at your option) any later version. *
* *
***************************************************************************/
-
+#include <QDebug>
#include "dialog.h"
#include "dialogpage.h"
@@ -31,7 +31,6 @@
connect(_buttonBox, SIGNAL(clicked(QAbstractButton *)),
this, SLOT(buttonClicked(QAbstractButton *)));
- setMaximumSize(QSize(1024, 768));
resize(minimumSizeHint());
}
--- branches/work/kst/portto4/kst/src/libkstapp/dialog.ui #891811:891812
@@ -5,7 +5,7 @@
<rect>
<x>0</x>
<y>0</y>
- <width>396</width>
+ <width>709</width>
<height>299</height>
</rect>
</property>
@@ -21,12 +21,9 @@
<layout class="QGridLayout" >
<item row="0" column="0" >
<layout class="QGridLayout" >
- <property name="horizontalSpacing" >
+ <property name="spacing" >
<number>0</number>
</property>
- <property name="verticalSpacing" >
- <number>0</number>
- </property>
<item row="0" column="0" colspan="3" >
<widget class="QWidget" native="1" name="_topCustom" >
<property name="sizePolicy" >
@@ -37,6 +34,25 @@
</property>
</widget>
</item>
+ <item rowspan="3" row="0" column="3" >
+ <widget class="QWidget" native="1" name="_extensionWidget" >
+ <property name="enabled" >
+ <bool>true</bool>
+ </property>
+ <property name="sizePolicy" >
+ <sizepolicy vsizetype="Expanding" hsizetype="Expanding" >
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="minimumSize" >
+ <size>
+ <width>325</width>
+ <height>0</height>
+ </size>
+ </property>
+ </widget>
+ </item>
<item row="1" column="0" >
<widget class="QWidget" native="1" name="_leftCustom" >
<property name="sizePolicy" >
@@ -65,11 +81,11 @@
<bool>false</bool>
</property>
<widget class="QListWidget" name="_listWidget" >
- <property name="sizePolicy" >
- <sizepolicy vsizetype="Expanding" hsizetype="Preferred" >
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
+ <property name="minimumSize" >
+ <size>
+ <width>175</width>
+ <height>0</height>
+ </size>
</property>
</widget>
<widget class="QStackedWidget" name="_stackedWidget" >
@@ -105,25 +121,6 @@
</property>
</widget>
</item>
- <item rowspan="3" row="0" column="3" >
- <widget class="QWidget" native="1" name="_extensionWidget" >
- <property name="enabled" >
- <bool>true</bool>
- </property>
- <property name="sizePolicy" >
- <sizepolicy vsizetype="Expanding" hsizetype="Expanding" >
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="minimumSize" >
- <size>
- <width>325</width>
- <height>0</height>
- </size>
- </property>
- </widget>
- </item>
</layout>
</item>
<item row="1" column="0" >
@@ -132,7 +129,7 @@
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons" >
- <set>QDialogButtonBox::Apply|QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok</set>
+ <set>QDialogButtonBox::Apply|QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
More information about the Kst
mailing list