Changeset 38992 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Oct 13, 2011 9:28:21 PM (13 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp
r38991 r38992 549 549 QSize UIMachineView::sizeHint() const 550 550 { 551 QSize fb(m_pFrameBuffer->width(), m_pFrameBuffer->height());552 QSize hint = fb.boundedTo(m_storedConsoleSize);553 551 #ifdef VBOX_WITH_DEBUGGER 554 552 // TODO: Fix all DEBUGGER stuff! 555 553 /* HACK ALERT! Really ugly workaround for the resizing to 9x1 done by DevVGA if provoked before power on. */ 556 if (hint.width() < 16 || hint.height() < 16) 554 QSize fb(m_pFrameBuffer->width(), m_pFrameBuffer->height()); 555 if (fb.width() < 16 || fb.height() < 16) 557 556 { 558 557 CMachine machine = uisession()->session().GetMachine(); 559 558 if ( vboxGlobal().isStartPausedEnabled() 560 559 || vboxGlobal().isDebuggerAutoShowEnabled(machine)) 561 hint = QSize(640, 480); 562 } 563 #endif /* VBOX_WITH_DEBUGGER */ 564 return QSize(hint.width() + frameWidth() * 2, hint.height() + frameWidth() * 2); 560 fb = QSize(640, 480); 561 } 562 return QSize(fb.width() + frameWidth() * 2, fb.height() + frameWidth() * 2); 563 #else /* VBOX_WITH_DEBUGGER */ 564 return QSize(m_pFrameBuffer->width() + frameWidth() * 2, m_pFrameBuffer->height() + frameWidth() * 2); 565 #endif /* !VBOX_WITH_DEBUGGER */ 565 566 } 566 567 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineViewFullscreen.cpp
r38991 r38992 209 209 /* This method should not get called until we have initially set up the desktop geometry type: */ 210 210 Assert((desktopGeometryType() != DesktopGeo_Invalid)); 211 if (desktopGeometryType() != DesktopGeo_Fixed) 211 /* If we are not doing automatic geometry calculation then there is nothing to do: */ 212 if (desktopGeometryType() == DesktopGeo_Automatic) 212 213 m_desktopGeometry = workingArea().size(); 213 214 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineViewNormal.cpp
r38991 r38992 132 132 case QEvent::Resize: 133 133 { 134 const QSize *pSize = &static_cast<QResizeEvent *>(pEvent) 135 ->size(); 134 136 if (pEvent->spontaneous() && m_bIsGuestAutoresizeEnabled && uisession()->isGuestSupportsGraphics()) 135 137 QTimer::singleShot(300, this, SLOT(sltPerformGuestResize())); … … 306 308 /* This method should not get called until we have initially set up the desktop geometry type: */ 307 309 Assert((desktopGeometryType() != DesktopGeo_Invalid)); 308 if (desktopGeometryType() != DesktopGeo_Fixed) 310 /* If we are not doing automatic geometry calculation then there is nothing to do: */ 311 if (desktopGeometryType() == DesktopGeo_Automatic) 309 312 { 310 313 /* The area taken up by the machine window on the desktop, -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineViewScale.cpp
r38991 r38992 372 372 /* This method should not get called until we have initially set up the desktop geometry type: */ 373 373 Assert((desktopGeometryType() != DesktopGeo_Invalid)); 374 if (desktopGeometryType() != DesktopGeo_Fixed) 374 /* If we are not doing automatic geometry calculation then there is nothing to do: */ 375 if (desktopGeometryType() == DesktopGeo_Automatic) 375 376 { 376 377 /* The area taken up by the machine window on the desktop, -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineViewSeamless.cpp
r38991 r38992 227 227 /* This method should not get called until we have initially set up the desktop geometry type: */ 228 228 Assert((desktopGeometryType() != DesktopGeo_Invalid)); 229 if (desktopGeometryType() != DesktopGeo_Fixed) 229 /* If we are not doing automatic geometry calculation then there is nothing to do: */ 230 if (desktopGeometryType() == DesktopGeo_Automatic) 230 231 m_desktopGeometry = workingArea().size(); 231 232 }
Note:
See TracChangeset
for help on using the changeset viewer.