summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/widgets/qmenubar/qmenubar.pro
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dedietrich@qt.io>2016-09-30 15:39:03 -0700
committerGabriel de Dietrich <gabriel.dedietrich@qt.io>2016-10-24 21:14:02 +0000
commit9c83d7f871f95b1cc03fb404bd602df32056b9cb (patch)
tree3f07877076aa230142df4bd6ecfbdbe9198c057d /tests/auto/widgets/widgets/qmenubar/qmenubar.pro
parente2d8c7bf2203cbc0c7ff923caf3132881aafa0b0 (diff)
QCocoaMenuBar: Update even if no window is attached
Then we need to check if the current active (or focused) window has any menubar associated. In case there isn't, and the menubar has no window associated, then we should update immediately. The previous condition is still valid. Change-Id: I4532ccc87354d91c76b53f5433dc3944b9e29584 Task-number: QTBUG-56275 Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Diffstat (limited to 'tests/auto/widgets/widgets/qmenubar/qmenubar.pro')
-rw-r--r--tests/auto/widgets/widgets/qmenubar/qmenubar.pro5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/widgets/widgets/qmenubar/qmenubar.pro b/tests/auto/widgets/widgets/qmenubar/qmenubar.pro
index 3fb6ae61a8..e680cf4d7d 100644
--- a/tests/auto/widgets/widgets/qmenubar/qmenubar.pro
+++ b/tests/auto/widgets/widgets/qmenubar/qmenubar.pro
@@ -2,3 +2,8 @@ CONFIG += testcase
TARGET = tst_qmenubar
QT += widgets testlib
SOURCES += tst_qmenubar.cpp
+
+macos: {
+ OBJECTIVE_SOURCES += tst_qmenubar_mac.mm
+ LIBS += -framework AppKit
+}