9#include <QtCore/private/qcore_mac_p.h>
11#include <QtGui/qguiapplication.h>
12#include <QtGui/qwindow.h>
22 NSApplicationDidFinishLaunchingNotification, [
this] { initialize(); });
26void QCocoaWindowManager::initialize()
36 NSApp,
@"modalWindow", [
this] { modalSessionChanged(); },
37 NSKeyValueObservingOptionInitial | NSKeyValueObservingOptionNew);
40void QCocoaWindowManager::modalSessionChanged()
50 if (naturalWindowLevel > NSModalPanelWindowLevel) {
52 if (NSApp.modalWindow) {
72 [
panel setWorksWhenModal:
panel.worksWhenModal];
NSInteger windowLevel(Qt::WindowFlags flags)
Combined button and popup list for selecting options.
static QWindowsDirect2DWindow * nativeWindow(QWindow *window)