| | |
| | | nswindow.hasShadow = YES; |
| | | nswindow.showsToolbarButton = NO; |
| | | nswindow.movableByWindowBackground = NO; |
| | | // nswindow.movable = NO; // This line causes the window in the wrong position when |
| | | nswindow.movable = NO; // This line causes the window in the wrong position when |
| | | // become fullscreen. |
| | | // For some unknown reason, we don't need the following hack in Qt versions below or |
| | | // equal to 6.2.4. |
| | |
| | | |
| | | if(WIN32) |
| | | list(APPEND _src widgetwindowagent_win.cpp) |
| | | elseif(APPLE) |
| | | list(APPEND _src widgetwindowagent_cocoa.cpp) |
| | | else() |
| | | list(APPEND _src widgetwindowagent_qt.cpp) |
| | | endif() |
| | | |
| | | qwk_add_library(${PROJECT_NAME} AUTOGEN |
| | |
| | | if (!d->context->setTitleBar(w)) { |
| | | return; |
| | | } |
| | | #ifdef Q_OS_MACOS |
| | | d->setupMacOSTitleBar(w); |
| | | #endif |
| | | Q_EMIT titleBarWidgetChanged(w); |
| | | } |
| | | |
| | |
| | | |
| | | #ifdef Q_OS_WINDOWS |
| | | void setupWindows10BorderWorkaround(); |
| | | #elif defined(Q_OS_MACOS) |
| | | void setupMacOSTitleBar(QWidget *titleBar); |
| | | #endif |
| | | }; |
| | | |