[Kst] kdeextragear-2/kst/kst

Andrew Walker arwalker at sumusltd.com
Tue Dec 28 21:57:53 CET 2004


CVS commit by arwalker: 

Its not sufficient to call updatePlotList() when the window is changed by the user, as this does not update the settings for the selected plot. This changes also updates the plot settings.


  M +6 -2      kstplotdialog_i.cpp   1.114
  M +1 -0      kstplotdialog_i.h   1.38


--- kdeextragear-2/kst/kst/kstplotdialog_i.cpp  #1.113:1.114
@@ -110,4 +110,5 @@ KstPlotDialogI::KstPlotDialogI(KstDoc *i
   connect(Edit, SIGNAL(clicked()), this, SLOT(edit_I()));
   connect(Delete, SIGNAL(clicked()), this, SLOT(delete_I()));
+  connect(_window, SIGNAL(activated(int)), this, SLOT(changeWindow()));
   connect(_newWindow, SIGNAL(clicked()), this, SLOT(newWindow()));
 
@@ -170,6 +171,4 @@ KstPlotDialogI::KstPlotDialogI(KstDoc *i
   FontComboBox->setFonts(qfd.families());
 
-  connect(_window, SIGNAL(activated(int)), this, SLOT(updatePlotList()));
-
   //
   // legend
@@ -1282,4 +1281,9 @@ void KstPlotDialogI::updateWindowList() 
 }
 
+void KstPlotDialogI::changeWindow() {
+  updatePlotList();
+  update(-1);
+}
+
 void KstPlotDialogI::updatePlotList() {
   KstApp *app = KstApp::inst();

--- kdeextragear-2/kst/kst/kstplotdialog_i.h  #1.37:1.38
@@ -62,4 +62,5 @@ class KstPlotDialogI : public KstPlotDia
     void updatePlotMarkers();
     void updateGridSettings();
+    void changeWindow();
 
     void updateButtons();




More information about the Kst mailing list