if targetSize is in lock step with the boundingRect size, then change them together
svn path=/trunk/KDE/kdelibs/; revision=953300
This commit is contained in:
parent
dc7bd9bbb5
commit
e58c7051ab
@ -194,9 +194,10 @@ bool Wallpaper::isInitialized() const
|
|||||||
|
|
||||||
void Wallpaper::setBoundingRect(const QRectF &boundingRect)
|
void Wallpaper::setBoundingRect(const QRectF &boundingRect)
|
||||||
{
|
{
|
||||||
|
QSizeF oldBoundingRectSize = d->boundingRect.size();
|
||||||
d->boundingRect = boundingRect;
|
d->boundingRect = boundingRect;
|
||||||
|
|
||||||
if (!d->targetSize.isValid()) {
|
if (!d->targetSize.isValid() || d->targetSize == oldBoundingRectSize) {
|
||||||
d->targetSize = boundingRect.size();
|
d->targetSize = boundingRect.size();
|
||||||
emit renderHintsChanged();
|
emit renderHintsChanged();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user