[Kst] extragear/graphics/kst/kst

George Staikos staikos at kde.org
Fri Sep 30 20:03:55 CEST 2005


SVN commit 465747 by staikos:

- default EPS vector to on
- note an i18n problem (and simplify)


 M  +4 -7      kstgraphfiledialog_i.cpp  


--- trunk/extragear/graphics/kst/kst/kstgraphfiledialog_i.cpp #465746:465747
@@ -165,23 +165,20 @@
   _allWindows = cfg.readBoolEntry("All", false);
   _autoSave = false; // do not read from config file...
   _savePeriod = cfg.readNumEntry("Seconds", 15);
-  _saveEPSAsVector = cfg.readBoolEntry("EPSVector", false);
+  _saveEPSAsVector = cfg.readBoolEntry("EPSVector", true);
 }
 
 
 void KstGraphFileDialogI::enableEPSVector(const QString &format) {
-  if (format == "EPS") {
-    _saveEPSVector->setEnabled(true);
-  } else {
-    _saveEPSVector->setEnabled(false);
-  }
+  // FIXME: i18n
+  _saveEPSVector->setEnabled(format == "EPS");
 }
 
 
 void KstGraphFileDialogI::enableWidthHeight() {
   int displayOption = _comboBoxSizeOption->currentItem();
 
-  switch(displayOption) {
+  switch (displayOption) {
     case 0:
       _xSize->setEnabled(true);
       _ySize->setEnabled(true);


More information about the Kst mailing list