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

Mike Fenton mike at staikos.net
Wed Jun 17 21:43:27 CEST 2009


SVN commit 983220 by fenton:

Re-label Fill Dialog in Application Settings.
Add proper updating of View/PlotItem when changes are made in General/Grid Tabs of application settings.


 M  +1 -1      applicationsettingsdialog.cpp  
 M  +3 -0      plotitem.cpp  
 M  +12 -0     view.cpp  


--- branches/work/kst/portto4/kst/src/libkstapp/applicationsettingsdialog.cpp #983219:983220
@@ -54,7 +54,7 @@
   addDialogPage(grid);
 
   DialogPage *fill = new DialogPage(this);
-  fill->setPageTitle(tr("Fill"));
+  fill->setPageTitle(tr("Default Fill Properties"));
   fill->addDialogTab(_fillTab);
   addDialogPage(fill);
 
--- branches/work/kst/portto4/kst/src/libkstapp/plotitem.cpp #983219:983220
@@ -2946,6 +2946,9 @@
 void PlotItem::updateChildGeometry(const QRectF &oldParentRect, const QRectF &newParentRect) {
   ViewItem::updateChildGeometry(oldParentRect, newParentRect);
   setPlotBordersDirty(true);
+  setLabelsDirty();
+  setAxisLabelsDirty();
+  setPlotPixmapDirty();
 }
 
 
--- branches/work/kst/portto4/kst/src/libkstapp/view.cpp #983219:983220
@@ -442,6 +442,18 @@
 
 void View::updateSettings() {
   setUseOpenGL(ApplicationSettings::self()->useOpenGL());
+  setShowGrid(ApplicationSettings::self()->showGrid());
+
+  setSnapToGrid(ApplicationSettings::self()->snapToGrid());
+
+  setGridSpacing(QSizeF(ApplicationSettings::self()->gridHorizontalSpacing(),
+                        ApplicationSettings::self()->gridVerticalSpacing()));
+
+  QFont oldFont = _defaultFont;
+  updateFont();
+  if (oldFont != _defaultFont) {
+    forceChildResize(sceneRect(), sceneRect());
+  }
 }
 
 


More information about the Kst mailing list