summaryrefslogtreecommitdiffstats
path: root/src/widgets
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@qt.io>2016-11-29 16:43:42 +0100
committerPaul Olav Tvete <paul.tvete@qt.io>2016-11-30 11:24:43 +0000
commit5b65698248325576faa03a2bb78d17349a33a194 (patch)
treeb5b5c9ba26fdac49ebb52c4408b1916e1d32aed9 /src/widgets
parent1a0e690d50ff3b99a8a2e785c711b43f71de8459 (diff)
Close popups when blocked by modal dialog
Don't block the event that Qt depends on to close popups. Task-number: QTBUG-57292 Change-Id: Ida1f928b81868f68a7b1e19cd0b83485d2a7232e Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/kernel/qapplication_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/widgets/kernel/qapplication_p.h b/src/widgets/kernel/qapplication_p.h
index 3bef773187..73c75bbc14 100644
--- a/src/widgets/kernel/qapplication_p.h
+++ b/src/widgets/kernel/qapplication_p.h
@@ -164,6 +164,7 @@ public:
#endif
static bool inPopupMode();
+ bool popupActive() Q_DECL_OVERRIDE { return inPopupMode(); }
void closePopup(QWidget *popup);
void openPopup(QWidget *popup);
static void setFocusWidget(QWidget *focus, Qt::FocusReason reason);