儲存庫 vbox 的更動 66951
- 時間撮記:
- 2017-5-18 下午02:32:20 (8 年 以前)
- 位置:
- trunk/src/VBox/Frontends/VirtualBox/src
- 檔案:
-
- 修改 4 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineWindowFullscreen.cpp
r65800 r66951 274 274 GeometryType_Full, 275 275 gEDataManager->miniToolbarAlignment(vboxGlobal().managedVMUuid()), 276 gEDataManager->autoHideMiniToolbar(vboxGlobal().managedVMUuid())); 276 gEDataManager->autoHideMiniToolbar(vboxGlobal().managedVMUuid()), 277 screenId()); 277 278 AssertPtrReturnVoid(m_pMiniToolBar); 278 279 { -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineWindowSeamless.cpp
r65800 r66951 138 138 GeometryType_Available, 139 139 gEDataManager->miniToolbarAlignment(vboxGlobal().managedVMUuid()), 140 gEDataManager->autoHideMiniToolbar(vboxGlobal().managedVMUuid())); 140 gEDataManager->autoHideMiniToolbar(vboxGlobal().managedVMUuid()), 141 screenId()); 141 142 AssertPtrReturnVoid(m_pMiniToolBar); 142 143 { -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIMiniToolBar.cpp
r66949 r66951 427 427 GeometryType geometryType, 428 428 Qt::Alignment alignment, 429 bool fAutoHide /* = true */) 429 bool fAutoHide /* = true */, 430 int iWindowIndex /* = -1 */) 430 431 : QWidget(0, defaultWindowFlags(geometryType)) 431 432 /* Variables: General stuff: */ … … 434 435 , m_alignment(alignment) 435 436 , m_fAutoHide(fAutoHide) 437 , m_iWindowIndex(iWindowIndex) 436 438 /* Variables: Contents stuff: */ 437 439 , m_pArea(0) … … 584 586 void UIMiniToolBar::sltHide() 585 587 { 586 LogRel 2(("GUI: UIMiniToolBar::sltHide\n"));588 LogRel(("GUI: Hide mini-toolbar for window #%d\n", m_iWindowIndex)); 587 589 588 590 #if defined(VBOX_WS_MAC) … … 610 612 void UIMiniToolBar::sltShow() 611 613 { 612 LogRel 2(("GUI: UIMiniToolBar::sltShow\n"));614 LogRel(("GUI: Show mini-toolbar for window #%d\n", m_iWindowIndex)); 613 615 614 616 /* Update transience: */ … … 683 685 void UIMiniToolBar::sltAdjust() 684 686 { 685 LogRel 2(("GUI: UIMiniToolBar::sltAdjust\n"));687 LogRel(("GUI: Adjust mini-toolbar for window #%d\n", m_iWindowIndex)); 686 688 687 689 /* Get corresponding host-screen: */ … … 709 711 /* Set appropriate window size: */ 710 712 const QSize newSize = workingArea.size(); 711 LogRel 2(("GUI: UIMiniToolBar::sltAdjust: Resize window to:%dx%d\n",712 newSize.width(), newSize.height()));713 LogRel(("GUI: Resize mini-toolbar for window #%d to %dx%d\n", 714 m_iWindowIndex, newSize.width(), newSize.height())); 713 715 resize(newSize); 714 716 715 717 /* Move window onto required screen: */ 716 718 const QPoint newPosition = workingArea.topLeft(); 717 LogRel 2(("GUI: UIMiniToolBar::sltAdjust: Move window to:%dx%d\n",718 newPosition.x(), newPosition.y()));719 LogRel(("GUI: Move mini-toolbar for window #%d to %dx%d\n", 720 m_iWindowIndex, newPosition.x(), newPosition.y())); 719 721 move(newPosition); 720 722 … … 724 726 { 725 727 /* Map window onto required screen: */ 726 LogRel 2(("GUI: UIMiniToolBar::sltAdjust: Map window to screen: %d of:%d\n",727 iHostScreen, qApp->screens().size()));728 LogRel(("GUI: Map mini-toolbar for window #%d to screen %d of %d\n", 729 m_iWindowIndex, iHostScreen, qApp->screens().size())); 728 730 windowHandle()->setScreen(qApp->screens().at(iHostScreen)); 729 731 730 732 /* Set appropriate window size: */ 731 733 const QSize newSize = workingArea.size(); 732 LogRel 2(("GUI: UIMiniToolBar::sltAdjust: Resize window to:%dx%d\n",733 newSize.width(), newSize.height()));734 LogRel(("GUI: Resize mini-toolbar for window #%d to %dx%d\n", 735 m_iWindowIndex, newSize.width(), newSize.height())); 734 736 resize(newSize); 735 737 … … 759 761 // host-screen. So we are resizing it to a smaller size first of all: 760 762 const QSize newSize = workingArea.size() * .9; 761 LogRel(("GUI: UIMiniToolBar::sltAdjust: Resize window to smaller size:%dx%d\n",762 newSize.width(), newSize.height()));763 LogRel(("GUI: Resize mini-toolbar for window #%d to smaller size %dx%d\n", 764 m_iWindowIndex, newSize.width(), newSize.height())); 763 765 resize(newSize); 764 766 765 767 /* Move window onto required screen: */ 766 768 const QPoint newPosition = workingArea.topLeft(); 767 LogRel(("GUI: UIMiniToolBar::sltAdjust: Move window to:%dx%d\n",768 newPosition.x(), newPosition.y()));769 LogRel(("GUI: Move mini-toolbar for window #%d to %dx%d\n", 770 m_iWindowIndex, newPosition.x(), newPosition.y())); 769 771 move(newPosition); 770 772 } … … 785 787 /* Set appropriate window size: */ 786 788 const QSize newSize = workingArea.size(); 787 LogRel(("GUI: UIMiniToolBar::sltAdjust: Resize window to:%dx%d\n",788 newSize.width(), newSize.height()));789 LogRel(("GUI: Resize mini-toolbar for window #%d to %dx%d\n", 790 m_iWindowIndex, newSize.width(), newSize.height())); 789 791 resize(newSize); 790 792 791 793 /* Move window onto required screen: */ 792 794 const QPoint newPosition = workingArea.topLeft(); 793 LogRel(("GUI: UIMiniToolBar::sltAdjust: Move window to:%dx%d\n",794 newPosition.x(), newPosition.y()));795 LogRel(("GUI: Move mini-toolbar for window #%d to %dx%d\n", 796 m_iWindowIndex, newPosition.x(), newPosition.y())); 795 797 move(newPosition); 796 798 -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIMiniToolBar.h
r66755 r66951 71 71 * @param geometryType determines the geometry type, 72 72 * @param alignment determines the alignment type, 73 * @param fAutoHide determines whether we should auto-hide. */ 73 * @param fAutoHide determines whether we should auto-hide. 74 * @param iWindowIndex determines the parent window index. */ 74 75 UIMiniToolBar(QWidget *pParent, 75 76 GeometryType geometryType, 76 77 Qt::Alignment alignment, 77 bool fAutoHide = true); 78 bool fAutoHide = true, 79 int iWindowIndex = -1); 78 80 /** Destructor. */ 79 81 ~UIMiniToolBar(); … … 166 168 /** Holds whether we should auto-hide. */ 167 169 bool m_fAutoHide; 170 /** Holds the parent window index. */ 171 int m_iWindowIndex; 168 172 169 173 /** Holds the area. */
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器