[Kst] kdeextragear-2/kst/kst
Andrew Walker
arwalker at sumusltd.com
Fri Dec 19 23:47:17 CET 2003
CVS commit by arwalker:
As the histogram will draw lines regardless of the user selection
we simply disable the option and always select it. This avoids
potential user confusion.
M +3 -2 curveappearancewidget.ui 1.4
M +10 -0 curveappearancewidget.ui.h 1.6
M +1 -0 ksthsdialog_i.cpp 1.33
--- kdeextragear-2/kst/kst/curveappearancewidget.ui #1.3:1.4
@@ -9,6 +9,6 @@
<x>0</x>
<y>0</y>
- <width>432</width>
- <height>86</height>
+ <width>611</width>
+ <height>504</height>
</rect>
</property>
@@ -261,4 +261,5 @@
<slot>reset()</slot>
<slot>setUsePoints( bool usePoints )</slot>
+ <slot>setMustUseLines( bool bMustUseLines )</slot>
</slots>
<functions>
--- kdeextragear-2/kst/kst/curveappearancewidget.ui.h #1.5:1.6
@@ -147,2 +147,12 @@ void CurveAppearanceWidget::setUsePoints
}
}
+
+
+void CurveAppearanceWidget::setMustUseLines( bool bMustUseLines )
+{
+ _showLines->setEnabled(!bMustUseLines);
+ if (bMustUseLines && !_showLines->isChecked()) {
+ _showLines->setChecked(true);
+ drawLine();
+ }
+}
--- kdeextragear-2/kst/kst/ksthsdialog_i.cpp #1.32:1.33
@@ -59,4 +59,5 @@ KstHsDialogI::KstHsDialogI(QWidget* pare
connect(_vector, SIGNAL(newVectorCreated()), this, SIGNAL(modified()));
_curveAppearance->setUsePoints(false);
+ _curveAppearance->setMustUseLines(true);
}
More information about the Kst
mailing list