the aspect ratio mode is already set in popupConstraintsEvent, avoid override of right aspect ratio mode
svn path=/trunk/KDE/kdelibs/; revision=1059508
This commit is contained in:
parent
9d8e2eec4d
commit
d1a3aef87a
@ -101,11 +101,6 @@ void PopupApplet::setPopupIcon(const QIcon &icon)
|
|||||||
layout->setSpacing(0);
|
layout->setSpacing(0);
|
||||||
layout->setOrientation(Qt::Horizontal);
|
layout->setOrientation(Qt::Horizontal);
|
||||||
|
|
||||||
if (formFactor() == Plasma::Vertical || formFactor() == Plasma::Horizontal ) {
|
|
||||||
d->savedAspectRatio = aspectRatioMode();
|
|
||||||
setAspectRatioMode(Plasma::ConstrainedSquare);
|
|
||||||
}
|
|
||||||
|
|
||||||
setLayout(layout);
|
setLayout(layout);
|
||||||
} else {
|
} else {
|
||||||
d->icon->setIcon(icon);
|
d->icon->setIcon(icon);
|
||||||
|
Loading…
Reference in New Issue
Block a user