[Kst] extragear/graphics/kst/kst

Rick Chern rchern at interchange.ubc.ca
Wed Aug 17 00:29:50 CEST 2005


SVN commit 449860 by rchern:

Set properties using the viewobject's widget hints

 M  +0 -3      ksteditviewobjectdialog_i.cpp  
 M  +1 -0      kstviewlabel.cpp  


--- trunk/extragear/graphics/kst/kst/ksteditviewobjectdialog_i.cpp #449859:449860
@@ -158,9 +158,6 @@
         } else if (widgetType == "KDoubleNumInput") {
           // insert a double num spinbox
           KDoubleSpinBox* input = new KDoubleSpinBox(_propertiesFrame, (propertyName+","+"value").latin1());
-          input->setMinValue(-90.0);
-          input->setMaxValue(90.0);
-          input->setLineStep(1.0);
           propertyWidget = input; 
           propertyWidget->setProperty("value", _viewObject->property(property->name()));  
         } else if (widgetType == "KFontCombo") {
--- trunk/extragear/graphics/kst/kst/kstviewlabel.cpp #449859:449860
@@ -498,6 +498,7 @@
     map.insert(QString("_kst_label"), i18n("Rotation")); 
     map.insert(QString("minValue"), -90.0);
     map.insert(QString("maxValue"), 90.0);
+    map.insert(QString("lineStep"), 1.0);
   } else if (propertyName == "font") {
     map.insert(QString("_kst_widgetType"), QString("KFontCombo"));
     map.insert(QString("_kst_label"), i18n("Font"));


More information about the Kst mailing list