[Kst] extragear/graphics/kst/src
George Staikos
staikos at kde.org
Mon Feb 13 19:00:52 CET 2006
SVN commit 509103 by staikos:
merge Barth's patch for legends into trunk
M +2 -0 libkstapp/kstviewlegend.cpp
M +1 -0 libkstapp/kstviewlegend.h
M +1 -0 libkstmath/kstvcurve.cpp
--- trunk/extragear/graphics/kst/src/libkstapp/kstviewlegend.cpp #509102:509103
@@ -90,6 +90,8 @@
_absFontSize = _fontSize+KstSettings::globalSettings()->plotFontSize;
_layoutActions &= ~(MoveTo | Copy | CopyTo);
_standardActions |= Delete | Edit;
+ _legendMargin = 5;
+
QStringList ctaglist;
// read the properties
--- trunk/extragear/graphics/kst/src/libkstapp/kstviewlegend.h #509102:509103
@@ -36,6 +36,7 @@
Q_PROPERTY(QString font READ fontName WRITE setFontName)
Q_PROPERTY(int fontSize READ fontSize WRITE setFontSize)
Q_PROPERTY(bool transparent READ transparent WRITE setTransparent)
+ Q_PROPERTY(int legendMargin READ legendMargin WRITE setLegendMargin)
Q_PROPERTY(bool vertical READ vertical WRITE setVertical)
public:
KstViewLegend();
--- trunk/extragear/graphics/kst/src/libkstmath/kstvcurve.cpp #509102:509103
@@ -195,6 +195,7 @@
_type = "Curve";
Color = in_color;
setTagName(in_tag);
+ updateParsedLegendTag();
}
More information about the Kst
mailing list