Zhao Yuhang
2023-12-21 430d245bb94c634047e7b65232eb3e50e2b6e49a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include "styleagent_p.h"
 
#include <QtCore/QVariant>
 
namespace QWK {
 
    void StyleAgentPrivate::setupSystemThemeHook() {
    }
 
    void StyleAgentPrivate::removeSystemThemeHook() {
    }
 
    bool StyleAgentPrivate::updateWindowAttribute(QWindow *window, const QString &key,
                                                  const QVariant &attribute,
                                                  const QVariant &oldAttribute) {
        Q_UNUSED(oldAttribute)
 
        if (key == QStringLiteral("no-system-buttons")) {
            if (attribute.toBool()) {
                // TODO: set off
            } else {
                // TODO: set on
            }
            return true;
        }
        return false;
    }
 
}