* better behavior with aspectRatioMode.
* one important line more than the diff in reviewboard needed to correctly restore the aspectratio. svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=872574
This commit is contained in:
parent
88137e4136
commit
7f51dcbf62
@ -76,7 +76,12 @@ void PopupApplet::setPopupIcon(const QIcon &icon)
|
||||
layout->setContentsMargins(0, 0, 0, 0);
|
||||
layout->setSpacing(0);
|
||||
layout->setOrientation(Qt::Horizontal);
|
||||
setAspectRatioMode(Plasma::ConstrainedSquare);
|
||||
|
||||
if (formFactor() == Plasma::Vertical || formFactor() == Plasma::Horizontal ) {
|
||||
d->savedAspectRatio = aspectRatioMode();
|
||||
setAspectRatioMode(Plasma::ConstrainedSquare);
|
||||
}
|
||||
|
||||
setLayout(layout);
|
||||
} else {
|
||||
d->icon->setIcon(icon);
|
||||
|
Loading…
Reference in New Issue
Block a user