Changeset 87982 in vbox for trunk/src/VBox
- Timestamp:
- Mar 5, 2021 5:58:01 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 143092
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.cpp
r87981 r87982 53 53 , m_pDiskFormatGroupBox(0) 54 54 , m_pDiskVariantGroupBox(0) 55 , m_pLocationLabel(0) 55 56 { 56 57 /* Create widgets: */ … … 202 203 if (m_pDiskVariantGroupBox) 203 204 m_pDiskVariantGroupBox->setTitle(UIWizardNewVM::tr("Storage on physical hard disk")); 204 205 if (m_pLocationLabel) 206 m_pLocationLabel->setText(UIWizardNewVM::tr("Disk Location:")); 205 207 } 206 208 … … 420 422 /* Disk location widgets: */ 421 423 422 QLabel *pLocationLabel = new QLabel("Disk Location:");423 pLocationLabel->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Fixed);424 m_pLocationLabel = new QLabel("Disk Location:"); 425 m_pLocationLabel->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Fixed); 424 426 m_pLocationEditor = new QLineEdit; 425 427 m_pLocationOpenButton = new QIToolButton; … … 429 431 m_pLocationOpenButton->setIcon(UIIconPool::iconSet(":/select_file_16px.png", "select_file_disabled_16px.png")); 430 432 } 431 pLocationLabel->setBuddy(m_pLocationEditor);433 m_pLocationLabel->setBuddy(m_pLocationEditor); 432 434 433 435 /* Disk file size widgets: */ … … 448 450 pDiskVariantLayout->addWidget(createMediumVariantWidgets(false /* fWithLabels */)); 449 451 450 pDiskContainerLayout->addWidget( pLocationLabel, 0, 0, 1, 1);452 pDiskContainerLayout->addWidget(m_pLocationLabel, 0, 0, 1, 1); 451 453 pDiskContainerLayout->addWidget(m_pLocationEditor, 0, 1, 1, 2); 452 454 pDiskContainerLayout->addWidget(m_pLocationOpenButton, 0, 3, 1, 1); … … 664 666 if (m_pSizeEditorLabel) 665 667 m_pSizeEditorLabel->setEnabled(fEnable); 666 if (m_pFixedCheckBox) 667 m_pFixedCheckBox->setEnabled(fEnable); 668 } 668 if (m_pDiskFormatGroupBox) 669 m_pDiskFormatGroupBox->setEnabled(fEnable); 670 if (m_pDiskVariantGroupBox) 671 m_pDiskVariantGroupBox->setEnabled(fEnable); 672 if (m_pLocationLabel) 673 m_pLocationLabel->setEnabled(fEnable); 674 if (m_pLocationEditor) 675 m_pLocationEditor->setEnabled(fEnable); 676 if (m_pLocationOpenButton) 677 m_pLocationOpenButton->setEnabled(fEnable); 678 } -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.h
r87981 r87982 145 145 QGroupBox *m_pDiskFormatGroupBox; 146 146 QGroupBox *m_pDiskVariantGroupBox; 147 147 QLabel *m_pLocationLabel; 148 148 /** Set of widgets which user explicitly modified their values. They are exempt from 149 149 * adjusting when OS type changes. */
Note:
See TracChangeset
for help on using the changeset viewer.