[Kst] extragear/graphics/kst/kst
Barth Netterfield
netterfield at astro.utoronto.ca
Thu Nov 17 23:46:39 CET 2005
SVN commit 481112 by netterfield:
Legend text for equation dialog.
M +14 -0 ksteqdialog_i.cpp
--- trunk/extragear/graphics/kst/kst/ksteqdialog_i.cpp #481111:481112
@@ -98,6 +98,9 @@
_w->_curveAppearance->hide();
_w->_curvePlacement->hide();
+ _legendText->hide();
+ _legendLabel->hide();
+
adjustSize();
resize(minimumSizeHint());
setFixedHeight(height());
@@ -109,6 +112,9 @@
/* set tag name */
_tagName->setText(defaultTag);
+ _legendText->setText(defaultTag);
+ _legendText->show();
+ _legendLabel->show();
/* set the curve placement window */
_w->_curvePlacement->update();
@@ -188,7 +194,15 @@
vc->setLineWidth(_w->_curveAppearance->lineWidth());
vc->setLineStyle(_w->_curveAppearance->lineStyle());
vc->Point.setType(_w->_curveAppearance->pointType());
+ vc->setPointDensity(_w->_curveAppearance->pointDensity());
vc->setBarStyle(_w->_curveAppearance->barStyle());
+
+ QString legend_text = _legendText->text();
+ if (legend_text == defaultTag) {
+ vc->setLegendText(QString(""));
+ } else {
+ vc->setLegendText(legend_text);
+ }
KstViewWindow *w = dynamic_cast<KstViewWindow*>(KstApp::inst()->findWindow(_w->_curvePlacement->_plotWindow->currentText()));
if (!w) {
More information about the Kst
mailing list