| 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 | } | - |
| 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); | - |
| 30 | } | - |
| 31 | | - |
| 32 | | - |
| 33 | | - |
| 34 | | - |
| 35 | QPlatformWindow *QPlatformWindow::parent() const | - |
| 36 | { | - |
| 37 | return window()->parent() ? window()->parent()->handle() : 0; | - |
| 38 | } | - |
| 39 | | - |
| 40 | | - |
| 41 | | - |
| 42 | | - |
| 43 | QPlatformScreen *QPlatformWindow::screen() const | - |
| 44 | { | - |
| 45 | return window()->screen()->handle(); | - |
| 46 | } | - |
| 47 | | - |
| 48 | | - |
| 49 | | - |
| 50 | | - |
| 51 | QSurfaceFormat QPlatformWindow::format() const | - |
| 52 | { | - |
| 53 | return QSurfaceFormat(); | - |
| 54 | } | - |
| 55 | void QPlatformWindow::setGeometry(const QRect &rect) | - |
| 56 | { | - |
| 57 | QPlatformWindowPrivate * const d = d_func(); | - |
| 58 | d->rect = rect; | - |
| 59 | } | - |
| 60 | | - |
| 61 | | - |
| 62 | | - |
| 63 | | - |
| 64 | QRect QPlatformWindow::geometry() const | - |
| 65 | { | - |
| 66 | const QPlatformWindowPrivate * const d = d_func(); | - |
| 67 | return d->rect; | - |
| 68 | } | - |
| 69 | | - |
| 70 | QMargins QPlatformWindow::frameMargins() const | - |
| 71 | { | - |
| 72 | return QMargins(); | - |
| 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 | } | - |
| 88 | | - |
| 89 | | - |
| 90 | | - |
| 91 | | - |
| 92 | | - |
| 93 | void QPlatformWindow::setWindowFlags(Qt::WindowFlags flags) | - |
| 94 | { | - |
| 95 | (void)flags;; | - |
| 96 | } | - |
| 97 | | - |
| 98 | | - |
| 99 | | - |
| 100 | | - |
| 101 | | - |
| 102 | | - |
| 103 | | - |
| 104 | bool QPlatformWindow::isExposed() const | - |
| 105 | { | - |
| 106 | return window()->isVisible(); | - |
| 107 | } | - |
| 108 | | - |
| 109 | | - |
| 110 | | - |
| 111 | | - |
| 112 | | - |
| 113 | | - |
| 114 | | - |
| 115 | bool QPlatformWindow::isActive() const | - |
| 116 | { | - |
| 117 | return false; | - |
| 118 | } | - |
| 119 | bool QPlatformWindow::isEmbedded(const QPlatformWindow *parentWindow) const | - |
| 120 | { | - |
| 121 | (void)parentWindow;; | - |
| 122 | return false; | - |
| 123 | } | - |
| 124 | QPoint QPlatformWindow::mapToGlobal(const QPoint &pos) const | - |
| 125 | { | - |
| 126 | return pos; | - |
| 127 | } | - |
| 128 | QPoint QPlatformWindow::mapFromGlobal(const QPoint &pos) const | - |
| 129 | { | - |
| 130 | return pos; | - |
| 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); | - |
| 153 | } | - |
| 154 | void 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 | } | - |
| 159 | void QPlatformWindow::setWindowTitle(const QString &title) { (void)title;; } | - |
| 160 | | - |
| 161 | | - |
| 162 | | - |
| 163 | | - |
| 164 | void QPlatformWindow::setWindowFilePath(const QString &filePath) { (void)filePath;; } | - |
| 165 | | - |
| 166 | | - |
| 167 | | - |
| 168 | | - |
| 169 | void QPlatformWindow::setWindowIcon(const QIcon &icon) { (void)icon;; } | - |
| 170 | | - |
| 171 | | - |
| 172 | | - |
| 173 | | - |
| 174 | void QPlatformWindow::raise() { QMessageLogger("kernel/qplatformwindow.cpp", 272273, __PRETTY_FUNCTION__).warning("This plugin does not support raise()"); } | - |
| 175 | | - |
| 176 | | - |
| 177 | | - |
| 178 | | - |
| 179 | void QPlatformWindow::lower() { QMessageLogger("kernel/qplatformwindow.cpp", 277278, __PRETTY_FUNCTION__).warning("This plugin does not support lower()"); } | - |
| 180 | | - |
| 181 | | - |
| 182 | | - |
| 183 | | - |
| 184 | | - |
| 185 | | - |
| 186 | | - |
| 187 | void QPlatformWindow::propagateSizeHints() {QMessageLogger("kernel/qplatformwindow.cpp", 285286, __PRETTY_FUNCTION__).warning("This plugin does not support propagateSizeHints()"); } | - |
| 188 | | - |
| 189 | | - |
| 190 | | - |
| 191 | | - |
| 192 | void 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 | | - |
| 202 | void QPlatformWindow::setMask(const QRegion ®ion) | - |
| 203 | { | - |
| 204 | (void)region;; | - |
| 205 | QMessageLogger("kernel/qplatformwindow.cpp", 303304, __PRETTY_FUNCTION__).warning("This plugin does not support setting window masks"); | - |
| 206 | } | - |
| 207 | void QPlatformWindow::requestActivateWindow() | - |
| 208 | { | - |
| 209 | QWindowSystemInterface::handleWindowActivated(window()); | - |
| 210 | } | - |
| 211 | void QPlatformWindow::handleContentOrientationChange(Qt::ScreenOrientation orientation) | - |
| 212 | { | - |
| 213 | (void)orientation;; | - |
| 214 | } | - |
| 215 | qreal QPlatformWindow::devicePixelRatio() const | - |
| 216 | { | - |
| 217 | return 1.0; | - |
| 218 | } | - |
| 219 | | - |
| 220 | bool 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 | | - |
| 227 | bool 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 | | - |
| 239 | bool QPlatformWindow::setWindowModified(bool modified) | - |
| 240 | { | - |
| 241 | (void)modified;; | - |
| 242 | return false; | - |
| 243 | } | - |
| 244 | void QPlatformWindow::windowEvent(QEvent *event) | - |
| 245 | { | - |
| 246 | (void)event;; | - |
| 247 | } | - |
| 248 | bool QPlatformWindow::startSystemResize(const QPoint &pos, Qt::Corner corner) | - |
| 249 | { | - |
| 250 | (void)pos; | - |
| 251 | (void)corner; | - |
| 252 | return false; | - |
| 253 | } | - |
| 254 | void 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 | | - |
| 265 | bool QPlatformWindow::frameStrutEventsEnabled() const | - |
| 266 | { | - |
| 267 | return false; | - |
| 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 | | - |
| | |