[Kst] branches/work/kst/portto4/kst/src/libkstapp
Mike Fenton
mike at staikos.net
Fri Mar 13 19:30:31 CET 2009
SVN commit 939061 by fenton:
Update Axis UI to disable Base Offset mode when interpretting the axis.
M +6 -0 axistab.cpp
M +3 -0 axistab.h
--- branches/work/kst/portto4/kst/src/libkstapp/axistab.cpp #939060:939061
@@ -64,6 +64,7 @@
connect(_axisMinorLineColor, SIGNAL(changed(const QColor &)), this, SIGNAL(modified()));
connect(_scaleInterpret, SIGNAL(stateChanged(int)), this, SIGNAL(modified()));
+ connect(_scaleInterpret, SIGNAL(stateChanged(int)), this, SLOT(updateButtons()));
connect(_scaleLog, SIGNAL(stateChanged(int)), this, SIGNAL(modified()));
connect(_scaleBaseOffset, SIGNAL(stateChanged(int)), this, SIGNAL(modified()));
connect(_scaleReverse, SIGNAL(stateChanged(int)), this, SIGNAL(modified()));
@@ -249,6 +250,11 @@
_scaleInterpretType->setCurrentIndex(_scaleInterpretType->findData(QVariant(interpret)));
}
+
+void AxisTab::updateButtons() {
+ _scaleBaseOffset->setEnabled(!isInterpret());
}
+}
+
// vim: ts=2 sw=2 et
--- branches/work/kst/portto4/kst/src/libkstapp/axistab.h #939060:939061
@@ -78,6 +78,9 @@
AxisInterpretationType axisInterpretation() const;
void setAxisInterpretation(AxisInterpretationType interpretation);
+ public Q_SLOTS:
+ void updateButtons();
+
};
}
More information about the Kst
mailing list