[Kst] kst_hfi_calib_branch: kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Thu Nov 11 23:36:43 CET 2004


CVS commit by staikos: 

patch from Andrew to fix 93039


  M +12 -0     curveappearancewidget.ui   1.19.2.2
  M +16 -2     curveappearancewidget.ui.h   1.16.2.1


--- kdeextragear-2/kst/kst/curveappearancewidget.ui  #1.19.2.1:1.19.2.2
@@ -487,4 +487,16 @@
         <slot>setEnabled(bool)</slot>
     </connection>
+    <connection>
+        <sender>_showBars</sender>
+        <signal>toggled(bool)</signal>
+        <receiver>CurveAppearanceWidget</receiver>
+        <slot>drawLine()</slot>
+    </connection>
+    <connection>
+        <sender>_barStyle</sender>
+        <signal>activated(int)</signal>
+        <receiver>CurveAppearanceWidget</receiver>
+        <slot>drawLine()</slot>
+    </connection>
 </connections>
 <tabstops>

--- kdeextragear-2/kst/kst/curveappearancewidget.ui.h  #1.16:1.16.2.1
@@ -95,6 +94,21 @@ void CurveAppearanceWidget::drawLine()
 
   p.fillRect(p.window(), QColor("white"));
+
+  if (showBars()) {
+    QRect rectBar((pix.width()-pix.height())/2,
+                  pix.height()/2,
+                  pix.height(),
+                  (pix.height()/2)+1);
+
+    if (barStyle() == 1) {
+      p.fillRect(rectBar,QBrush(QColor(color())));
+      p.setPen(QPen(QColor("black"),lineWidth(),KstLineStyle[lineStyle()]));
+    } else {
   p.setPen(pen);
+    }
+    p.drawRect(rectBar);
+  }
 
+  p.setPen(pen);
   if (_showLines->isChecked()) {
     p.drawLine(1,pix.height()/2,pix.width()-1, pix.height()/2);





More information about the Kst mailing list