Add missing read function

svn path=/trunk/KDE/kdelibs/; revision=981749
This commit is contained in:
Laurent Montel 2009-06-14 09:51:10 +00:00
parent 70b367d7df
commit 5dd9e528fa
2 changed files with 12 additions and 1 deletions

View File

@ -538,6 +538,11 @@ void SignalPlotter::setThinFrame(bool set)
d->backgroundPixmap = QPixmap(); // we changed a paint setting, so reset the cache
}
bool SignalPlotter::thinFrame() const
{
return d->showThinFrame;
}
void SignalPlotter::setStackPlots(bool stack)
{
d->stackPlots = stack;

View File

@ -63,7 +63,7 @@ class PLASMA_EXPORT SignalPlotter : public QGraphicsWidget
Q_PROPERTY(bool showTopBar READ showTopBar WRITE setShowTopBar)
Q_PROPERTY(QColor backgroundColor READ backgroundColor WRITE setBackgroundColor)
Q_PROPERTY(QString svgBackground READ svgBackground WRITE setSvgBackground)
Q_PROPERTY(bool thinFrame WRITE setThinFrame)
Q_PROPERTY(bool thinFrame READ thinFrame WRITE setThinFrame)
Q_PROPERTY(bool stackPlots READ stackPlots WRITE setStackPlots)
public:
@ -392,6 +392,12 @@ public:
*/
void setThinFrame(bool set);
/**
* show a white line on the left and botton of the widget for a 3D effect
* @return true if frame show be draw
*/
bool thinFrame() const;
/**
* Whether to stack the plots on top of each other. The first plot
* added will be at the bottom. The next plot will be drawn on top,