switch between popup and full on a startup complete constraint

svn path=/trunk/KDE/kdelibs/; revision=896126
This commit is contained in:
Marco Martin 2008-12-12 15:15:40 +00:00
parent 1b3d372062
commit 4b75b49f06

View File

@ -143,6 +143,7 @@ void PopupAppletPrivate::popupConstraintsEvent(Plasma::Constraints constraints)
} }
if (constraints & Plasma::FormFactorConstraint || if (constraints & Plasma::FormFactorConstraint ||
constraints & Plasma::StartupCompletedConstraint ||
(constraints & Plasma::SizeConstraint && (constraints & Plasma::SizeConstraint &&
(f == Plasma::Vertical || f == Plasma::Horizontal))) { (f == Plasma::Vertical || f == Plasma::Horizontal))) {
QGraphicsLinearLayout *lay = dynamic_cast<QGraphicsLinearLayout *>(q->layout()); QGraphicsLinearLayout *lay = dynamic_cast<QGraphicsLinearLayout *>(q->layout());