Changeset 41397 in vbox
- Timestamp:
- May 22, 2012 2:37:01 PM (12 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd
- Files:
-
- 3 edited
-
UIWizardNewVDPageBasic1.cpp (modified) (6 diffs)
-
UIWizardNewVDPageBasic2.cpp (modified) (3 diffs)
-
UIWizardNewVDPageExpert.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDPageBasic1.cpp
r41392 r41397 33 33 } 34 34 35 void UIWizardNewVDPage1::addFormatButton(QWidget *pParent, QVBoxLayout *pFormat sLayout, CMediumFormat medFormat)35 void UIWizardNewVDPage1::addFormatButton(QWidget *pParent, QVBoxLayout *pFormatLayout, CMediumFormat medFormat) 36 36 { 37 37 /* Check that medium format supports creation: */ … … 50 50 /* Create/add corresponding radio-button: */ 51 51 QRadioButton *pFormatButton = new QRadioButton(pParent); 52 pFormat sLayout->addWidget(pFormatButton);52 pFormatLayout->addWidget(pFormatButton); 53 53 m_formats << medFormat; 54 54 m_formatNames << medFormat.GetName(); … … 77 77 { 78 78 m_pLabel = new QIRichTextLabel(this); 79 QVBoxLayout *pFormat sLayout = new QVBoxLayout;79 QVBoxLayout *pFormatLayout = new QVBoxLayout; 80 80 { 81 81 m_pFormatButtonGroup = new QButtonGroup(this); … … 87 87 const CMediumFormat &medFormat = medFormats[i]; 88 88 if (medFormat.GetName() == "VDI") 89 addFormatButton(this, pFormat sLayout, medFormat);89 addFormatButton(this, pFormatLayout, medFormat); 90 90 } 91 91 for (int i = 0; i < medFormats.size(); ++i) … … 93 93 const CMediumFormat &medFormat = medFormats[i]; 94 94 if (medFormat.GetName() != "VDI") 95 addFormatButton(this, pFormat sLayout, medFormat);95 addFormatButton(this, pFormatLayout, medFormat); 96 96 } 97 97 } … … 100 100 } 101 101 pMainLayout->addWidget(m_pLabel); 102 pMainLayout->addLayout(pFormat sLayout);102 pMainLayout->addLayout(pFormatLayout); 103 103 pMainLayout->addStretch(); 104 104 } -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDPageBasic2.cpp
r41392 r41397 80 80 m_pFixedLabel = new QIRichTextLabel(this); 81 81 m_pSplitLabel = new QIRichTextLabel(this); 82 QVBoxLayout *pVariant sLayout = new QVBoxLayout;82 QVBoxLayout *pVariantLayout = new QVBoxLayout; 83 83 { 84 84 m_pVariantButtonGroup = new QButtonGroup(this); … … 94 94 } 95 95 m_pSplitBox = new QCheckBox(this); 96 pVariant sLayout->addWidget(m_pDynamicalButton);97 pVariant sLayout->addWidget(m_pFixedButton);98 pVariant sLayout->addWidget(m_pSplitBox);96 pVariantLayout->addWidget(m_pDynamicalButton); 97 pVariantLayout->addWidget(m_pFixedButton); 98 pVariantLayout->addWidget(m_pSplitBox); 99 99 } 100 100 pMainLayout->addWidget(m_pDescriptionLabel); … … 102 102 pMainLayout->addWidget(m_pFixedLabel); 103 103 pMainLayout->addWidget(m_pSplitLabel); 104 pMainLayout->addLayout(pVariant sLayout);104 pMainLayout->addLayout(pVariantLayout); 105 105 pMainLayout->addStretch(); 106 106 } -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDPageExpert.cpp
r41392 r41397 68 68 { 69 69 m_pSizeCnt->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed); 70 QGridLayout * m_pSizeCntLayout = new QGridLayout(m_pSizeCnt);70 QGridLayout *pSizeCntLayout = new QGridLayout(m_pSizeCnt); 71 71 { 72 72 m_pSizeSlider = new QSlider(m_pSizeCnt); … … 99 99 m_pSizeMax->setText(vboxGlobal().formatSize(m_uMediumSizeMax)); 100 100 } 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); 106 106 } 107 107 } … … 135 135 { 136 136 m_pVariantCnt->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed); 137 QVBoxLayout *pVariant sLayout = new QVBoxLayout(m_pVariantCnt);137 QVBoxLayout *pVariantCntLayout = new QVBoxLayout(m_pVariantCnt); 138 138 { 139 139 m_pVariantButtonGroup = new QButtonGroup(m_pVariantCnt); … … 149 149 } 150 150 m_pSplitBox = new QCheckBox(m_pVariantCnt); 151 pVariant sLayout->addWidget(m_pDynamicalButton);152 pVariant sLayout->addWidget(m_pFixedButton);153 pVariant sLayout->addWidget(m_pSplitBox);151 pVariantCntLayout->addWidget(m_pDynamicalButton); 152 pVariantCntLayout->addWidget(m_pFixedButton); 153 pVariantCntLayout->addWidget(m_pSplitBox); 154 154 } 155 155 }
Note:
See TracChangeset
for help on using the changeset viewer.

