Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qquicknativestyle.h
Go to the documentation of this file.
1// Copyright (C) 2020 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QQUICKNATIVESTYLE_H
5#define QQUICKNATIVESTYLE_H
6
7#include "qquickstyle.h"
8
10
11namespace QQC2 {
12
14{
15public:
16 static void setStyle(QStyle *style)
17 {
18 if (s_style)
19 delete s_style;
20 s_style = style;
21 }
22
23 inline static QStyle *style()
24 {
25 return s_style;
26 }
27
28private:
29 static QStyle *s_style;
30};
31
32} // namespace QQC2
33
35
36#endif // QQUICKNATIVESTYLE_H
static void setStyle(QStyle *style)
Combined button and popup list for selecting options.