applets without an icon can have their own aspect ratio (clocks :))
svn path=/trunk/KDE/kdelibs/; revision=900421
This commit is contained in:
parent
5523a9b8cb
commit
38ab27d842
@ -64,6 +64,7 @@ void PopupApplet::setPopupIcon(const QIcon &icon)
|
||||
delete d->icon;
|
||||
d->icon = 0;
|
||||
setLayout(0);
|
||||
setAspectRatioMode(d->savedAspectRatio);
|
||||
}
|
||||
return;
|
||||
}
|
||||
@ -255,10 +256,10 @@ void PopupAppletPrivate::popupConstraintsEvent(Plasma::Constraints constraints)
|
||||
kDebug() << "about to switch to a popup";
|
||||
//save the aspect ratio mode in case we drag'n drop in the Desktop later
|
||||
savedAspectRatio = q->aspectRatioMode();
|
||||
q->setAspectRatioMode(Plasma::ConstrainedSquare);
|
||||
|
||||
if (icon) {
|
||||
icon->show();
|
||||
q->setAspectRatioMode(Plasma::ConstrainedSquare);
|
||||
}
|
||||
|
||||
if (proxy) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user