Changeset 60611 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Apr 20, 2016 5:57:15 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.cpp
r60362 r60611 25 25 # include <QContextMenuEvent> 26 26 # include <QResizeEvent> 27 # include <QScrollBar> 27 28 28 29 /* GUI includes: */ … … 520 521 /* Get the best size w/o scroll-bars: */ 521 522 QSize s = sizeHint(); 523 if (machineView()->verticalScrollBar()->isVisible()) 524 s -= QSize(machineView()->verticalScrollBar()->sizeHint().width(), 0); 525 if (machineView()->horizontalScrollBar()->isVisible()) 526 s -= QSize(0, machineView()->horizontalScrollBar()->sizeHint().height()); 522 527 523 528 /* Resize the frame to fit the contents: */
Note:
See TracChangeset
for help on using the changeset viewer.