Remove debugs
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=723007
This commit is contained in:
parent
a6d04f9ea4
commit
82b947252e
@ -115,7 +115,6 @@ Meter::Meter(QGraphicsItem *parent, QObject *parentObject) :
|
|||||||
Plasma::Widget(parent, parentObject),
|
Plasma::Widget(parent, parentObject),
|
||||||
d(new Private)
|
d(new Private)
|
||||||
{
|
{
|
||||||
kDebug();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Meter::~Meter()
|
Meter::~Meter()
|
||||||
@ -220,7 +219,6 @@ void Meter::updated(QString sourceName, Plasma::DataEngine::Data data)
|
|||||||
|
|
||||||
void Meter::setSvg(QString svg)
|
void Meter::setSvg(QString svg)
|
||||||
{
|
{
|
||||||
kDebug() << svg;
|
|
||||||
d->svg = svg;
|
d->svg = svg;
|
||||||
delete d->image;
|
delete d->image;
|
||||||
d->image = new Plasma::Svg(svg, this);
|
d->image = new Plasma::Svg(svg, this);
|
||||||
@ -231,7 +229,6 @@ void Meter::setSvg(QString svg)
|
|||||||
QRectF r = d->image->elementRect("rotateminmax");
|
QRectF r = d->image->elementRect("rotateminmax");
|
||||||
d->minrotate = (int)r.height();
|
d->minrotate = (int)r.height();
|
||||||
d->maxrotate = (int)r.width();
|
d->maxrotate = (int)r.width();
|
||||||
kDebug() << "Rotate:" << d->minrotate << d->maxrotate;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -261,7 +258,6 @@ Meter::MeterType Meter::meterType() const
|
|||||||
|
|
||||||
QSizeF Meter::sizeHint() const
|
QSizeF Meter::sizeHint() const
|
||||||
{
|
{
|
||||||
kDebug() << d->sizeHint;
|
|
||||||
return d->sizeHint;
|
return d->sizeHint;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -279,7 +275,6 @@ void Meter::paintWidget(QPainter *p,
|
|||||||
QSize intSize = QSize((int)size().width(), (int)size().height());
|
QSize intSize = QSize((int)size().width(), (int)size().height());
|
||||||
|
|
||||||
if (intSize != d->image->size()) {
|
if (intSize != d->image->size()) {
|
||||||
kDebug() << "Resize:" << intSize << "!=" << d->image->size();
|
|
||||||
d->image->resize(intSize);
|
d->image->resize(intSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user