Changeset 73637 in vbox
- Timestamp:
- Aug 13, 2018 1:53:13 PM (6 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/manager
- Files:
-
- 3 edited
-
UIToolPaneGlobal.cpp (modified) (3 diffs)
-
UIToolPaneMachine.cpp (modified) (3 diffs)
-
UIToolbarTools.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIToolPaneGlobal.cpp
r73424 r73637 22 22 /* Qt includes: */ 23 23 # include <QStackedLayout> 24 # ifndef VBOX_WS_MAC 25 # include <QStyle> 26 # endif 24 27 # include <QUuid> 25 28 … … 111 114 AssertPtrReturnVoid(m_pPaneMedia); 112 115 { 116 #ifndef VBOX_WS_MAC 117 const int iMargin = qApp->style()->pixelMetric(QStyle::PM_LayoutLeftMargin) / 4; 118 m_pPaneMedia->setContentsMargins(iMargin, 0, iMargin, 0); 119 #endif 120 113 121 /* Configure pane: */ 114 122 m_pPaneMedia->setProperty("ToolType", QVariant::fromValue(ToolTypeGlobal_VirtualMedia)); … … 126 134 AssertPtrReturnVoid(m_pPaneNetwork); 127 135 { 136 #ifndef VBOX_WS_MAC 137 const int iMargin = qApp->style()->pixelMetric(QStyle::PM_LayoutLeftMargin) / 4; 138 m_pPaneNetwork->setContentsMargins(iMargin, 0, iMargin, 0); 139 #endif 140 128 141 /* Configure pane: */ 129 142 m_pPaneNetwork->setProperty("ToolType", QVariant::fromValue(ToolTypeGlobal_HostNetwork)); -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIToolPaneMachine.cpp
r73424 r73637 22 22 /* Qt includes: */ 23 23 # include <QStackedLayout> 24 # ifndef VBOX_WS_MAC 25 # include <QStyle> 26 # endif 24 27 # include <QUuid> 25 28 … … 134 137 AssertPtrReturnVoid(m_pPaneSnapshots); 135 138 { 139 #ifndef VBOX_WS_MAC 140 const int iMargin = qApp->style()->pixelMetric(QStyle::PM_LayoutLeftMargin) / 4; 141 m_pPaneSnapshots->setContentsMargins(iMargin, 0, iMargin, 0); 142 #endif 143 136 144 /* Configure pane: */ 137 145 m_pPaneSnapshots->setProperty("ToolType", QVariant::fromValue(ToolTypeMachine_Snapshots)); … … 149 157 AssertPtrReturnVoid(m_pPaneLogViewer); 150 158 { 159 #ifndef VBOX_WS_MAC 160 const int iMargin = qApp->style()->pixelMetric(QStyle::PM_LayoutLeftMargin) / 4; 161 m_pPaneLogViewer->setContentsMargins(iMargin, 0, iMargin, 0); 162 #endif 163 151 164 /* Configure pane: */ 152 165 m_pPaneLogViewer->setProperty("ToolType", QVariant::fromValue(ToolTypeMachine_LogViewer)); -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIToolbarTools.cpp
r73601 r73637 256 256 { 257 257 /* Configure layout: */ 258 m_pLayoutMain->setContentsMargins(0, 0, 0, 0); 258 #ifndef VBOX_WS_MAC 259 const int iL = qApp->style()->pixelMetric(QStyle::PM_LayoutLeftMargin) / 9; 260 m_pLayoutMain->setContentsMargins(iL, 0, 0, 0); 261 #endif 259 262 260 263 /* Create Machine tab-bar: */
Note:
See TracChangeset
for help on using the changeset viewer.

