VirtualBox

Changeset 41397 in vbox


Ignore:
Timestamp:
May 22, 2012 2:37:01 PM (12 years ago)
Author:
vboxsync
Message:

FE/Qt: Some cleanup for r78101.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDPageBasic1.cpp

    r41392 r41397  
    3333}
    3434
    35 void UIWizardNewVDPage1::addFormatButton(QWidget *pParent, QVBoxLayout *pFormatsLayout, CMediumFormat medFormat)
     35void UIWizardNewVDPage1::addFormatButton(QWidget *pParent, QVBoxLayout *pFormatLayout, CMediumFormat medFormat)
    3636{
    3737    /* Check that medium format supports creation: */
     
    5050    /* Create/add corresponding radio-button: */
    5151    QRadioButton *pFormatButton = new QRadioButton(pParent);
    52     pFormatsLayout->addWidget(pFormatButton);
     52    pFormatLayout->addWidget(pFormatButton);
    5353    m_formats << medFormat;
    5454    m_formatNames << medFormat.GetName();
     
    7777    {
    7878        m_pLabel = new QIRichTextLabel(this);
    79         QVBoxLayout *pFormatsLayout = new QVBoxLayout;
     79        QVBoxLayout *pFormatLayout = new QVBoxLayout;
    8080        {
    8181            m_pFormatButtonGroup = new QButtonGroup(this);
     
    8787                    const CMediumFormat &medFormat = medFormats[i];
    8888                    if (medFormat.GetName() == "VDI")
    89                         addFormatButton(this, pFormatsLayout, medFormat);
     89                        addFormatButton(this, pFormatLayout, medFormat);
    9090                }
    9191                for (int i = 0; i < medFormats.size(); ++i)
     
    9393                    const CMediumFormat &medFormat = medFormats[i];
    9494                    if (medFormat.GetName() != "VDI")
    95                         addFormatButton(this, pFormatsLayout, medFormat);
     95                        addFormatButton(this, pFormatLayout, medFormat);
    9696                }
    9797            }
     
    100100        }
    101101        pMainLayout->addWidget(m_pLabel);
    102         pMainLayout->addLayout(pFormatsLayout);
     102        pMainLayout->addLayout(pFormatLayout);
    103103        pMainLayout->addStretch();
    104104    }
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDPageBasic2.cpp

    r41392 r41397  
    8080        m_pFixedLabel = new QIRichTextLabel(this);
    8181        m_pSplitLabel = new QIRichTextLabel(this);
    82         QVBoxLayout *pVariantsLayout = new QVBoxLayout;
     82        QVBoxLayout *pVariantLayout = new QVBoxLayout;
    8383        {
    8484            m_pVariantButtonGroup = new QButtonGroup(this);
     
    9494            }
    9595            m_pSplitBox = new QCheckBox(this);
    96             pVariantsLayout->addWidget(m_pDynamicalButton);
    97             pVariantsLayout->addWidget(m_pFixedButton);
    98             pVariantsLayout->addWidget(m_pSplitBox);
     96            pVariantLayout->addWidget(m_pDynamicalButton);
     97            pVariantLayout->addWidget(m_pFixedButton);
     98            pVariantLayout->addWidget(m_pSplitBox);
    9999        }
    100100        pMainLayout->addWidget(m_pDescriptionLabel);
     
    102102        pMainLayout->addWidget(m_pFixedLabel);
    103103        pMainLayout->addWidget(m_pSplitLabel);
    104         pMainLayout->addLayout(pVariantsLayout);
     104        pMainLayout->addLayout(pVariantLayout);
    105105        pMainLayout->addStretch();
    106106    }
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDPageExpert.cpp

    r41392 r41397  
    6868        {
    6969            m_pSizeCnt->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
    70             QGridLayout *m_pSizeCntLayout = new QGridLayout(m_pSizeCnt);
     70            QGridLayout *pSizeCntLayout = new QGridLayout(m_pSizeCnt);
    7171            {
    7272                m_pSizeSlider = new QSlider(m_pSizeCnt);
     
    9999                    m_pSizeMax->setText(vboxGlobal().formatSize(m_uMediumSizeMax));
    100100                }
    101                 m_pSizeCntLayout->addWidget(m_pSizeSlider, 0, 0, 1, 3);
    102                 m_pSizeCntLayout->addWidget(m_pSizeEditor, 0, 3);
    103                 m_pSizeCntLayout->addWidget(m_pSizeMin, 1, 0);
    104                 m_pSizeCntLayout->setColumnStretch(1, 1);
    105                 m_pSizeCntLayout->addWidget(m_pSizeMax, 1, 2);
     101                pSizeCntLayout->addWidget(m_pSizeSlider, 0, 0, 1, 3);
     102                pSizeCntLayout->addWidget(m_pSizeEditor, 0, 3);
     103                pSizeCntLayout->addWidget(m_pSizeMin, 1, 0);
     104                pSizeCntLayout->setColumnStretch(1, 1);
     105                pSizeCntLayout->addWidget(m_pSizeMax, 1, 2);
    106106            }
    107107        }
     
    135135        {
    136136            m_pVariantCnt->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
    137             QVBoxLayout *pVariantsLayout = new QVBoxLayout(m_pVariantCnt);
     137            QVBoxLayout *pVariantCntLayout = new QVBoxLayout(m_pVariantCnt);
    138138            {
    139139                m_pVariantButtonGroup = new QButtonGroup(m_pVariantCnt);
     
    149149                }
    150150                m_pSplitBox = new QCheckBox(m_pVariantCnt);
    151                 pVariantsLayout->addWidget(m_pDynamicalButton);
    152                 pVariantsLayout->addWidget(m_pFixedButton);
    153                 pVariantsLayout->addWidget(m_pSplitBox);
     151                pVariantCntLayout->addWidget(m_pDynamicalButton);
     152                pVariantCntLayout->addWidget(m_pFixedButton);
     153                pVariantCntLayout->addWidget(m_pSplitBox);
    154154            }
    155155        }
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