From 54623b054721d42db721d0ba7429b6f8878fc1a5 Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周二, 26 12月 2023 02:44:18 +0800 Subject: [PATCH] minor tweaks --- src/core/contexts/win32windowcontext_p.h | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/core/contexts/win32windowcontext_p.h b/src/core/contexts/win32windowcontext_p.h index 698958f..6a01e16 100644 --- a/src/core/contexts/win32windowcontext_p.h +++ b/src/core/contexts/win32windowcontext_p.h @@ -17,8 +17,6 @@ class Win32WindowContext : public AbstractWindowContext { Q_OBJECT - Q_PROPERTY(bool needBorderPainter READ needBorderPainter FINAL) - Q_PROPERTY(int borderThickness READ borderThickness FINAL) public: Win32WindowContext(); ~Win32WindowContext() override; @@ -35,11 +33,12 @@ QString key() const override; void virtual_hook(int id, void *data) override; - bool needBorderPainter() const; - int borderThickness() const; + QVariant windowAttribute(const QString &key) const override; protected: - void winIdChanged(QWindow *oldWindow, bool isDestroyed) override; + void winIdChanged() override; + bool windowAttributeChanged(const QString &key, const QVariant &attribute, + const QVariant &oldAttribute) override; public: bool windowProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam, LRESULT *result); -- Gitblit v1.9.1