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

Peter Kümmel syntheticpp at gmx.net
Thu Oct 28 00:26:26 CEST 2010


SVN commit 1190513 by kuemmel:

fix size problem of plot dialog
CCBUG: 252289


 M  +4 -1      dialog.cpp  
 M  +4 -2      dialog.h  
 M  +23 -5     dialog.ui  


--- branches/work/kst/portto4/kst/src/libkstapp/dialog.cpp #1190512:1190513
@@ -16,6 +16,7 @@
 
 #include <QHash>
 #include <QPushButton>
+#include <QStackedWidget>
 
 namespace Kst {
 
@@ -23,7 +24,9 @@
   : QDialog(parent), _allowApply(false) {
 
   setupUi(this);
-
+  _stackedWidget = new QStackedWidget;
+  _scrollArea->setWidget(_stackedWidget);
+  _scrollArea->setWidgetResizable(true);
   _saveAsDefault->hide();
 
   extensionWidget()->hide();
--- branches/work/kst/portto4/kst/src/libkstapp/dialog.h #1190512:1190513
@@ -19,9 +19,10 @@
 
 #include "ui_dialog.h"
 
-template<class Key, class Value>
-class QHash;
+template<class Key, class Value> class QHash;
+class QStackedWidget;
 
+
 namespace Kst {
 
 class DialogPage;
@@ -65,6 +66,7 @@
 
     QHash<QListWidgetItem*, DialogPage*> _itemHash;
     bool _allowApply;
+    QStackedWidget* _stackedWidget;
 };
 
 }
--- branches/work/kst/portto4/kst/src/libkstapp/dialog.ui #1190512:1190513
@@ -9,8 +9,8 @@
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>421</width>
-    <height>299</height>
+    <width>800</width>
+    <height>400</height>
    </rect>
   </property>
   <property name="sizePolicy">
@@ -19,6 +19,12 @@
     <verstretch>0</verstretch>
    </sizepolicy>
   </property>
+  <property name="minimumSize">
+   <size>
+    <width>800</width>
+    <height>400</height>
+   </size>
+  </property>
   <property name="windowTitle">
    <string>Dialog</string>
   </property>
@@ -115,16 +121,28 @@
          <bool>true</bool>
         </property>
        </widget>
-       <widget class="QStackedWidget" name="_stackedWidget">
+       <widget class="QScrollArea" name="_scrollArea">
         <property name="sizePolicy">
          <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
-          <horstretch>1</horstretch>
+          <horstretch>2</horstretch>
           <verstretch>0</verstretch>
          </sizepolicy>
         </property>
-        <property name="currentIndex">
+        <property name="frameShape">
+         <enum>QFrame::NoFrame</enum>
+        </property>
+        <property name="frameShadow">
+         <enum>QFrame::Plain</enum>
+        </property>
+        <property name="lineWidth">
+         <number>0</number>
+        </property>
+        <property name="midLineWidth">
          <number>-1</number>
         </property>
+        <property name="widgetResizable">
+         <bool>true</bool>
+        </property>
        </widget>
       </widget>
      </item>


More information about the Kst mailing list