Changeset 12017 in vbox
- Timestamp:
- Sep 3, 2008 8:30:05 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxConsoleWnd.cpp
r12010 r12017 680 680 if (ok) 681 681 max = str.section (',', 4, 4) == VBoxDefs::GUI_LastWindowPosition_Max; 682 683 QRect ar = QApplication::desktop()->availableGeometry (QPoint (x, y)); 682 684 if (ok) 683 685 { 684 QRect ar = QApplication::desktop()->availableGeometry (QPoint (x, y));685 686 686 /* Do some position checks */ 687 687 if (x < ar.left() || x > ar.right()) … … 691 691 692 692 mNormalGeo = QRect (x, y, w, h); 693 694 setGeometry (x, y, w, h); 693 setGeometry (mNormalGeo); 694 695 /* Normalize to the optimal size */ 696 console->normalizeGeometry (true /* adjustPosition */); 695 697 } 696 698 else 697 mNormalGeo = QRect(); 698 699 /* Normalize to the optimal size */ 700 console->normalizeGeometry (true /* adjustPosition */); 699 { 700 /* Normalize to the optimal size */ 701 console->normalizeGeometry (true /* adjustPosition */); 702 703 /* Move newly created window to the screen center. */ 704 mNormalGeo = geometry(); 705 mNormalGeo.moveCenter (ar.center()); 706 setGeometry (mNormalGeo); 707 } 701 708 702 709 /* Maximize if needed */ … … 704 711 setWindowState (windowState() | Qt::WindowMaximized); 705 712 was_max = max; 706 707 713 show(); 714 715 /* Process show & possible maximize events */ 716 qApp->processEvents(); 708 717 709 718 vmSeamlessAction->setEnabled (false);
Note:
See TracChangeset
for help on using the changeset viewer.