Changeset 69702 in vbox
- Timestamp:
- Nov 15, 2017 12:19:52 PM (7 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMenuBarEditorWindow.cpp
r69669 r69702 877 877 const int iStandardMetric = QApplication::style()->pixelMetric(QStyle::PM_SmallIconSize) / 2; 878 878 const int iMinimumMetric = QApplication::style()->pixelMetric(QStyle::PM_SmallIconSize) / 4; 879 /* Standard margins should not be too small : */880 iLeft = qMax(iLeft, iStandardMetric);881 iTop = qMax(iTop, iStandardMetric);882 iRight = qMax(iRight, iStandardMetric);883 iBottom = qMax(iBottom, iStandardMetric);879 /* Standard margins should not be too small/large: */ 880 iLeft = iStandardMetric; 881 iTop = iStandardMetric; 882 iRight = iStandardMetric; 883 iBottom = iStandardMetric; 884 884 /* Top margin should be smaller for the common case: */ 885 885 if (iTop >= iMinimumMetric) -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIStatusBarEditorWindow.cpp
r69669 r69702 496 496 const int iStandardMetric = QApplication::style()->pixelMetric(QStyle::PM_SmallIconSize) / 2; 497 497 const int iMinimumMetric = QApplication::style()->pixelMetric(QStyle::PM_SmallIconSize) / 4; 498 /* Standard margins should not be too small : */499 iLeft = qMax(iLeft, iStandardMetric);500 iTop = qMax(iTop, iStandardMetric);501 iRight = qMax(iRight, iStandardMetric);502 iBottom = qMax(iBottom, iStandardMetric);498 /* Standard margins should not be too small/large: */ 499 iLeft = iStandardMetric; 500 iTop = iStandardMetric; 501 iRight = iStandardMetric; 502 iBottom = iStandardMetric; 503 503 /* Bottom margin should be smaller for the common case: */ 504 504 if (iBottom >= iMinimumMetric)
Note:
See TracChangeset
for help on using the changeset viewer.