Changeset 831 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Feb 12, 2007 11:27:14 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp
r827 r831 557 557 /* restore the position of the window and some options */ 558 558 { 559 QString on= cmachine.GetExtraData (GUI_Fullscreen);559 QString str = cmachine.GetExtraData (GUI_Fullscreen); 560 560 #ifdef Q_WS_X11 561 561 /* Workaround: When switching to fullscreen, the display is sometimes not updated */ 562 562 console->setFrameStyle (QFrame::NoFrame); 563 563 #endif 564 if ( on== "on")565 vmFullscreenAction->setOn ( on);566 567 on= cmachine.GetExtraData (GUI_AutoresizeGuest);568 if ( on == "on")569 vmAutoresizeGuestAction->setOn ( on);570 571 QString winPos= cmachine.GetExtraData (GUI_LastWindowPosition);564 if (str == "on") 565 vmFullscreenAction->setOn (true); 566 567 str = cmachine.GetExtraData (GUI_AutoresizeGuest); 568 if (str != "off") 569 vmAutoresizeGuestAction->setOn (true); 570 571 str = cmachine.GetExtraData (GUI_LastWindowPosition); 572 572 573 573 QRect ar = QApplication::desktop()->availableGeometry (this); 574 574 bool ok = false, max = false; 575 575 int x = 0, y = 0, w = 0, h = 0; 576 x = winPos.section (',', 0, 0).toInt (&ok);576 x = str.section (',', 0, 0).toInt (&ok); 577 577 if (ok) 578 y = winPos.section (',', 1, 1).toInt (&ok);578 y = str.section (',', 1, 1).toInt (&ok); 579 579 if (ok) 580 w = winPos.section (',', 2, 2).toInt (&ok);580 w = str.section (',', 2, 2).toInt (&ok); 581 581 if (ok) 582 h = winPos.section (',', 3, 3).toInt (&ok);582 h = str.section (',', 3, 3).toInt (&ok); 583 583 if (ok) 584 max = winPos.section (',', 4, 4) == GUI_LastWindowPosition_Max;584 max = str.section (',', 4, 4) == GUI_LastWindowPosition_Max; 585 585 if (ok) 586 586 {
Note:
See TracChangeset
for help on using the changeset viewer.