VirtualBox

Ignore:
Timestamp:
Nov 24, 2017 12:48:31 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
119252
Message:

FE/Qt: bugref:8694: Layout fix for r119246.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/UITakeSnapshotDialog.cpp

    r69821 r69823  
    101101    AssertPtrReturnVoid(pLayout);
    102102    {
     103        /* Configure layout: */
     104        const int iS0 = qApp->style()->pixelMetric(QStyle::PM_LayoutHorizontalSpacing) * 2;
     105        pLayout->setSpacing(iS0);
     106
    103107        /* Create sub-layout: */
    104108        QVBoxLayout *pSubLayout1 = new QVBoxLayout;
     
    128132        {
    129133            /* Configure layout: */
    130             const int iS = qApp->style()->pixelMetric(QStyle::PM_LayoutVerticalSpacing) / 2;
    131             pSubLayout2->setSpacing(iS);
     134            const int iS2 = qApp->style()->pixelMetric(QStyle::PM_LayoutVerticalSpacing) / 2;
     135            pSubLayout2->setSpacing(iS2);
    132136
    133137            /* Create name label: */
     
    161165        {
    162166            /* Configure layout: */
    163             const int iS = qApp->style()->pixelMetric(QStyle::PM_LayoutVerticalSpacing) / 2;
    164             pSubLayout3->setSpacing(iS);
     167            const int iS3 = qApp->style()->pixelMetric(QStyle::PM_LayoutVerticalSpacing) / 2;
     168            pSubLayout3->setSpacing(iS3);
    165169
    166170            /* Create description label: */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIVMCloseDialog.cpp

    r69821 r69823  
    303303            /* Configure layout: */
    304304            pTopLayout->setContentsMargins(0, 0, 0, 0);
    305             // WORKAROUND:
    306             // Why do we need it? It should be the default one, but it's not..
    307             const int iS3 = qApp->style()->pixelMetric(QStyle::PM_LayoutHorizontalSpacing);
     305            const int iS3 = qApp->style()->pixelMetric(QStyle::PM_LayoutHorizontalSpacing) * 2;
    308306            pTopLayout->setSpacing(iS3);
    309307            pTopLayout->addItem(pTopLeftLayout);
Note: See TracChangeset for help on using the changeset viewer.

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