From 862cbfe3032b1f71977fb66af7bd87645ec3eeac Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: ćšć, 21 12æ 2023 23:27:04 +0800 Subject: [PATCH] minor tweaks --- src/stylesupport/styleagent_p.h | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/src/stylesupport/styleagent_p.h b/src/stylesupport/styleagent_p.h index b07bc4e..739a0b1 100644 --- a/src/stylesupport/styleagent_p.h +++ b/src/stylesupport/styleagent_p.h @@ -1,7 +1,17 @@ #ifndef STYLEAGENTPRIVATE_H #define STYLEAGENTPRIVATE_H +// +// W A R N I N G !!! +// ----------------- +// +// This file is not part of the QWindowKit API. It is used purely as an +// implementation detail. This header file may change from version to +// version without notice, or may even be removed. +// + #include <QWKStyleSupport/styleagent.h> +#include <QtCore/QHash> namespace QWK { @@ -15,12 +25,16 @@ StyleAgent *q_ptr; + StyleAgent::SystemTheme systemTheme = StyleAgent::Dark; QHash<QWindow *, QVariantHash> windowAttributes; virtual void setupSystemThemeHook(); + virtual void removeSystemThemeHook(); virtual bool updateWindowAttribute(QWindow *window, const QString &key, const QVariant &attribute, const QVariant &oldAttribute); + void notifyThemeChanged(StyleAgent::SystemTheme theme); + private: void _q_windowDestroyed(); }; -- Gitblit v1.9.1