toggle on activation
This commit is contained in:
parent
bb551f7c00
commit
b4b0fc207a
@ -440,8 +440,7 @@ void PopupAppletPrivate::popupConstraintsEvent(Plasma::Constraints constraints)
|
|||||||
|
|
||||||
void PopupAppletPrivate::appletActivated()
|
void PopupAppletPrivate::appletActivated()
|
||||||
{
|
{
|
||||||
q->setStatus(Plasma::NeedsAttentionStatus);
|
internalTogglePopup();
|
||||||
q->showPopup();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QSizeF PopupApplet::sizeHint(Qt::SizeHint which, const QSizeF & constraint) const
|
QSizeF PopupApplet::sizeHint(Qt::SizeHint which, const QSizeF & constraint) const
|
||||||
@ -806,10 +805,7 @@ void PopupAppletPrivate::dialogSizeChanged()
|
|||||||
|
|
||||||
void PopupAppletPrivate::dialogStatusChanged(bool status)
|
void PopupAppletPrivate::dialogStatusChanged(bool status)
|
||||||
{
|
{
|
||||||
if (!status) {
|
q->setStatus(status ? NeedsAttentionStatus : PassiveStatus);
|
||||||
q->setStatus(PassiveStatus);
|
|
||||||
}
|
|
||||||
|
|
||||||
q->popupEvent(status);
|
q->popupEvent(status);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user