fix behavior when hint-bar-stretch is present

This commit is contained in:
Marco Martin 2012-06-21 15:32:52 +02:00
parent 1b5bf827c6
commit 988737b128

View File

@ -184,10 +184,14 @@ void MeterPrivate::paintBar(QPainter *p, const QString &prefix)
image->setUsingRenderingCache(false);
if (image->hasElement("hint-bar-stretch")) {
const QSize imageSize = image->size();
image->resize();
image->setElementPrefix(prefix);
image->resizeFrame(elementRect.size());
image->paintFrame(p);
image->paintFrame(p, elementRect.topLeft());
image->resize(imageSize);
} else {
QSize imageSize = image->size();
const QSize imageSize = image->size();
image->resize();
QSize tileSize = image->elementSize("bar-active-center");