From e16ba8fed00ee04e935d3ff61336acaa1cb1ee3d Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Thu, 27 Nov 2008 06:09:00 +0000 Subject: [PATCH] * make popupEvent protected, like other events * allow marking the popup dialog as passive CCBUG:176114 svn path=/trunk/KDE/kdelibs/; revision=889543 --- popupapplet.cpp | 5 +++++ popupapplet.h | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/popupapplet.cpp b/popupapplet.cpp index f0687f527..6afc53ae1 100644 --- a/popupapplet.cpp +++ b/popupapplet.cpp @@ -413,6 +413,11 @@ void PopupApplet::setPassivePopup(bool passive) } } +bool PopupApplet::isPassivePopup() const +{ + return d->passive; +} + PopupAppletPrivate::PopupAppletPrivate(PopupApplet *applet) : q(applet), icon(0), diff --git a/popupapplet.h b/popupapplet.h index 36904e480..8c50758b0 100644 --- a/popupapplet.h +++ b/popupapplet.h @@ -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.