Changeset 15467 in vbox
- Timestamp:
- Dec 14, 2008 3:44:59 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 40921
- Location:
- trunk/src/VBox/Frontends/VirtualBox4
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/src/VBox/Frontends/VirtualBox4/include/VBoxConsoleWnd.h ¶
r15185 r15467 74 74 void refreshView(); 75 75 76 bool isWindowMaximized() const 77 { 78 #ifdef Q_WS_MAC 79 /* On Mac OS X we didn't really jump to the fullscreen mode but 80 * maximize the window. This situation has to be considered when 81 * checking for maximized or fullscreen mode. */ 82 return !(isTrueSeamless()) && QMainWindow::isMaximized(); 83 #else /* Q_WS_MAC */ 84 return QMainWindow::isMaximized(); 85 #endif /* Q_WS_MAC */ 86 } 87 bool isWindowFullScreen() const 88 { 89 #ifdef Q_WS_MAC 90 /* On Mac OS X we didn't really jump to the fullscreen mode but 91 * maximize the window. This situation has to be considered when 92 * checking for maximized or fullscreen mode. */ 93 return isTrueFullscreen() || isTrueSeamless(); 94 #else /* Q_WS_MAC */ 95 return QMainWindow::isFullscreen(); 96 #endif /* Q_WS_MAC */ 97 } 98 76 99 bool isTrueFullscreen() const { return mIsFullscreen; } 77 100 -
TabularUnified trunk/src/VBox/Frontends/VirtualBox4/src/VBoxConsoleView.cpp ¶
r15164 r15467 947 947 /* Make no normalizeGeometry in case we are in manual resize 948 948 * mode or main window is maximized */ 949 if (mMainWnd->is Maximized() || mMainWnd->isFullScreen())949 if (mMainWnd->isWindowMaximized() || mMainWnd->isWindowFullScreen()) 950 950 return; 951 951 … … 2374 2374 { 2375 2375 if ((mGuestSupportsGraphics && mAutoresizeGuest) || 2376 mMainWnd->isTrueSeamless() || 2376 2377 mMainWnd->isTrueFullscreen()) 2377 2378 { -
TabularUnified trunk/src/VBox/Frontends/VirtualBox4/src/VBoxConsoleWnd.cpp ¶
r15391 r15467 1235 1235 QResizeEvent *re = (QResizeEvent *) e; 1236 1236 1237 if (!mIsWaitingModeResize && !is Maximized() &&1237 if (!mIsWaitingModeResize && !isWindowMaximized() && 1238 1238 !isTrueFullscreen() && !isTrueSeamless()) 1239 1239 { … … 1256 1256 case QEvent::Move: 1257 1257 { 1258 if (!is Maximized() && !isTrueFullscreen() && !isTrueSeamless())1258 if (!isWindowMaximized() && !isTrueFullscreen() && !isTrueSeamless()) 1259 1259 { 1260 1260 mNormalGeo.moveTo (geometry().x(), geometry().y()); … … 1551 1551 .arg (mNormalGeo.x()).arg (mNormalGeo.y()) 1552 1552 .arg (mNormalGeo.width()).arg (mNormalGeo.height()); 1553 if (is Maximized() || (mIsFullscreen && was_max)1553 if (isWindowMaximized() || (mIsFullscreen && was_max) 1554 1554 || (mIsSeamless && was_max)) 1555 1555 winPos += QString (",%1").arg (VBoxDefs::GUI_LastWindowPosition_Max); … … 2144 2144 { 2145 2145 /* Please note: For some platforms like the Mac, the calling order of the 2146 * functions in this methods is vital. So please be careful lon changing2146 * functions in this methods is vital. So please be careful on changing 2147 2147 * this. */ 2148 2148 … … 2264 2264 /* Memorize the maximized state. */ 2265 2265 QDesktopWidget *dtw = QApplication::desktop(); 2266 was_max = is Maximized() &&2266 was_max = isWindowMaximized() && 2267 2267 dtw->availableGeometry().width() == frameSize().width() && 2268 2268 dtw->availableGeometry().height() == frameSize().height(); … … 2338 2338 * window switch back to normal size. Qt changes the winId on the 2339 2339 * fullscreen switch and make this stuff useless with the old 2340 * winId. So please be careful lon rearrangement of the method2340 * winId. So please be careful on rearrangement of the method 2341 2341 * calls. */ 2342 2342 /* Undo all mac specific installations */ … … 2383 2383 * switched to fullscreen. Qt changes the winId on the fullscreen 2384 2384 * switch and make this stuff useless with the old winId. So please be 2385 * careful lon rearrangement of the method calls. */2385 * careful on rearrangement of the method calls. */ 2386 2386 OSStatus status; 2387 2387 HIViewRef viewRef = ::darwinToHIViewRef (console->viewport()); … … 2423 2423 #endif 2424 2424 2425 /* Send guest size hint */ 2426 console->toggleFSMode (consoleSize); 2427 2425 2428 /* Process all console attributes changes and sub-widget hidings */ 2426 2429 qApp->processEvents(); 2427 2428 /* Send guest size hint */2429 console->toggleFSMode (consoleSize);2430 2430 2431 2431 if (!mIsWaitingModeResize) … … 2584 2584 if (console) 2585 2585 { 2586 if (is Maximized())2586 if (isWindowMaximized()) 2587 2587 showNormal(); 2588 2588 console->normalizeGeometry (true /* adjustPosition */); … … 2992 2992 HIViewReshapeStructure (::darwinToHIViewRef (console->viewport())); 2993 2993 // HIWindowInvalidateShadow (::darwinToWindowRef (console->viewport())); 2994 // ReshapeCustomWindow ( mapToWindowRef (this));2994 // ReshapeCustomWindow (::darwinToWindowRef (this)); 2995 2995 } 2996 2996 else
Note:
See TracChangeset
for help on using the changeset viewer.