Changeset 61583 in vbox for trunk/src/VBox
- Timestamp:
- Jun 8, 2016 3:03:01 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineWindowFullscreen.cpp
r61580 r61583 351 351 /* And corresponding working area: */ 352 352 const QRect workingArea = vboxGlobal().screenGeometry(iHostScreen); 353 354 #if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11) 355 /* Set appropriate geometry for window: */ 356 resize(workingArea.size()); 357 move(workingArea.topLeft()); 358 359 /* If there is a mini-toolbar: */ 360 if (m_pMiniToolBar) 361 { 362 /* Set appropriate geometry for mini-toolbar: */ 363 m_pMiniToolBar->resize(workingArea.size()); 364 m_pMiniToolBar->move(workingArea.topLeft()); 365 } 366 #elif defined(VBOX_WS_MAC) 353 Q_UNUSED(workingArea); 354 355 #if defined(VBOX_WS_MAC) 356 367 357 /* Make sure this window has fullscreen logic: */ 368 358 UIMachineLogicFullscreen *pFullscreenLogic = qobject_cast<UIMachineLogicFullscreen*>(machineLogic()); … … 396 386 setGeometry(geo); 397 387 } 398 #endif /* VBOX_WS_MAC */ 388 389 #elif defined(VBOX_WS_WIN) 390 391 /* Set appropriate geometry for window: */ 392 resize(workingArea.size()); 393 move(workingArea.topLeft()); 394 395 /* If there is a mini-toolbar: */ 396 if (m_pMiniToolBar) 397 { 398 /* Set appropriate geometry for mini-toolbar: */ 399 m_pMiniToolBar->resize(workingArea.size()); 400 m_pMiniToolBar->move(workingArea.topLeft()); 401 } 402 403 #elif defined(VBOX_WS_X11) 404 405 /* Set appropriate geometry for window: */ 406 resize(workingArea.size()); 407 move(workingArea.topLeft()); 408 409 /* If there is a mini-toolbar: */ 410 if (m_pMiniToolBar) 411 { 412 /* Set appropriate geometry for mini-toolbar: */ 413 m_pMiniToolBar->resize(workingArea.size()); 414 m_pMiniToolBar->move(workingArea.topLeft()); 415 } 416 417 #else 418 419 # warning "port me" 420 421 #endif 399 422 } 400 423
Note:
See TracChangeset
for help on using the changeset viewer.