summaryrefslogtreecommitdiffstats
path: root/kdeui
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-10-18 03:40:42 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-10-18 03:40:42 +0000
commitb70482d0e78ee99dd95c4b33da960e1766832a36 (patch)
tree48a1b5deba0e56ae034ec14e31adf0064768798f /kdeui
parent715433c853b0ad163093e08ecf55b5621db62022 (diff)
downloadtdelibs-b70482d0e78ee99dd95c4b33da960e1766832a36.tar.gz
tdelibs-b70482d0e78ee99dd95c4b33da960e1766832a36.zip
Make KPassivePopup emit a signal when a popup is hidden
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1259345 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeui')
-rw-r--r--kdeui/kpassivepopup.cpp1
-rw-r--r--kdeui/kpassivepopup.h5
2 files changed, 6 insertions, 0 deletions
diff --git a/kdeui/kpassivepopup.cpp b/kdeui/kpassivepopup.cpp
index 95dd48546..01aadcb49 100644
--- a/kdeui/kpassivepopup.cpp
+++ b/kdeui/kpassivepopup.cpp
@@ -226,6 +226,7 @@ void KPassivePopup::show(const TQPoint &p)
void KPassivePopup::hideEvent( TQHideEvent * )
{
hideTimer->stop();
+ emit( hidden( this ) );
if ( m_autoDelete )
deleteLater();
}
diff --git a/kdeui/kpassivepopup.h b/kdeui/kpassivepopup.h
index ecac2a90b..f1bbd7298 100644
--- a/kdeui/kpassivepopup.h
+++ b/kdeui/kpassivepopup.h
@@ -291,6 +291,11 @@ signals:
*/
void clicked( TQPoint pos );
+ /**
+ * Emitted when the popup is hidden.
+ */
+ void hidden(KPassivePopup*);
+
protected:
/**
* This method positions the popup.