VirtualBox

Changeset 87982 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 5, 2021 5:58:01 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
143092
Message:

FE/Qt: bugref:9950. r143091 was incomplete

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  
    5353    , m_pDiskFormatGroupBox(0)
    5454    , m_pDiskVariantGroupBox(0)
     55    , m_pLocationLabel(0)
    5556{
    5657    /* Create widgets: */
     
    202203    if (m_pDiskVariantGroupBox)
    203204        m_pDiskVariantGroupBox->setTitle(UIWizardNewVM::tr("Storage on physical hard disk"));
    204 
     205    if (m_pLocationLabel)
     206        m_pLocationLabel->setText(UIWizardNewVM::tr("Disk Location:"));
    205207}
    206208
     
    420422    /* Disk location widgets: */
    421423
    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);
    424426    m_pLocationEditor = new QLineEdit;
    425427    m_pLocationOpenButton = new QIToolButton;
     
    429431        m_pLocationOpenButton->setIcon(UIIconPool::iconSet(":/select_file_16px.png", "select_file_disabled_16px.png"));
    430432    }
    431     pLocationLabel->setBuddy(m_pLocationEditor);
     433    m_pLocationLabel->setBuddy(m_pLocationEditor);
    432434
    433435    /* Disk file size widgets: */
     
    448450    pDiskVariantLayout->addWidget(createMediumVariantWidgets(false /* fWithLabels */));
    449451
    450     pDiskContainerLayout->addWidget(pLocationLabel, 0, 0, 1, 1);
     452    pDiskContainerLayout->addWidget(m_pLocationLabel, 0, 0, 1, 1);
    451453    pDiskContainerLayout->addWidget(m_pLocationEditor, 0, 1, 1, 2);
    452454    pDiskContainerLayout->addWidget(m_pLocationOpenButton, 0, 3, 1, 1);
     
    664666    if (m_pSizeEditorLabel)
    665667        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  
    145145    QGroupBox *m_pDiskFormatGroupBox;
    146146    QGroupBox *m_pDiskVariantGroupBox;
    147 
     147    QLabel *m_pLocationLabel;
    148148    /** Set of widgets which user explicitly modified their values. They are exempt from
    149149      * adjusting when OS type changes. */
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