Line | Source Code | Coverage |
---|
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
7 | | - |
8 | | - |
9 | QPlatformWindow::QPlatformWindow(QWindow *window) | - |
10 | : QPlatformSurface(window) | - |
11 | , d_ptr(new QPlatformWindowPrivate) | - |
12 | { | - |
13 | QPlatformWindowPrivate * const d = d_func(); | - |
14 | d->rect = window->geometry(); | - |
15 | } executed: } Execution Count:2711 | 2711 |
16 | | - |
17 | | - |
18 | | - |
19 | | - |
20 | QPlatformWindow::~QPlatformWindow() | - |
21 | { | - |
22 | } | - |
23 | | - |
24 | | - |
25 | | - |
26 | | - |
27 | QWindow *QPlatformWindow::window() const | - |
28 | { | - |
29 | return static_cast<QWindow *>(m_surface); executed: return static_cast<QWindow *>(m_surface); Execution Count:164699 | 164699 |
30 | } | - |
31 | | - |
32 | | - |
33 | | - |
34 | | - |
35 | QPlatformWindow *QPlatformWindow::parent() const | - |
36 | { | - |
37 | return window()->parent() ? window()->parent()->handle() : 0; executed: return window()->parent() ? window()->parent()->handle() : 0; Execution Count:4538 | 4538 |
38 | } | - |
39 | | - |
40 | | - |
41 | | - |
42 | | - |
43 | QPlatformScreen *QPlatformWindow::screen() const | - |
44 | { | - |
45 | return window()->screen()->handle(); executed: return window()->screen()->handle(); Execution Count:259 | 259 |
46 | } | - |
47 | | - |
48 | | - |
49 | | - |
50 | | - |
51 | QSurfaceFormat QPlatformWindow::format() const | - |
52 | { | - |
53 | return QSurfaceFormat(); never executed: return QSurfaceFormat(); | 0 |
54 | } | - |
55 | void QPlatformWindow::setGeometry(const QRect &rect) | - |
56 | { | - |
57 | QPlatformWindowPrivate * const d = d_func(); | - |
58 | d->rect = rect; | - |
59 | } executed: } Execution Count:6986 | 6986 |
60 | | - |
61 | | - |
62 | | - |
63 | | - |
64 | QRect QPlatformWindow::geometry() const | - |
65 | { | - |
66 | const QPlatformWindowPrivate * const d = d_func(); | - |
67 | return d->rect; executed: return d->rect; Execution Count:69625 | 69625 |
68 | } | - |
69 | | - |
70 | QMargins QPlatformWindow::frameMargins() const | - |
71 | { | - |
72 | return QMargins(); never executed: return QMargins(); | 0 |
73 | } | - |
74 | | - |
75 | | - |
76 | | - |
77 | | - |
78 | | - |
79 | | - |
80 | | - |
81 | void QPlatformWindow::setVisible(bool visible) | - |
82 | { | - |
83 | (void)visible;; | - |
84 | QRect rect(QPoint(), geometry().size()); | - |
85 | QWindowSystemInterface::handleExposeEvent(window(), rect); | - |
86 | QWindowSystemInterface::flushWindowSystemEvents(); | - |
87 | } | 0 |
88 | | - |
89 | | - |
90 | | - |
91 | | - |
92 | | - |
93 | void QPlatformWindow::setWindowFlags(Qt::WindowFlags flags) | - |
94 | { | - |
95 | (void)flags;; | - |
96 | } | 0 |
97 | | - |
98 | | - |
99 | | - |
100 | | - |
101 | | - |
102 | | - |
103 | | - |
104 | bool QPlatformWindow::isExposed() const | - |
105 | { | - |
106 | return window()->isVisible(); never executed: return window()->isVisible(); | 0 |
107 | } | - |
108 | | - |
109 | | - |
110 | | - |
111 | | - |
112 | | - |
113 | | - |
114 | | - |
115 | bool QPlatformWindow::isActive() const | - |
116 | { | - |
117 | return false; executed: return false; Execution Count:194155 | 194155 |
118 | } | - |
119 | bool QPlatformWindow::isEmbedded(const QPlatformWindow *parentWindow) const | - |
120 | { | - |
121 | (void)parentWindow;; | - |
122 | return false; executed: return false; Execution Count:29294 | 29294 |
123 | } | - |
124 | QPoint QPlatformWindow::mapToGlobal(const QPoint &pos) const | - |
125 | { | - |
126 | return pos; never executed: return pos; | 0 |
127 | } | - |
128 | QPoint QPlatformWindow::mapFromGlobal(const QPoint &pos) const | - |
129 | { | - |
130 | return pos; never executed: return pos; | 0 |
131 | } | - |
132 | | - |
133 | | - |
134 | | - |
135 | | - |
136 | | - |
137 | | - |
138 | | - |
139 | void QPlatformWindow::setWindowState(Qt::WindowState) | - |
140 | { | - |
141 | } | - |
142 | | - |
143 | | - |
144 | | - |
145 | | - |
146 | WId QPlatformWindow::winId() const | - |
147 | { | - |
148 | | - |
149 | | - |
150 | | - |
151 | | - |
152 | return WId(1); never executed: return WId(1); | 0 |
153 | } | - |
154 | void QPlatformWindow::setParent(const QPlatformWindow *parent) | - |
155 | { | - |
156 | (void)parent;; | - |
157 | QMessageLogger("kernel/qplatformwindow.cpp", 247, __PRETTY_FUNCTION__).warning("This plugin does not support setParent!"); | - |
158 | } | 0 |
159 | void QPlatformWindow::setWindowTitle(const QString &title) { (void)title;; } | 0 |
160 | | - |
161 | | - |
162 | | - |
163 | | - |
164 | void QPlatformWindow::setWindowFilePath(const QString &filePath) { (void)filePath;; } | 0 |
165 | | - |
166 | | - |
167 | | - |
168 | | - |
169 | void QPlatformWindow::setWindowIcon(const QIcon &icon) { (void)icon;; } | 0 |
170 | | - |
171 | | - |
172 | | - |
173 | | - |
174 | void QPlatformWindow::raise() { QMessageLogger("kernel/qplatformwindow.cpp", 273, __PRETTY_FUNCTION__).warning("This plugin does not support raise()"); } | 0 |
175 | | - |
176 | | - |
177 | | - |
178 | | - |
179 | void QPlatformWindow::lower() { QMessageLogger("kernel/qplatformwindow.cpp", 278, __PRETTY_FUNCTION__).warning("This plugin does not support lower()"); } | 0 |
180 | | - |
181 | | - |
182 | | - |
183 | | - |
184 | | - |
185 | | - |
186 | | - |
187 | void QPlatformWindow::propagateSizeHints() {QMessageLogger("kernel/qplatformwindow.cpp", 286, __PRETTY_FUNCTION__).warning("This plugin does not support propagateSizeHints()"); } | 0 |
188 | | - |
189 | | - |
190 | | - |
191 | | - |
192 | void QPlatformWindow::setOpacity(qreal level) | - |
193 | { | - |
194 | (void)level;; | - |
195 | QMessageLogger("kernel/qplatformwindow.cpp", 294, __PRETTY_FUNCTION__).warning("This plugin does not support setting window opacity"); | - |
196 | } | 0 |
197 | | - |
198 | | - |
199 | | - |
200 | | - |
201 | | - |
202 | void QPlatformWindow::setMask(const QRegion ®ion) | - |
203 | { | - |
204 | (void)region;; | - |
205 | QMessageLogger("kernel/qplatformwindow.cpp", 304, __PRETTY_FUNCTION__).warning("This plugin does not support setting window masks"); | - |
206 | } | 0 |
207 | void QPlatformWindow::requestActivateWindow() | - |
208 | { | - |
209 | QWindowSystemInterface::handleWindowActivated(window()); | - |
210 | } | 0 |
211 | void QPlatformWindow::handleContentOrientationChange(Qt::ScreenOrientation orientation) | - |
212 | { | - |
213 | (void)orientation;; | - |
214 | } executed: } Execution Count:3 | 3 |
215 | qreal QPlatformWindow::devicePixelRatio() const | - |
216 | { | - |
217 | return 1.0; never executed: return 1.0; | 0 |
218 | } | - |
219 | | - |
220 | bool QPlatformWindow::setKeyboardGrabEnabled(bool grab) | - |
221 | { | - |
222 | (void)grab;; | - |
223 | QMessageLogger("kernel/qplatformwindow.cpp", 354, __PRETTY_FUNCTION__).warning("This plugin does not support grabbing the keyboard"); | - |
224 | return false; never executed: return false; | 0 |
225 | } | - |
226 | | - |
227 | bool QPlatformWindow::setMouseGrabEnabled(bool grab) | - |
228 | { | - |
229 | (void)grab;; | - |
230 | QMessageLogger("kernel/qplatformwindow.cpp", 361, __PRETTY_FUNCTION__).warning("This plugin does not support grabbing the mouse"); | - |
231 | return false; never executed: return false; | 0 |
232 | } | - |
233 | | - |
234 | | - |
235 | | - |
236 | | - |
237 | | - |
238 | | - |
239 | bool QPlatformWindow::setWindowModified(bool modified) | - |
240 | { | - |
241 | (void)modified;; | - |
242 | return false; executed: return false; Execution Count:2810 | 2810 |
243 | } | - |
244 | void QPlatformWindow::windowEvent(QEvent *event) | - |
245 | { | - |
246 | (void)event;; | - |
247 | } executed: } Execution Count:9504 | 9504 |
248 | bool QPlatformWindow::startSystemResize(const QPoint &pos, Qt::Corner corner) | - |
249 | { | - |
250 | (void)pos; | - |
251 | (void)corner; | - |
252 | return false; never executed: return false; | 0 |
253 | } | - |
254 | void QPlatformWindow::setFrameStrutEventsEnabled(bool enabled) | - |
255 | { | - |
256 | if (enabled) | 0 |
257 | QMessageLogger("kernel/qplatformwindow.cpp", 415, __PRETTY_FUNCTION__).warning("This plugin does not support frame strut events."); never executed: QMessageLogger("kernel/qplatformwindow.cpp", 415, __PRETTY_FUNCTION__).warning("This plugin does not support frame strut events."); | 0 |
258 | } | 0 |
259 | | - |
260 | | - |
261 | | - |
262 | | - |
263 | | - |
264 | | - |
265 | bool QPlatformWindow::frameStrutEventsEnabled() const | - |
266 | { | - |
267 | return false; never executed: return false; | 0 |
268 | } | - |
269 | QString QPlatformWindow::formatWindowTitle(const QString &title, const QString &separator) | - |
270 | { | - |
271 | QString fullTitle = title; | - |
272 | if (QGuiApplicationPrivate::displayName) { partially evaluated: QGuiApplicationPrivate::displayName no Evaluation Count:0 | yes Evaluation Count:5581 |
| 0-5581 |
273 | | - |
274 | if (!fullTitle.isEmpty()) never evaluated: !fullTitle.isEmpty() | 0 |
275 | fullTitle += separator; never executed: fullTitle += separator; | 0 |
276 | fullTitle += *QGuiApplicationPrivate::displayName; | - |
277 | } else if (fullTitle.isEmpty()) { evaluated: fullTitle.isEmpty() yes Evaluation Count:5232 | yes Evaluation Count:349 |
| 0-5232 |
278 | | - |
279 | fullTitle = QCoreApplication::applicationName(); | - |
280 | } executed: } Execution Count:5232 | 5232 |
281 | return fullTitle; executed: return fullTitle; Execution Count:5581 | 5581 |
282 | } | - |
283 | | - |
284 | | - |
| | |