| 248 | |
| 249 | |
| 250 | void Window::adjustToScreenResolution(int screen) |
| 251 | // ---------------------------------------------------------------------------- |
| 252 | // Adjust size of window when screen resolution changes |
| 253 | // ---------------------------------------------------------------------------- |
| 254 | { |
| 255 | QDesktopWidget *dw = QApplication::desktop(); |
| 256 | if (screen == dw->screenNumber(this)) |
| 257 | { |
| 258 | if (isMaximized() || isFullScreen()) |
| 259 | { |
| 260 | QRect geom = dw->screenGeometry(this); |
| 261 | resize(geom.size()); |
| 262 | } |
| 263 | if (isMaximized()) |
| 264 | showMaximized(); |
| 265 | } |
| 266 | } |
| 267 | |
| 268 | |
| 269 | #ifndef CFG_NOSRCEDIT |
nothing calls this directly
no test coverage detected