| | |
| | | |
| | | namespace QWK { |
| | | |
| | | #if QWINDOWKIT_CONFIG(ENABLE_WINDOWS_SYSTEM_BORDER) |
| | | #if QWINDOWKIT_CONFIG(ENABLE_WINDOWS_SYSTEM_BORDERS) |
| | | // TODO: Find a way to draw native border |
| | | // We haven't found a way to place hooks in the Quick program and call the GDI API to draw |
| | | // the native border area so that we'll use the emulated drawn border for now. |
| | |
| | | bool BorderItem::nativeEventFilter(const QByteArray &eventType, void *message, |
| | | QT_NATIVE_EVENT_RESULT_TYPE *result) { |
| | | Q_UNUSED(eventType) |
| | | |
| | | const auto msg = static_cast<const MSG *>(message); |
| | | switch (msg->message) { |
| | | case WM_THEMECHANGED: |
| | |
| | | |
| | | bool BorderItem::sharedEventFilter(QObject *obj, QEvent *event) { |
| | | Q_UNUSED(obj) |
| | | |
| | | switch (event->type()) { |
| | | case QEvent::WindowStateChange: { |
| | | updateGeometry(); |