VirtualBox

Changeset 78818 in vbox for trunk/src


Ignore:
Timestamp:
May 28, 2019 1:38:33 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9434: Import Appliance wizard: Form Editor widget: A bit of cleanup.

File:
1 edited

Legend:

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

    r78250 r78818  
    6060    ChoiceData(const QVector<QString> &values, int iSelectedIndex)
    6161        : m_values(values), m_iSelectedIndex(iSelectedIndex) {}
    62     /** Constructs choice data on the basis of another @a choice data. */
    63     ChoiceData(const ChoiceData &choice)
    64         : m_values(choice.values()), m_iSelectedIndex(choice.selectedIndex()) {}
    65 
    66     /** Assigns values of @a other choice to this one. */
    67     ChoiceData &operator=(const ChoiceData &other)
    68     {
    69         m_values = other.values();
    70         m_iSelectedIndex = other.selectedIndex();
     62    /** Constructs choice data on the basis of @a another choice data. */
     63    ChoiceData(const ChoiceData &another)
     64        : m_values(another.values()), m_iSelectedIndex(another.selectedIndex()) {}
     65
     66    /** Assigns values of @a another choice to this one. */
     67    ChoiceData &operator=(const ChoiceData &another)
     68    {
     69        m_values = another.values();
     70        m_iSelectedIndex = another.selectedIndex();
    7171        return *this;
    7272    }
     
    9393
    9494
    95 /** QComboBox extension used as Port editor. */
     95/** QComboBox extension used as ChoiceData editor. */
    9696class ChoiceEditor : public QComboBox
    9797{
     
    101101public:
    102102
    103     /** Constructs Port-editor passing @a pParent to the base-class. */
     103    /** Constructs ChoiceData editor passing @a pParent to the base-class. */
    104104    ChoiceEditor(QWidget *pParent = 0)
    105105        : QComboBox(pParent) {}
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