* make popupEvent protected, like other events

* allow marking the popup dialog as passive

CCBUG:176114

svn path=/trunk/KDE/kdelibs/; revision=889543
This commit is contained in:
Aaron J. Seigo 2008-11-27 06:09:00 +00:00
parent 4659724790
commit e16ba8fed0
2 changed files with 13 additions and 0 deletions

View File

@ -413,6 +413,11 @@ void PopupApplet::setPassivePopup(bool passive)
}
}
bool PopupApplet::isPassivePopup() const
{
return d->passive;
}
PopupAppletPrivate::PopupAppletPrivate(PopupApplet *applet)
: q(applet),
icon(0),

View File

@ -88,10 +88,18 @@ public:
Plasma::PopupPlacement popupPlacement() const;
/**
* Sets whether or not the dialog popup that gets created should be a "passive" popup
* that does not steal focus from other windows or not.
*
* @arg passive true if the dialog should be treated as a passive popup
*/
void setPassivePopup(bool passive);
/**
* @return true if the dialog will be treated as a passive poup
*/
bool isPassivePopup() const;
public Q_SLOTS:
/**
* Hides the popup.