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

Adam Treat treat at kde.org
Fri Aug 31 21:38:41 CEST 2007


SVN commit 707016 by treat:

* Make it obvious


 M  +13 -6     libkstapp/viewitemdialog.cpp  
 M  +1 -0      widgets/fillandstroke.cpp  


--- branches/work/kst/portto4/kst/src/libkstapp/viewitemdialog.cpp #707015:707016
@@ -78,9 +78,13 @@
 
   _fillAndStroke->setFillColor(b.color());
   _fillAndStroke->setFillStyle(b.style());
-//   if (const QGradient *gradient = b.gradient()) {
-//     _fillAndStroke->setFillGradient(*gradient);
-//   }
+
+  //FIXME gradient editor is disabled for now as it is not ready
+#if 0
+  if (const QGradient *gradient = b.gradient()) {
+    _fillAndStroke->setFillGradient(*gradient);
+  }
+#endif
 }
 
 
@@ -111,9 +115,12 @@
   b.setColor(_fillAndStroke->fillColor());
   b.setStyle(_fillAndStroke->fillStyle());
 
-//   QGradient gradient = _fillAndStroke->fillGradient();
-//   if (gradient.type() != QGradient::NoGradient)
-//     b = QBrush(gradient);
+  //FIXME gradient editor is disabled for now as it is not ready
+#if 0
+  QGradient gradient = _fillAndStroke->fillGradient();
+  if (gradient.type() != QGradient::NoGradient)
+    b = QBrush(gradient);
+#endif
 
   foreach(QGraphicsItem *item, _items) {
     QAbstractGraphicsShapeItem *shape = qgraphicsitem_cast<QAbstractGraphicsShapeItem*>(item);
--- branches/work/kst/portto4/kst/src/widgets/fillandstroke.cpp #707015:707016
@@ -79,6 +79,7 @@
   connect(_joinStyle, SIGNAL(currentIndexChanged(int)), this, SIGNAL(strokeChanged()));
   connect(_capStyle, SIGNAL(currentIndexChanged(int)), this, SIGNAL(strokeChanged()));
 
+  //FIXME gradient editor is disabled for now as it is not ready
   _gradientEditor->setEnabled(false);
 }
 


More information about the Kst mailing list