Changeset 65546 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Jan 31, 2017 3:32:00 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIMiniToolBar.cpp
r65536 r65546 667 667 case GeometryType_Available: 668 668 { 669 /* Set appropriate window geometry: */ 670 resize(workingArea.size()); 671 move(workingArea.topLeft()); 669 /* Set appropriate window size: */ 670 const QSize newSize = workingArea.size(); 671 LogRel2(("GUI: UIMiniToolBar::sltAdjust: Resize window to: %dx%d\n", 672 newSize.width(), newSize.height())); 673 resize(newSize); 674 675 /* Move window onto required screen: */ 676 const QPoint newPosition = workingArea.topLeft(); 677 LogRel2(("GUI: UIMiniToolBar::sltAdjust: Move window to: %dx%d\n", 678 newPosition.x(), newPosition.y())); 679 move(newPosition); 680 672 681 break; 673 682 } … … 675 684 { 676 685 /* Map window onto required screen: */ 677 Assert(iHostScreen < qApp->screens().size()); 686 LogRel2(("GUI: UIMiniToolBar::sltAdjust: Map window to screen: %d of: %d\n", 687 iHostScreen, qApp->screens().size())); 678 688 windowHandle()->setScreen(qApp->screens().at(iHostScreen)); 689 679 690 /* Set appropriate window size: */ 680 resize(workingArea.size()); 691 const QSize newSize = workingArea.size(); 692 LogRel2(("GUI: UIMiniToolBar::sltAdjust: Resize window to: %dx%d\n", 693 newSize.width(), newSize.height())); 694 resize(newSize); 695 681 696 break; 682 697 } … … 694 709 } 695 710 696 /* Set appropriate window geometry: */ 697 resize(workingArea.size()); 698 move(workingArea.topLeft()); 711 /* Set appropriate window size: */ 712 const QSize newSize = workingArea.size(); 713 LogRel(("GUI: UIMiniToolBar::sltAdjust: Resize window to: %dx%d\n", 714 newSize.width(), newSize.height())); 715 resize(newSize); 716 717 /* Move window onto required screen: */ 718 const QPoint newPosition = workingArea.topLeft(); 719 LogRel(("GUI: UIMiniToolBar::sltAdjust: Move window to: %dx%d\n", 720 newPosition.x(), newPosition.y())); 721 move(newPosition); 699 722 700 723 /* Re-apply the full-screen state lost on above move(): */
Note:
See TracChangeset
for help on using the changeset viewer.