[Kst] extragear/graphics/kst/src/libkstapp

George Staikos staikos at kde.org
Wed Jul 5 11:46:47 CEST 2006


SVN commit 558375 by staikos:

Add support for ellipses without borders

FEATURE: 130281


 M  +3 -3      kstviewellipse.cpp  


--- trunk/extragear/graphics/kst/src/libkstapp/kstviewellipse.cpp #558374:558375
@@ -93,7 +93,7 @@
   }
 
   const int bw(_borderWidth * p.lineWidthAdjustmentFactor());
-  QPen pen(_borderColor, bw);
+  QPen pen(bw > 0 ? _borderColor : _foregroundColor, bw);
   p.setPen(pen);
   if (_transparentFill) {
     p.setBrush(Qt::NoBrush);  
@@ -128,7 +128,7 @@
 
 void KstViewEllipse::setBorderWidth(int width) {
   if (_borderWidth != width) {
-    _borderWidth = kMax(1, width);
+    _borderWidth = kMax(0, width);
     setDirty();
   }
 }
@@ -160,7 +160,7 @@
   } else if (propertyName == "borderWidth") {
     map.insert(QString("_kst_widgetType"), QString("QSpinBox"));
     map.insert(QString("_kst_label"), i18n("Border width"));    
-    map.insert(QString("minValue"), 1);
+    map.insert(QString("minValue"), 0);
   } else if (propertyName == "fillColor") {
     map.insert(QString("_kst_widgetType"), QString("KColorButton"));
     map.insert(QString("_kst_label"), i18n("Fill Color"));    


More information about the Kst mailing list