Changeset 8865 in vbox for trunk/src/VBox
- Timestamp:
- May 15, 2008 3:18:40 PM (17 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox4/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxConsoleView.cpp
r8784 r8865 583 583 #else 584 584 /* Return the ID of the top-level console window. */ 585 *winId = (ULONG64) mView-> topLevelWidget()->winId();585 *winId = (ULONG64) mView->window()->winId(); 586 586 #endif 587 587 … … 916 916 return; 917 917 918 QWidget *tlw = topLevelWidget();918 QWidget *tlw = window(); 919 919 920 920 /* calculate client window offsets */ … … 933 933 fr.setRight (fr.right() + s.width()); 934 934 fr.setBottom (fr.bottom() + s.height()); 935 printf ("bla %d %d %d %d\n", fr.x(), fr.y(), fr.width(), fr.height()); 935 936 936 937 if (adjustPosition) … … 1477 1478 * make it get out of the dock when the user wishes to show a VM. 1478 1479 */ 1479 topLevelWidget()->show();1480 topLevelWidget()->activateWindow();1480 window()->show(); 1481 window()->activateWindow(); 1481 1482 return true; 1482 1483 } … … 3002 3003 if (aCapture) 3003 3004 XGrabKey (QX11Info::display(), AnyKey, AnyModifier, 3004 topLevelWidget()->winId(), False,3005 window()->winId(), False, 3005 3006 GrabModeAsync, GrabModeAsync); 3006 3007 else 3007 3008 XUngrabKey (QX11Info::display(), AnyKey, AnyModifier, 3008 topLevelWidget()->winId());3009 window()->winId()); 3009 3010 #elif defined (Q_WS_MAC) 3010 3011 if (aCapture) -
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxDownloaderWgt.cpp
r8155 r8865 265 265 else 266 266 { 267 vboxProblem().message (mStatusBar-> topLevelWidget(),267 vboxProblem().message (mStatusBar->window(), 268 268 VBoxProblemReporter::Error, 269 269 tr ("<p>Failed to save the downloaded file as " -
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxGlobal.cpp
r8786 r8865 2944 2944 if (w) 2945 2945 { 2946 w = w-> topLevelWidget();2946 w = w->window(); 2947 2947 deskGeo = QApplication::desktop()->availableGeometry (w); 2948 2948 parentGeo = w->frameGeometry(); … … 3336 3336 QString result; 3337 3337 3338 QWidget *topParent = mParent ? mParent-> topLevelWidget() : qApp->mainWidget();3338 QWidget *topParent = mParent ? mParent->window() : qApp->mainWidget(); 3339 3339 QString title = mCaption.isNull() ? tr ("Select a directory") : mCaption; 3340 3340 … … 3485 3485 QString title = mCaption.isNull() ? tr ("Select a file") : mCaption; 3486 3486 3487 QWidget *topParent = mParent ? mParent-> topLevelWidget() : qApp->mainWidget();3487 QWidget *topParent = mParent ? mParent->window() : qApp->mainWidget(); 3488 3488 QString winFilters = winFilter (mFilters); 3489 3489 AssertCompile (sizeof (TCHAR) == sizeof (QChar));
Note:
See TracChangeset
for help on using the changeset viewer.