close on focus out

This commit is contained in:
Marco Martin 2013-05-13 11:20:42 +02:00
parent 98130b33fe
commit 981ae1cdd6
2 changed files with 8 additions and 0 deletions

View File

@ -85,5 +85,10 @@ void PanelConfigView::syncGeometry()
} }
} }
void PanelConfigView::focusOutEvent(QFocusEvent *ev)
{
Q_UNUSED(ev)
close();
}
#include "moc_panelconfigview.cpp" #include "moc_panelconfigview.cpp"

View File

@ -48,6 +48,9 @@ public:
void init(); void init();
protected:
void focusOutEvent(QFocusEvent *ev);
protected Q_SLOTS: protected Q_SLOTS:
void syncGeometry(); void syncGeometry();