kernel/qplatformwindow.cpp

Switch to Source codePreprocessed file
LineSource CodeCoverage
1 -
2 -
3 -
4 -
5 -
6 -
7 -
8 -
9QPlatformWindow::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 -
20QPlatformWindow::~QPlatformWindow() -
21{ -
22} -
23 -
24 -
25 -
26 -
27QWindow *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 -
35QPlatformWindow *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 -
43QPlatformScreen *QPlatformWindow::screen() const -
44{ -
45 return window()->screen()->handle();
executed: return window()->screen()->handle();
Execution Count:259
259
46} -
47 -
48 -
49 -
50 -
51QSurfaceFormat QPlatformWindow::format() const -
52{ -
53 return QSurfaceFormat();
never executed: return QSurfaceFormat();
0
54} -
55void 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 -
64QRect 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 -
70QMargins QPlatformWindow::frameMargins() const -
71{ -
72 return QMargins();
never executed: return QMargins();
0
73} -
74 -
75 -
76 -
77 -
78 -
79 -
80 -
81void QPlatformWindow::setVisible(bool visible) -
82{ -
83 (void)visible;; -
84 QRect rect(QPoint(), geometry().size()); -
85 QWindowSystemInterface::handleExposeEvent(window(), rect); -
86 QWindowSystemInterface::flushWindowSystemEvents(); -
87}
never executed: }
0
88 -
89 -
90 -
91 -
92 -
93void QPlatformWindow::setWindowFlags(Qt::WindowFlags flags) -
94{ -
95 (void)flags;; -
96}
never executed: }
0
97 -
98 -
99 -
100 -
101 -
102 -
103 -
104bool QPlatformWindow::isExposed() const -
105{ -
106 return window()->isVisible();
never executed: return window()->isVisible();
0
107} -
108 -
109 -
110 -
111 -
112 -
113 -
114 -
115bool QPlatformWindow::isActive() const -
116{ -
117 return false;
executed: return false;
Execution Count:194155
194155
118} -
119bool QPlatformWindow::isEmbedded(const QPlatformWindow *parentWindow) const -
120{ -
121 (void)parentWindow;; -
122 return false;
executed: return false;
Execution Count:29294
29294
123} -
124QPoint QPlatformWindow::mapToGlobal(const QPoint &pos) const -
125{ -
126 return pos;
never executed: return pos;
0
127} -
128QPoint QPlatformWindow::mapFromGlobal(const QPoint &pos) const -
129{ -
130 return pos;
never executed: return pos;
0
131} -
132 -
133 -
134 -
135 -
136 -
137 -
138 -
139void QPlatformWindow::setWindowState(Qt::WindowState) -
140{ -
141} -
142 -
143 -
144 -
145 -
146WId QPlatformWindow::winId() const -
147{ -
148 -
149 -
150 -
151 -
152 return WId(1);
never executed: return WId(1);
0
153} -
154void 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}
never executed: }
0
159void QPlatformWindow::setWindowTitle(const QString &title) { (void)title;; }
never executed: }
0
160 -
161 -
162 -
163 -
164void QPlatformWindow::setWindowFilePath(const QString &filePath) { (void)filePath;; }
never executed: }
0
165 -
166 -
167 -
168 -
169void QPlatformWindow::setWindowIcon(const QIcon &icon) { (void)icon;; }
never executed: }
0
170 -
171 -
172 -
173 -
174void QPlatformWindow::raise() { QMessageLogger("kernel/qplatformwindow.cpp", 273, __PRETTY_FUNCTION__).warning("This plugin does not support raise()"); }
never executed: }
0
175 -
176 -
177 -
178 -
179void QPlatformWindow::lower() { QMessageLogger("kernel/qplatformwindow.cpp", 278, __PRETTY_FUNCTION__).warning("This plugin does not support lower()"); }
never executed: }
0
180 -
181 -
182 -
183 -
184 -
185 -
186 -
187void QPlatformWindow::propagateSizeHints() {QMessageLogger("kernel/qplatformwindow.cpp", 286, __PRETTY_FUNCTION__).warning("This plugin does not support propagateSizeHints()"); }
never executed: }
0
188 -
189 -
190 -
191 -
192void 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}
never executed: }
0
197 -
198 -
199 -
200 -
201 -
202void QPlatformWindow::setMask(const QRegion &region) -
203{ -
204 (void)region;; -
205 QMessageLogger("kernel/qplatformwindow.cpp", 304, __PRETTY_FUNCTION__).warning("This plugin does not support setting window masks"); -
206}
never executed: }
0
207void QPlatformWindow::requestActivateWindow() -
208{ -
209 QWindowSystemInterface::handleWindowActivated(window()); -
210}
never executed: }
0
211void QPlatformWindow::handleContentOrientationChange(Qt::ScreenOrientation orientation) -
212{ -
213 (void)orientation;; -
214}
executed: }
Execution Count:3
3
215qreal QPlatformWindow::devicePixelRatio() const -
216{ -
217 return 1.0;
never executed: return 1.0;
0
218} -
219 -
220bool 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 -
227bool 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 -
239bool QPlatformWindow::setWindowModified(bool modified) -
240{ -
241 (void)modified;; -
242 return false;
executed: return false;
Execution Count:2810
2810
243} -
244void QPlatformWindow::windowEvent(QEvent *event) -
245{ -
246 (void)event;; -
247}
executed: }
Execution Count:9504
9504
248bool QPlatformWindow::startSystemResize(const QPoint &pos, Qt::Corner corner) -
249{ -
250 (void)pos; -
251 (void)corner; -
252 return false;
never executed: return false;
0
253} -
254void QPlatformWindow::setFrameStrutEventsEnabled(bool enabled) -
255{ -
256 if (enabled)
never evaluated: 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}
never executed: }
0
259 -
260 -
261 -
262 -
263 -
264 -
265bool QPlatformWindow::frameStrutEventsEnabled() const -
266{ -
267 return false;
never executed: return false;
0
268} -
269QString QPlatformWindow::formatWindowTitle(const QString &title, const QString &separator) -
270{ -
271 QString fullTitle = title; -
272 if (QGuiApplicationPrivate::displayName) {
partially evaluated: QGuiApplicationPrivate::displayName
TRUEFALSE
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()) {
never executed: }
evaluated: fullTitle.isEmpty()
TRUEFALSE
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 -
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial