1/****************************************************************************
2**
3** Copyright (C) 2017 The Qt Company Ltd.
4** Contact: http://www.qt.io/licensing/
5**
6** This file is part of the Qt Quick Templates 2 module of the Qt Toolkit.
7**
8** $QT_BEGIN_LICENSE:LGPL3$
9** Commercial License Usage
10** Licensees holding valid commercial Qt licenses may use this file in
11** accordance with the commercial license agreement provided with the
12** Software or, alternatively, in accordance with the terms contained in
13** a written agreement between you and The Qt Company. For licensing terms
14** and conditions see http://www.qt.io/terms-conditions. For further
15** information use the contact form at http://www.qt.io/contact-us.
16**
17** GNU Lesser General Public License Usage
18** Alternatively, this file may be used under the terms of the GNU Lesser
19** General Public License version 3 as published by the Free Software
20** Foundation and appearing in the file LICENSE.LGPLv3 included in the
21** packaging of this file. Please review the following information to
22** ensure the GNU Lesser General Public License version 3 requirements
23** will be met: https://www.gnu.org/licenses/lgpl.html.
24**
25** GNU General Public License Usage
26** Alternatively, this file may be used under the terms of the GNU
27** General Public License version 2.0 or later as published by the Free
28** Software Foundation and appearing in the file LICENSE.GPL included in
29** the packaging of this file. Please review the following information to
30** ensure the GNU General Public License version 2.0 requirements will be
31** met: http://www.gnu.org/licenses/gpl-2.0.html.
32**
33** $QT_END_LICENSE$
34**
35****************************************************************************/
36
37#ifndef QQUICKPALETTE_P_H
38#define QQUICKPALETTE_P_H
39
40//
41// W A R N I N G
42// -------------
43//
44// This file is not part of the Qt API. It exists purely as an
45// implementation detail. This header file may change from version to
46// version without notice, or even be removed.
47//
48// We mean it.
49//
50
51#include <QtGui/qcolor.h>
52#include <QtGui/qpalette.h>
53#include <QtQuickTemplates2/private/qtquicktemplates2global_p.h>
54
55QT_BEGIN_NAMESPACE
56
57class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickPalette
58{
59 Q_GADGET
60 Q_PROPERTY(QColor alternateBase READ alternateBase WRITE setAlternateBase RESET resetAlternateBase FINAL)
61 Q_PROPERTY(QColor base READ base WRITE setBase RESET resetBase FINAL)
62 Q_PROPERTY(QColor brightText READ brightText WRITE setBrightText RESET resetBrightText FINAL)
63 Q_PROPERTY(QColor button READ button WRITE setButton RESET resetButton FINAL)
64 Q_PROPERTY(QColor buttonText READ buttonText WRITE setButtonText RESET resetButtonText FINAL)
65 Q_PROPERTY(QColor dark READ dark WRITE setDark RESET resetDark FINAL)
66 Q_PROPERTY(QColor highlight READ highlight WRITE setHighlight RESET resetHighlight FINAL)
67 Q_PROPERTY(QColor highlightedText READ highlightedText WRITE setHighlightedText RESET resetHighlightedText FINAL)
68 Q_PROPERTY(QColor light READ light WRITE setLight RESET resetLight FINAL)
69 Q_PROPERTY(QColor link READ link WRITE setLink RESET resetLink FINAL)
70 Q_PROPERTY(QColor linkVisited READ linkVisited WRITE setLinkVisited RESET resetLinkVisited FINAL)
71 Q_PROPERTY(QColor mid READ mid WRITE setMid RESET resetMid FINAL)
72 Q_PROPERTY(QColor midlight READ midlight WRITE setMidlight RESET resetMidlight FINAL)
73 Q_PROPERTY(QColor shadow READ shadow WRITE setShadow RESET resetShadow FINAL)
74 Q_PROPERTY(QColor text READ text WRITE setText RESET resetText FINAL)
75 Q_PROPERTY(QColor toolTipBase READ toolTipBase WRITE setToolTipBase RESET resetToolTipBase FINAL)
76 Q_PROPERTY(QColor toolTipText READ toolTipText WRITE setToolTipText RESET resetToolTipText FINAL)
77 Q_PROPERTY(QColor window READ window WRITE setWindow RESET resetWindow FINAL)
78 Q_PROPERTY(QColor windowText READ windowText WRITE setWindowText RESET resetWindowText FINAL)
79
80public:
81 QColor alternateBase() const;
82 void setAlternateBase(const QColor &color);
83 void resetAlternateBase();
84
85 QColor base() const;
86 void setBase(const QColor &color);
87 void resetBase();
88
89 QColor brightText() const;
90 void setBrightText(const QColor &color);
91 void resetBrightText();
92
93 QColor button() const;
94 void setButton(const QColor &color);
95 void resetButton();
96
97 QColor buttonText() const;
98 void setButtonText(const QColor &color);
99 void resetButtonText();
100
101 QColor dark() const;
102 void setDark(const QColor &color);
103 void resetDark();
104
105 QColor highlight() const;
106 void setHighlight(const QColor &color);
107 void resetHighlight();
108
109 QColor highlightedText() const;
110 void setHighlightedText(const QColor &color);
111 void resetHighlightedText();
112
113 QColor light() const;
114 void setLight(const QColor &color);
115 void resetLight();
116
117 QColor link() const;
118 void setLink(const QColor &color);
119 void resetLink();
120
121 QColor linkVisited() const;
122 void setLinkVisited(const QColor &color);
123 void resetLinkVisited();
124
125 QColor mid() const;
126 void setMid(const QColor &color);
127 void resetMid();
128
129 QColor midlight() const;
130 void setMidlight(const QColor &color);
131 void resetMidlight();
132
133 QColor shadow() const;
134 void setShadow(const QColor &color);
135 void resetShadow();
136
137 QColor text() const;
138 void setText(const QColor &color);
139 void resetText();
140
141 QColor toolTipBase() const;
142 void setToolTipBase(const QColor &color);
143 void resetToolTipBase();
144
145 QColor toolTipText() const;
146 void setToolTipText(const QColor &color);
147 void resetToolTipText();
148
149 QColor window() const;
150 void setWindow(const QColor &color);
151 void resetWindow();
152
153 QColor windowText() const;
154 void setWindowText(const QColor &color);
155 void resetWindowText();
156
157private:
158 QPalette v;
159};
160
161QT_END_NAMESPACE
162
163#endif // QQUICKPALETTE_P_H
164

source code of qtquickcontrols2/src/quicktemplates2/qquickpalette_p.h