MCPcopy Create free account
hub / github.com/c3d/tao3D / adjustToScreenResolution

Method adjustToScreenResolution

tao/window.cpp:250–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248
249
250void 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

Callers

nothing calls this directly

Calls 2

screenNumberMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected