blob: a063f58b33c26b68b960f23882ac4129694d9bf7 (
plain)
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
30
31
32
33
34
35
36
|
// Copyright (C) 2020 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#ifndef QQUICKNATIVESTYLE_H
#define QQUICKNATIVESTYLE_H
#include "qquickstyle.h"
QT_BEGIN_NAMESPACE
namespace QQC2 {
class QQuickNativeStyle
{
public:
static void setStyle(QStyle *style)
{
if (s_style)
delete s_style;
s_style = style;
}
inline static QStyle *style()
{
return s_style;
}
private:
static QStyle *s_style;
};
} // namespace QQC2
QT_END_NAMESPACE
#endif // QQUICKNATIVESTYLE_H
|