VirtualBox

Changeset 41396 in vbox


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

FE/Qt: Some cleanup for r78097.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.cpp

    r41389 r41396  
    4747        {
    4848            m_pNameAndSystemCnt->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
    49             QHBoxLayout *pNameAndSystemLayout = new QHBoxLayout(m_pNameAndSystemCnt);
     49            QHBoxLayout *pNameAndSystemCntLayout = new QHBoxLayout(m_pNameAndSystemCnt);
    5050            {
    5151                m_pNameAndSystemEditor = new UINameAndSystemEditor(m_pNameAndSystemCnt);
    52                 pNameAndSystemLayout->addWidget(m_pNameAndSystemEditor);
     52                pNameAndSystemCntLayout->addWidget(m_pNameAndSystemEditor);
    5353            }
    5454        }
     
    5656        {
    5757            m_pMemoryCnt->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
    58             QGridLayout *pMemoryLayout = new QGridLayout(m_pMemoryCnt);
     58            QGridLayout *pMemoryCntLayout = new QGridLayout(m_pMemoryCnt);
    5959            {
    6060                m_pRamSlider = new VBoxGuestRAMSlider(m_pMemoryCnt);
     
    8585                    m_pRamMax->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed);
    8686                }
    87                 pMemoryLayout->addWidget(m_pRamSlider, 0, 0, 1, 3);
    88                 pMemoryLayout->addWidget(m_pRamEditor, 0, 3);
    89                 pMemoryLayout->addWidget(m_pRamUnits, 0, 4);
    90                 pMemoryLayout->addWidget(m_pRamMin, 1, 0);
    91                 pMemoryLayout->setColumnStretch(1, 1);
    92                 pMemoryLayout->addWidget(m_pRamMax, 1, 2);
     87                pMemoryCntLayout->addWidget(m_pRamSlider, 0, 0, 1, 3);
     88                pMemoryCntLayout->addWidget(m_pRamEditor, 0, 3);
     89                pMemoryCntLayout->addWidget(m_pRamUnits, 0, 4);
     90                pMemoryCntLayout->addWidget(m_pRamMin, 1, 0);
     91                pMemoryCntLayout->setColumnStretch(1, 1);
     92                pMemoryCntLayout->addWidget(m_pRamMax, 1, 2);
    9393            }
    9494        }
     
    9696        {
    9797            m_pDiskCnt->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
    98             QGridLayout *pDiskLayout = new QGridLayout(m_pDiskCnt);
     98            QGridLayout *pDiskCntLayout = new QGridLayout(m_pDiskCnt);
    9999            {
    100100                m_pDiskSkip = new QRadioButton(m_pDiskCnt);
     
    107107                options.initFrom(m_pDiskPresent);
    108108                int iWidth = m_pDiskPresent->style()->pixelMetric(QStyle::PM_ExclusiveIndicatorWidth, &options, m_pDiskPresent);
    109                 pDiskLayout->setColumnMinimumWidth(0, iWidth);
     109                pDiskCntLayout->setColumnMinimumWidth(0, iWidth);
    110110                m_pDiskSelector = new VBoxMediaComboBox(m_pDiskCnt);
    111111                {
     
    118118                    m_pVMMButton->setIcon(UIIconPool::iconSet(":/select_file_16px.png", ":/select_file_dis_16px.png"));
    119119                }
    120                 pDiskLayout->addWidget(m_pDiskSkip, 0, 0, 1, 3);
    121                 pDiskLayout->addWidget(m_pDiskCreate, 1, 0, 1, 3);
    122                 pDiskLayout->addWidget(m_pDiskPresent, 2, 0, 1, 3);
    123                 pDiskLayout->addWidget(m_pDiskSelector, 3, 1);
    124                 pDiskLayout->addWidget(m_pVMMButton, 3, 2);
     120                pDiskCntLayout->addWidget(m_pDiskSkip, 0, 0, 1, 3);
     121                pDiskCntLayout->addWidget(m_pDiskCreate, 1, 0, 1, 3);
     122                pDiskCntLayout->addWidget(m_pDiskPresent, 2, 0, 1, 3);
     123                pDiskCntLayout->addWidget(m_pDiskSelector, 3, 1);
     124                pDiskCntLayout->addWidget(m_pVMMButton, 3, 2);
    125125            }
    126126        }
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