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:
Giulio Camuffo 2009-12-06 20:30:23 +00:00
parent 9d8e2eec4d
commit d1a3aef87a

View File

@ -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);