Changeset 3728 for pjproject/trunk/pjsip-apps/src/vidgui/vidwin.cpp
- Timestamp:
- Aug 29, 2011 2:33:50 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/vidgui/vidwin.cpp
r3727 r3728 47 47 VidWin::~VidWin() 48 48 { 49 show (false);49 show_sdl(false); 50 50 detach(); 51 51 } … … 73 73 74 74 case QEvent::Show: 75 show (true);75 show_sdl(true); 76 76 // revert to default size hint, make it resizable 77 77 setFixedSize(QWIDGETSIZE_MAX, QWIDGETSIZE_MAX); … … 79 79 80 80 case QEvent::Hide: 81 show (false);81 show_sdl(false); 82 82 break; 83 83 … … 139 139 } 140 140 141 void VidWin::show (bool visible)141 void VidWin::show_sdl(bool visible) 142 142 { 143 143 if (!hwnd.info.win.hwnd) return; … … 210 210 } 211 211 212 void VidWin::show (bool visible)212 void VidWin::show_sdl(bool visible) 213 213 { 214 214 if (!hwnd.info.cocoa.window) return; … … 217 217 218 218 if (visible) { 219 if (![w isMiniaturized]) { 220 [w makeKeyAndOrderFront:nil]; 221 } 219 [[w contentView]setHidden:NO]; 222 220 } else { 223 [w orderOut:nil];221 [[w contentView]setHidden:YES]; 224 222 } 225 223 } … … 285 283 } 286 284 287 void VidWin::show (bool visible)285 void VidWin::show_sdl(bool visible) 288 286 { 289 287 if (!hwnd.info.x11.window) return;
Note: See TracChangeset
for help on using the changeset viewer.