VirtualBox

Changeset 84078 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Apr 29, 2020 12:24:05 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
137660
Message:

FE/Qt: bugref:9729: VirtualBox Manager: Error pane: Layout margin fixes.

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  
    6767    {
    6868        /* 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);
    7770
    7871        /* Create details browser: */
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIToolPaneMachine.cpp

    r83482 r84078  
    108108            case UIToolType_Error:
    109109            {
    110                 /* Create Desktop pane: */
     110                /* Create Error pane: */
    111111                m_pPaneError = new UIErrorPane(m_pActionPool->action(UIActionIndexST_M_Group_S_Refresh));
    112112                if (m_pPaneError)
    113113                {
     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
    114119                    /* Configure pane: */
    115120                    m_pPaneError->setProperty("ToolType", QVariant::fromValue(UIToolType_Error));
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette