OpenCoverage

qquicksystempalette.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/util/qquicksystempalette.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6class QQuickSystemPalettePrivate : public QObjectPrivate-
7{-
8public:-
9 QPalette::ColorGroup group;-
10};-
11QQuickSystemPalette::QQuickSystemPalette(QObject *parent)-
12 : QObject(*(new QQuickSystemPalettePrivate), parent)-
13{-
14 QQuickSystemPalettePrivate * const d = d_func();-
15 d->group = QPalette::Active;-
16 connect((static_cast<QGuiApplication *>(QCoreApplication::instance())), qFlagLocation("2""paletteChanged(QPalette)" "\0" __FILE__ ":" "86"), this, qFlagLocation("2""paletteChanged()" "\0" __FILE__ ":" "86"));-
17}
executed 48 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquicksystempalette
48
18-
19QQuickSystemPalette::~QQuickSystemPalette()-
20{-
21}-
22-
23-
24-
25-
26-
27-
28-
29QColor QQuickSystemPalette::window() const-
30{-
31 const QQuickSystemPalettePrivate * const d = d_func();-
32 return
executed 16 times by 2 tests: return QGuiApplication::palette().color(d->group, QPalette::Window);
Executed by:
  • tst_examples
  • tst_qquicksystempalette
QGuiApplication::palette().color(d->group, QPalette::Window);
executed 16 times by 2 tests: return QGuiApplication::palette().color(d->group, QPalette::Window);
Executed by:
  • tst_examples
  • tst_qquicksystempalette
16
33}-
34-
35-
36-
37-
38-
39-
40-
41QColor QQuickSystemPalette::windowText() const-
42{-
43 const QQuickSystemPalettePrivate * const d = d_func();-
44 return
executed 16 times by 2 tests: return QGuiApplication::palette().color(d->group, QPalette::WindowText);
Executed by:
  • tst_examples
  • tst_qquicksystempalette
QGuiApplication::palette().color(d->group, QPalette::WindowText);
executed 16 times by 2 tests: return QGuiApplication::palette().color(d->group, QPalette::WindowText);
Executed by:
  • tst_examples
  • tst_qquicksystempalette
16
45}-
46-
47-
48-
49-
50-
51-
52-
53QColor QQuickSystemPalette::base() const-
54{-
55 const QQuickSystemPalettePrivate * const d = d_func();-
56 return
executed 6 times by 1 test: return QGuiApplication::palette().color(d->group, QPalette::Base);
Executed by:
  • tst_qquicksystempalette
QGuiApplication::palette().color(d->group, QPalette::Base);
executed 6 times by 1 test: return QGuiApplication::palette().color(d->group, QPalette::Base);
Executed by:
  • tst_qquicksystempalette
6
57}-
58-
59-
60-
61-
62-
63-
64-
65QColor QQuickSystemPalette::text() const-
66{-
67 const QQuickSystemPalettePrivate * const d = d_func();-
68 return
executed 14 times by 1 test: return QGuiApplication::palette().color(d->group, QPalette::Text);
Executed by:
  • tst_qquicksystempalette
QGuiApplication::palette().color(d->group, QPalette::Text);
executed 14 times by 1 test: return QGuiApplication::palette().color(d->group, QPalette::Text);
Executed by:
  • tst_qquicksystempalette
14
69}-
70-
71-
72-
73-
74-
75-
76-
77QColor QQuickSystemPalette::alternateBase() const-
78{-
79 const QQuickSystemPalettePrivate * const d = d_func();-
80 return
executed 6 times by 1 test: return QGuiApplication::palette().color(d->group, QPalette::AlternateBase);
Executed by:
  • tst_qquicksystempalette
QGuiApplication::palette().color(d->group, QPalette::AlternateBase);
executed 6 times by 1 test: return QGuiApplication::palette().color(d->group, QPalette::AlternateBase);
Executed by:
  • tst_qquicksystempalette
6
81}-
82-
83-
84-
85-
86-
87-
88-
89QColor QQuickSystemPalette::button() const-
90{-
91 const QQuickSystemPalettePrivate * const d = d_func();-
92 return
executed 142 times by 2 tests: return QGuiApplication::palette().color(d->group, QPalette::Button);
Executed by:
  • tst_examples
  • tst_qquicksystempalette
QGuiApplication::palette().color(d->group, QPalette::Button);
executed 142 times by 2 tests: return QGuiApplication::palette().color(d->group, QPalette::Button);
Executed by:
  • tst_examples
  • tst_qquicksystempalette
142
93}-
94-
95-
96-
97-
98-
99-
100-
101QColor QQuickSystemPalette::buttonText() const-
102{-
103 const QQuickSystemPalettePrivate * const d = d_func();-
104 return
executed 52 times by 2 tests: return QGuiApplication::palette().color(d->group, QPalette::ButtonText);
Executed by:
  • tst_examples
  • tst_qquicksystempalette
QGuiApplication::palette().color(d->group, QPalette::ButtonText);
executed 52 times by 2 tests: return QGuiApplication::palette().color(d->group, QPalette::ButtonText);
Executed by:
  • tst_examples
  • tst_qquicksystempalette
52
105}-
106-
107-
108-
109-
110-
111-
112-
113QColor QQuickSystemPalette::light() const-
114{-
115 const QQuickSystemPalettePrivate * const d = d_func();-
116 return
executed 14 times by 2 tests: return QGuiApplication::palette().color(d->group, QPalette::Light);
Executed by:
  • tst_examples
  • tst_qquicksystempalette
QGuiApplication::palette().color(d->group, QPalette::Light);
executed 14 times by 2 tests: return QGuiApplication::palette().color(d->group, QPalette::Light);
Executed by:
  • tst_examples
  • tst_qquicksystempalette
14
117}-
118-
119-
120-
121-
122-
123-
124-
125QColor QQuickSystemPalette::midlight() const-
126{-
127 const QQuickSystemPalettePrivate * const d = d_func();-
128 return
executed 6 times by 1 test: return QGuiApplication::palette().color(d->group, QPalette::Midlight);
Executed by:
  • tst_qquicksystempalette
QGuiApplication::palette().color(d->group, QPalette::Midlight);
executed 6 times by 1 test: return QGuiApplication::palette().color(d->group, QPalette::Midlight);
Executed by:
  • tst_qquicksystempalette
6
129}-
130-
131-
132-
133-
134-
135-
136-
137QColor QQuickSystemPalette::dark() const-
138{-
139 const QQuickSystemPalettePrivate * const d = d_func();-
140 return
executed 6 times by 1 test: return QGuiApplication::palette().color(d->group, QPalette::Dark);
Executed by:
  • tst_qquicksystempalette
QGuiApplication::palette().color(d->group, QPalette::Dark);
executed 6 times by 1 test: return QGuiApplication::palette().color(d->group, QPalette::Dark);
Executed by:
  • tst_qquicksystempalette
6
141}-
142-
143-
144-
145-
146-
147-
148-
149QColor QQuickSystemPalette::mid() const-
150{-
151 const QQuickSystemPalettePrivate * const d = d_func();-
152 return
executed 6 times by 1 test: return QGuiApplication::palette().color(d->group, QPalette::Mid);
Executed by:
  • tst_qquicksystempalette
QGuiApplication::palette().color(d->group, QPalette::Mid);
executed 6 times by 1 test: return QGuiApplication::palette().color(d->group, QPalette::Mid);
Executed by:
  • tst_qquicksystempalette
6
153}-
154-
155-
156-
157-
158-
159-
160-
161QColor QQuickSystemPalette::shadow() const-
162{-
163 const QQuickSystemPalettePrivate * const d = d_func();-
164 return
executed 6 times by 1 test: return QGuiApplication::palette().color(d->group, QPalette::Shadow);
Executed by:
  • tst_qquicksystempalette
QGuiApplication::palette().color(d->group, QPalette::Shadow);
executed 6 times by 1 test: return QGuiApplication::palette().color(d->group, QPalette::Shadow);
Executed by:
  • tst_qquicksystempalette
6
165}-
166-
167-
168-
169-
170-
171-
172-
173QColor QQuickSystemPalette::highlight() const-
174{-
175 const QQuickSystemPalettePrivate * const d = d_func();-
176 return
executed 6 times by 1 test: return QGuiApplication::palette().color(d->group, QPalette::Highlight);
Executed by:
  • tst_qquicksystempalette
QGuiApplication::palette().color(d->group, QPalette::Highlight);
executed 6 times by 1 test: return QGuiApplication::palette().color(d->group, QPalette::Highlight);
Executed by:
  • tst_qquicksystempalette
6
177}-
178-
179-
180-
181-
182-
183-
184-
185QColor QQuickSystemPalette::highlightedText() const-
186{-
187 const QQuickSystemPalettePrivate * const d = d_func();-
188 return
executed 6 times by 1 test: return QGuiApplication::palette().color(d->group, QPalette::HighlightedText);
Executed by:
  • tst_qquicksystempalette
QGuiApplication::palette().color(d->group, QPalette::HighlightedText);
executed 6 times by 1 test: return QGuiApplication::palette().color(d->group, QPalette::HighlightedText);
Executed by:
  • tst_qquicksystempalette
6
189}-
190QQuickSystemPalette::ColorGroup QQuickSystemPalette::colorGroup() const-
191{-
192 const QQuickSystemPalettePrivate * const d = d_func();-
193 return
executed 4 times by 1 test: return (QQuickSystemPalette::ColorGroup)d->group;
Executed by:
  • tst_qquicksystempalette
(QQuickSystemPalette::ColorGroup)d->group;
executed 4 times by 1 test: return (QQuickSystemPalette::ColorGroup)d->group;
Executed by:
  • tst_qquicksystempalette
4
194}-
195-
196void QQuickSystemPalette::setColorGroup(QQuickSystemPalette::ColorGroup colorGroup)-
197{-
198 QQuickSystemPalettePrivate * const d = d_func();-
199 d->group = (QPalette::ColorGroup)colorGroup;-
200 paletteChanged();-
201}
executed 8 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquicksystempalette
8
202-
203-
204-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0