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