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();