Changeset 91277 in vbox
- Timestamp:
- Sep 16, 2021 11:50:40 AM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 146937
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/wizards
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/editors/UIWizardDiskEditors.cpp
r91272 r91277 252 252 m_fIsCreateFixedPossible = uCapabilities & KMediumFormatCapabilities_CreateFixed; 253 253 m_fIsCreateSplitPossible = uCapabilities & KMediumFormatCapabilities_CreateSplit2G; 254 255 254 m_pFixedCheckBox->setEnabled(true); 256 255 if (!m_fIsCreateDynamicPossible) -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDExpertPage.cpp
r91272 r91277 35 35 , m_pFormatComboxBox(0) 36 36 , m_pVariantWidget(0) 37 , m_pFormatVariantGroupBox(0) 37 38 , m_strDefaultName(strDefaultName) 38 39 , m_strDefaultPath(strDefaultPath) … … 46 47 void UIWizardNewVDExpertPage::prepare() 47 48 { 48 Q GridLayout *pMainLayout = new QGridLayout(this);49 QVBoxLayout *pMainLayout = new QVBoxLayout(this); 49 50 m_pSizeAndPathGroup = new UIMediumSizeAndPathGroupBox(true /* fExpertMode */, 0 /* parent */, _4M /* minimum size */); 50 m_pFormatComboxBox = new UIDiskFormats GroupBox(true /* fExpertMode */, KDeviceType_HardDisk, 0);51 m_pFormatComboxBox = new UIDiskFormatsComboBox(true /* fExpertMode */, KDeviceType_HardDisk, 0); 51 52 m_pVariantWidget = new UIDiskVariantWidget(0); 52 53 53 pMainLayout->addWidget(m_pSizeAndPathGroup, 0, 0, 4, 2); 54 pMainLayout->addWidget(m_pFormatComboxBox, 4, 0, 7, 1); 55 pMainLayout->addWidget(m_pVariantWidget, 4, 1, 3, 1); 56 57 connect(m_pFormatComboxBox, &UIDiskFormatsGroupBox::sigMediumFormatChanged, 54 m_pFormatVariantGroupBox = new QGroupBox; 55 QHBoxLayout *pFormatVariantLayout = new QHBoxLayout(m_pFormatVariantGroupBox); 56 pFormatVariantLayout->addWidget(m_pFormatComboxBox, 0, Qt::AlignTop); 57 pFormatVariantLayout->addWidget(m_pVariantWidget); 58 59 pMainLayout->addWidget(m_pSizeAndPathGroup); 60 pMainLayout->addWidget(m_pFormatVariantGroupBox); 61 62 connect(m_pFormatComboxBox, &UIDiskFormatsComboBox::sigMediumFormatChanged, 58 63 this, &UIWizardNewVDExpertPage::sltMediumFormatChanged); 59 64 connect(m_pVariantWidget, &UIDiskVariantWidget::sigMediumVariantChanged, … … 123 128 void UIWizardNewVDExpertPage::retranslateUi() 124 129 { 130 if (m_pFormatVariantGroupBox) 131 m_pFormatVariantGroupBox->setTitle(UIWizardNewVD::tr("Hard Disk File &Type and Variant")); 125 132 } 126 133 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDExpertPage.h
r91272 r91277 26 26 27 27 /* Forward declarations: */ 28 class UIDiskFormatsGroupBox; 28 class QGroupBox; 29 class UIDiskFormatsComboBox; 29 30 class UIDiskVariantWidget; 30 31 class UIMediumSizeAndPathGroupBox; … … 64 65 * @{ */ 65 66 UIMediumSizeAndPathGroupBox *m_pSizeAndPathGroup; 66 UIDiskFormats GroupBox *m_pFormatComboxBox;67 UIDiskFormatsComboBox *m_pFormatComboxBox; 67 68 UIDiskVariantWidget *m_pVariantWidget; 69 QGroupBox *m_pFormatVariantGroupBox; 68 70 /** @} */ 69 71 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMExpertPage.cpp
r91272 r91277 43 43 UIWizardNewVMExpertPage::UIWizardNewVMExpertPage() 44 44 : m_pToolBox(0) 45 , m_pDiskFormatVariantGroupBox(0) 45 46 , m_pDiskVariantWidget(0) 46 47 , m_pFormatComboBox(0) … … 210 211 if (m_pNameAndSystemLayout && m_pNameAndSystemEditor) 211 212 m_pNameAndSystemLayout->setColumnMinimumWidth(0, m_pNameAndSystemEditor->firstColumnWidth()); 213 214 if (m_pDiskFormatVariantGroupBox) 215 m_pDiskFormatVariantGroupBox->setTitle(UIWizardNewVM::tr("Hard Disk File &Type and Variant")); 212 216 } 213 217 … … 448 452 m_pSizeAndLocationGroup = new UIMediumSizeAndPathGroupBox(true, 0 /* parent */, _4M /* minimum size */); 449 453 pDiskContainerLayout->addWidget(m_pSizeAndLocationGroup, 0, 0, 2, 2); 454 455 m_pDiskFormatVariantGroupBox = new QGroupBox; 456 QHBoxLayout *pDiskFormatVariantLayout = new QHBoxLayout(m_pDiskFormatVariantGroupBox); 457 450 458 m_pFormatComboBox = new UIDiskFormatsComboBox(true, KDeviceType_HardDisk, 0); 451 pDiskContainerLayout->addWidget(m_pFormatComboBox, 2, 0, 1, 1); 459 pDiskFormatVariantLayout->addWidget(m_pFormatComboBox, 0 /* stretch */, Qt::AlignTop); 460 452 461 m_pDiskVariantWidget = new UIDiskVariantWidget(0); 453 pDiskContainerLayout->addWidget(m_pDiskVariantWidget, 2, 1, 2, 1); 462 pDiskFormatVariantLayout->addWidget(m_pDiskVariantWidget); 463 464 pDiskContainerLayout->addWidget(m_pDiskFormatVariantGroupBox, 2, 0, 2, 2); 454 465 return pNewDiskContainerWidget; 455 466 } -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMExpertPage.h
r91272 r91277 32 32 class QCheckBox; 33 33 class QGridLayout; 34 class QGroupBox; 34 35 class QRadioButton; 35 36 class QIToolButton; … … 126 127 * @{ */ 127 128 UIToolBox *m_pToolBox; 129 QGroupBox *m_pDiskFormatVariantGroupBox; 128 130 UIDiskVariantWidget *m_pDiskVariantWidget; 129 131 UIDiskFormatsComboBox *m_pFormatComboBox;
Note:
See TracChangeset
for help on using the changeset viewer.