VirtualBox

Changeset 78203 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 18, 2019 10:15:07 AM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9434: Import Appliance wizard: Form Editor model: Small cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIFormEditorWidget.cpp

    r78177 r78203  
    5959    ChoiceData(const QVector<QString> &choices, int iSelectedChoice)
    6060        : m_choices(choices), m_iSelectedChoice(iSelectedChoice) {}
     61    /** Constructs choice data on the basis of another @a choice data. */
     62    ChoiceData(const ChoiceData &choice)
     63        : m_choices(choice.choices()), m_iSelectedChoice(choice.selectedChoice()) {}
    6164
    6265    /** Returns choice list. */
     
    9093
    9194    /** Defines the @a choice. */
    92     void setChoice(ChoiceData choice)
     95    void setChoice(const ChoiceData &choice)
    9396    {
    9497        addItems(choice.choices().toList());
     
    163166    ChoiceData toChoice() const;
    164167    /** Defines @a choice value. */
    165     void setChoice(ChoiceData choice);
     168    void setChoice(const ChoiceData &choice);
    166169
    167170protected:
     
    364367}
    365368
    366 void UIFormEditorRow::setChoice(ChoiceData choice)
     369void UIFormEditorRow::setChoice(const ChoiceData &choice)
    367370{
    368371    AssertReturnVoid(valueType() == KFormValueType_Choice);
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