[Kst] kdeextragear-2/kst/kst

Andrew Walker arwalker at sumusltd.com
Fri Jun 4 02:14:37 CEST 2004


CVS commit by arwalker: 

Handle resizing of the curve appearance widget.


  M +1 -0      curveappearancewidget.ui   1.7
  M +8 -0      curveappearancewidget.ui.h   1.10
  M +1 -0      kstfitdialog_i.cpp   1.10
  M +0 -2      ksthsdialog_i.cpp   1.44
  M +0 -1      kstpsddialog_i.cpp   1.37


--- kdeextragear-2/kst/kst/curveappearancewidget.ui  #1.6:1.7
@@ -310,4 +310,5 @@
     <function returnType="int">lineStyle()</function>
     <function returnType="int">lineWidth()</function>
+    <function access="protected">resizeEvent( QResizeEvent * pEvent )</function>
 </functions>
 <layoutdefaults spacing="6" margin="11"/>

--- kdeextragear-2/kst/kst/curveappearancewidget.ui.h  #1.9:1.10
@@ -9,4 +9,5 @@
 
 #include <qstyle.h>
+#include <qevent.h>
 #include "kstlinestyle.h"
 
@@ -228,2 +229,9 @@ void CurveAppearanceWidget::setValue( bo
   drawLine();
 }
+
+
+void CurveAppearanceWidget::resizeEvent( QResizeEvent * pEvent )
+{
+  redrawCombo();
+  QWidget::resizeEvent(pEvent);
+}

--- kdeextragear-2/kst/kst/kstfitdialog_i.cpp  #1.9:1.10
@@ -462,4 +462,5 @@ bool KstFitDialogI::createCurve(KstPlugi
 
   if( xVector && yVector ) {
+    plugin->update(-1);
     fit = new KstFitCurve(c_name, KstVectorPtr(xVector), KstVectorPtr(yVector), KstVectorPtr(wVector), _curveAppearance->color());
     if (fit) {

--- kdeextragear-2/kst/kst/ksthsdialog_i.cpp  #1.43:1.44
@@ -205,6 +205,4 @@ void KstHsDialogI::update(int new_index)
     Delete->setEnabled(false);
   }
-  
-    _curveAppearance->redrawCombo();
 }
 

--- kdeextragear-2/kst/kst/kstpsddialog_i.cpp  #1.36:1.37
@@ -201,5 +201,4 @@ void KstPsdDialogI::update(int new_index
     Delete->setEnabled(false);
   }
-   _curveAppearance->redrawCombo();
 }
 





More information about the Kst mailing list