VirtualBox

Changeset 87888 in vbox


Ignore:
Timestamp:
Feb 26, 2021 1:55:53 PM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9950. Making medium variant field of the guided mode non-modifiable

Location:
trunk/src/VBox/Frontends/VirtualBox/src/wizards
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDPageBasic2.h

    r87859 r87888  
    4141
    4242    /* Stuff for 'variant' field: */
    43     qulonglong mediumVariant() const;
    44     void setMediumVariant(qulonglong uMediumVariant);
     43    virtual qulonglong mediumVariant() const;
     44    virtual void setMediumVariant(qulonglong uMediumVariant);
    4545    void retranslateWidgets();
    4646
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic5.cpp

    r87887 r87888  
    6767}
    6868
     69qulonglong UIWizardNewVMPageBasic5::mediumVariant() const
     70{
     71    return (qulonglong)KMediumVariant_Standard;
     72}
     73
     74void UIWizardNewVMPageBasic5::setMediumVariant(qulonglong uMediumVariant)
     75{
     76    Q_UNUSED(uMediumVariant);
     77    /* No set here since we dont allow changing medium variant for this wizard mode: */
     78}
     79
    6980void UIWizardNewVMPageBasic5::prepare()
    7081{
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic5.h

    r87883 r87888  
    6969    QVariant fieldImp(const QString &strFieldName) const { return UIWizardPage::field(strFieldName); }
    7070
     71    /** We override mediumVariant access functions since for the guided new vm wizard it is set to KMediumVariant_Standard. */
     72    virtual qulonglong mediumVariant() const /* override */;
     73    virtual void setMediumVariant(qulonglong uMediumVariant) /* override */;
     74
    7175private slots:
    7276
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