Changeset 84078 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Apr 29, 2020 12:24:05 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 137660
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/manager
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIErrorPane.cpp
r84077 r84078 67 67 { 68 68 /* Configure layout: */ 69 #ifdef VBOX_WS_MAC 70 pMainLayout->setContentsMargins(4, 5, 5, 5); 71 #else 72 const int iL = qApp->style()->pixelMetric(QStyle::PM_LayoutLeftMargin) / 3; 73 const int iT = qApp->style()->pixelMetric(QStyle::PM_LayoutTopMargin) / 3; 74 const int iR = qApp->style()->pixelMetric(QStyle::PM_LayoutRightMargin) / 3; 75 pMainLayout->setContentsMargins(iL, iT, iR, 0); 76 #endif 69 pMainLayout->setContentsMargins(0, 0, 0, 0); 77 70 78 71 /* Create details browser: */ -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIToolPaneMachine.cpp
r83482 r84078 108 108 case UIToolType_Error: 109 109 { 110 /* Create Desktoppane: */110 /* Create Error pane: */ 111 111 m_pPaneError = new UIErrorPane(m_pActionPool->action(UIActionIndexST_M_Group_S_Refresh)); 112 112 if (m_pPaneError) 113 113 { 114 #ifndef VBOX_WS_MAC 115 const int iMargin = qApp->style()->pixelMetric(QStyle::PM_LayoutLeftMargin) / 4; 116 m_pPaneError->setContentsMargins(iMargin, 0, iMargin, 0); 117 #endif 118 114 119 /* Configure pane: */ 115 120 m_pPaneError->setProperty("ToolType", QVariant::fromValue(UIToolType_Error));
Note:
See TracChangeset
for help on using the changeset viewer.