Changeset 7184 in vbox
- Timestamp:
- Feb 27, 2008 6:09:26 PM (17 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxConsoleWnd.h
r6715 r7184 186 186 void onEnterFullscreen(); 187 187 void onExitFullscreen(); 188 void exitFullscreen(); 189 void exitSeamless(); 188 190 189 191 void setViewInSeamlessMode (const QRect &aTargetRect); -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp
r7177 r7184 1033 1033 vmSeamlessAction->setEnabled (mIsSeamless); 1034 1034 vmFullscreenAction->setEnabled (mIsFullscreen); 1035 if (mIsSeamless) 1036 connect (console, SIGNAL (resizeHintDone()), 1037 this, SLOT(exitSeamless())); 1038 else if (mIsFullscreen) 1039 connect (console, SIGNAL (resizeHintDone()), 1040 this, SLOT(exitFullscreen())); 1035 1041 } 1036 1042 … … 1056 1062 console->setIgnoreMainwndResize (false); 1057 1063 console->normalizeGeometry (true /* adjustPosition */); 1064 } 1065 1066 /** 1067 * This slot is called if the guest changes resolution while in fullscreen 1068 * mode. 1069 */ 1070 void VBoxConsoleWnd::exitFullscreen() 1071 { 1072 if (mIsFullscreen && vmFullscreenAction->isEnabled()) 1073 vmFullscreenAction->toggle(); 1074 } 1075 1076 /** 1077 * This slot is called if the guest changes resolution while in seamless 1078 * mode. 1079 */ 1080 void VBoxConsoleWnd::exitSeamless() 1081 { 1082 if (mIsSeamless && vmSeamlessAction->isEnabled()) 1083 vmSeamlessAction->toggle(); 1058 1084 } 1059 1085 … … 1923 1949 bool VBoxConsoleWnd::toggleFullscreenMode (bool aOn, bool aSeamless) 1924 1950 { 1951 disconnect (console, SIGNAL (resizeHintDone()), 0, 0); 1925 1952 if (aSeamless) 1926 1953 {
Note:
See TracChangeset
for help on using the changeset viewer.