#ifndef STYLEAGENT_H #define STYLEAGENT_H #include #include #include #include namespace QWK { class StyleAgentPrivate; class QWK_STYLESUPPORT_EXPORT StyleAgent : public QObject { Q_OBJECT Q_DECLARE_PRIVATE(StyleAgent) public: explicit StyleAgent(QObject *parent = nullptr); ~StyleAgent() override; public: QVariant windowAttribute(QWindow *window, const QString &key) const; bool setWindowAttribute(QWindow *window, const QString &key, const QVariant &attribute); Q_SIGNALS: void systemThemeChanged(); protected: StyleAgent(StyleAgentPrivate &d, QObject *parent = nullptr); const std::unique_ptr d_ptr; }; } #endif // STYLEAGENT_H