From 79b5734d906912aaeb83a6da79cf398832ce8b94 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Wed, 8 Aug 2012 17:50:21 +0200 Subject: [PATCH] emit clickedOutside when it should --- declarativeimports/plasmacomponents/fullscreenwindow.cpp | 1 + declarativeimports/plasmacomponents/fullscreenwindow.h | 1 + 2 files changed, 2 insertions(+) diff --git a/declarativeimports/plasmacomponents/fullscreenwindow.cpp b/declarativeimports/plasmacomponents/fullscreenwindow.cpp index 35d23aae5..231b591d3 100644 --- a/declarativeimports/plasmacomponents/fullscreenwindow.cpp +++ b/declarativeimports/plasmacomponents/fullscreenwindow.cpp @@ -78,6 +78,7 @@ public: void mouseReleaseEvent(QMouseEvent *event) { if (!m_dialog->view()->geometry().contains(event->globalPos())) { + emit m_dialog->clickedOutside(); m_dialog->close(); } } diff --git a/declarativeimports/plasmacomponents/fullscreenwindow.h b/declarativeimports/plasmacomponents/fullscreenwindow.h index c1a378604..1f0eb225e 100644 --- a/declarativeimports/plasmacomponents/fullscreenwindow.h +++ b/declarativeimports/plasmacomponents/fullscreenwindow.h @@ -96,6 +96,7 @@ private: QList m_dummyTitleElements; QList m_dummyContentElements; QList m_dummyButtonsElements; + friend class Background; }; #endif