Fix use of uninitialized variable (thanks to Valgrind)

setMinimumSize() ... -> setGeometry() ... -> updateDataBuffer()
and updateDataBuffer() uses horizontalScale.

svn path=/trunk/KDE/kdelibs/; revision=1064695
This commit is contained in:
Aurélien Gâteau 2009-12-21 13:48:24 +00:00
parent 99cb137a07
commit e510b513c6

View File

@ -126,9 +126,6 @@ SignalPlotter::SignalPlotter(QGraphicsItem *parent)
d->scaledBy = 1;
d->showThinFrame = true;
// Anything smaller than this does not make sense.
setMinimumSize(QSizeF(KIconLoader::SizeSmall, KIconLoader::SizeSmall));
d->showVerticalLines = true;
d->verticalLinesDistance = 30;
d->verticalLinesScroll = true;
@ -143,6 +140,9 @@ SignalPlotter::SignalPlotter(QGraphicsItem *parent)
d->stackPlots = true;
d->fillPlots = true;
// Anything smaller than this does not make sense.
setMinimumSize(QSizeF(KIconLoader::SizeSmall, KIconLoader::SizeSmall));
setSvgBackground("widgets/plot-background");
connect(Plasma::Theme::defaultTheme(), SIGNAL(themeChanged()), SLOT(themeChanged()));