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}
-
16 -
17 -
18 -
19 -
20QPlatformWindow::~QPlatformWindow() -
21{ -
22} -
23 -
24 -
25 -
26 -
27QWindow *QPlatformWindow::window() const -
28{ -
29 return static_cast<QWindow *>(m_surface);
-
30} -
31 -
32 -
33 -
34 -
35QPlatformWindow *QPlatformWindow::parent() const -
36{ -
37 return window()->parent() ? window()->parent()->handle() : 0;
-
38} -
39 -
40 -
41 -
42 -
43QPlatformScreen *QPlatformWindow::screen() const -
44{ -
45 return window()->screen()->handle();
-
46} -
47 -
48 -
49 -
50 -
51QSurfaceFormat QPlatformWindow::format() const -
52{ -
53 return QSurfaceFormat();
-
54} -
55void QPlatformWindow::setGeometry(const QRect &rect) -
56{ -
57 QPlatformWindowPrivate * const d = d_func(); -
58 d->rect = rect; -
59}
-
60 -
61 -
62 -
63 -
64QRect QPlatformWindow::geometry() const -
65{ -
66 const QPlatformWindowPrivate * const d = d_func(); -
67 return d->rect;
-
68} -
69 -
70QMargins QPlatformWindow::frameMargins() const -
71{ -
72 return QMargins();
-
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}
-
88 -
89 -
90 -
91 -
92 -
93void QPlatformWindow::setWindowFlags(Qt::WindowFlags flags) -
94{ -
95 (void)flags;; -
96}
-
97 -
98 -
99 -
100 -
101 -
102 -
103 -
104bool QPlatformWindow::isExposed() const -
105{ -
106 return window()->isVisible();
-
107} -
108 -
109 -
110 -
111 -
112 -
113 -
114 -
115bool QPlatformWindow::isActive() const -
116{ -
117 return false;
-
118} -
119bool QPlatformWindow::isEmbedded(const QPlatformWindow *parentWindow) const -
120{ -
121 (void)parentWindow;; -
122 return false;
-
123} -
124QPoint QPlatformWindow::mapToGlobal(const QPoint &pos) const -
125{ -
126 return pos;
-
127} -
128QPoint QPlatformWindow::mapFromGlobal(const QPoint &pos) const -
129{ -
130 return pos;
-
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);
-
153} -
154void QPlatformWindow::setParent(const QPlatformWindow *parent) -
155{ -
156 (void)parent;; -
157 QMessageLogger("kernel/qplatformwindow.cpp", 246247, __PRETTY_FUNCTION__).warning("This plugin does not support setParent!"); -
158}
-
159void QPlatformWindow::setWindowTitle(const QString &title) { (void)title;; }
-
160 -
161 -
162 -
163 -
164void QPlatformWindow::setWindowFilePath(const QString &filePath) { (void)filePath;; }
-
165 -
166 -
167 -
168 -
169void QPlatformWindow::setWindowIcon(const QIcon &icon) { (void)icon;; }
-
170 -
171 -
172 -
173 -
174void QPlatformWindow::raise() { QMessageLogger("kernel/qplatformwindow.cpp", 272273, __PRETTY_FUNCTION__).warning("This plugin does not support raise()"); }
-
175 -
176 -
177 -
178 -
179void QPlatformWindow::lower() { QMessageLogger("kernel/qplatformwindow.cpp", 277278, __PRETTY_FUNCTION__).warning("This plugin does not support lower()"); }
-
180 -
181 -
182 -
183 -
184 -
185 -
186 -
187void QPlatformWindow::propagateSizeHints() {QMessageLogger("kernel/qplatformwindow.cpp", 285286, __PRETTY_FUNCTION__).warning("This plugin does not support propagateSizeHints()"); }
-
188 -
189 -
190 -
191 -
192void QPlatformWindow::setOpacity(qreal level) -
193{ -
194 (void)level;; -
195 QMessageLogger("kernel/qplatformwindow.cpp", 293294, __PRETTY_FUNCTION__).warning("This plugin does not support setting window opacity"); -
196}
-
197 -
198 -
199 -
200 -
201 -
202void QPlatformWindow::setMask(const QRegion &region) -
203{ -
204 (void)region;; -
205 QMessageLogger("kernel/qplatformwindow.cpp", 303304, __PRETTY_FUNCTION__).warning("This plugin does not support setting window masks"); -
206}
-
207void QPlatformWindow::requestActivateWindow() -
208{ -
209 QWindowSystemInterface::handleWindowActivated(window()); -
210}
-
211void QPlatformWindow::handleContentOrientationChange(Qt::ScreenOrientation orientation) -
212{ -
213 (void)orientation;; -
214}
-
215qreal QPlatformWindow::devicePixelRatio() const -
216{ -
217 return 1.0;
-
218} -
219 -
220bool QPlatformWindow::setKeyboardGrabEnabled(bool grab) -
221{ -
222 (void)grab;; -
223 QMessageLogger("kernel/qplatformwindow.cpp", 353354, __PRETTY_FUNCTION__).warning("This plugin does not support grabbing the keyboard"); -
224 return false;
-
225} -
226 -
227bool QPlatformWindow::setMouseGrabEnabled(bool grab) -
228{ -
229 (void)grab;; -
230 QMessageLogger("kernel/qplatformwindow.cpp", 360361, __PRETTY_FUNCTION__).warning("This plugin does not support grabbing the mouse"); -
231 return false;
-
232} -
233 -
234 -
235 -
236 -
237 -
238 -
239bool QPlatformWindow::setWindowModified(bool modified) -
240{ -
241 (void)modified;; -
242 return false;
-
243} -
244void QPlatformWindow::windowEvent(QEvent *event) -
245{ -
246 (void)event;; -
247}
-
248bool QPlatformWindow::startSystemResize(const QPoint &pos, Qt::Corner corner) -
249{ -
250 (void)pos; -
251 (void)corner; -
252 return false;
-
253} -
254void QPlatformWindow::setFrameStrutEventsEnabled(bool enabled) -
255{ -
256 if (enabled)
-
257 QMessageLogger("kernel/qplatformwindow.cpp", 414415, __PRETTY_FUNCTION__).warning("This plugin does not support frame strut events.");
-
258}
-
259 -
260 -
261 -
262 -
263 -
264 -
265bool QPlatformWindow::frameStrutEventsEnabled() const -
266{ -
267 return false;
-
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