From 981ae1cdd6acb729986d3684e751e2517616c60b Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Mon, 13 May 2013 11:20:42 +0200 Subject: [PATCH] close on focus out --- src/shell/panelconfigview.cpp | 5 +++++ src/shell/panelconfigview.h | 3 +++ 2 files changed, 8 insertions(+) diff --git a/src/shell/panelconfigview.cpp b/src/shell/panelconfigview.cpp index c019d87e3..40f81f574 100644 --- a/src/shell/panelconfigview.cpp +++ b/src/shell/panelconfigview.cpp @@ -85,5 +85,10 @@ void PanelConfigView::syncGeometry() } } +void PanelConfigView::focusOutEvent(QFocusEvent *ev) +{ + Q_UNUSED(ev) + close(); +} #include "moc_panelconfigview.cpp" diff --git a/src/shell/panelconfigview.h b/src/shell/panelconfigview.h index ce7b56948..df6b797a7 100644 --- a/src/shell/panelconfigview.h +++ b/src/shell/panelconfigview.h @@ -48,6 +48,9 @@ public: void init(); +protected: + void focusOutEvent(QFocusEvent *ev); + protected Q_SLOTS: void syncGeometry();