Changeset 78934 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Jun 3, 2019 12:47:42 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIFormEditorWidget.cpp
r78895 r78934 58 58 59 59 /** Constructs null choice data. */ 60 ChoiceData() {} 60 ChoiceData() 61 : m_iSelectedIndex(-1) {} 61 62 /** Constructs choice data on the basis of passed @a values and @a iSelectedIndex. */ 62 63 ChoiceData(const QVector<QString> &values, int iSelectedIndex) … … 101 102 102 103 /** Constructs null ranged-integer data. */ 103 RangedIntegerData() {} 104 RangedIntegerData() 105 : m_iMinimum(-1), m_iMaximum(-1), m_iInteger(-1) {} 104 106 /** Constructs ranged-integer data on the basis of passed @a iMinimum, @a iMaximum and @a iInteger. */ 105 107 RangedIntegerData(int iMinimum, int iMaximum, int iInteger) … … 804 806 { 805 807 case KFormValueType_String: 808 { 806 809 m_dataList[index.row()]->setString(value.toString()); 807 810 emit dataChanged(index, index); 808 811 updateGeneration(); 809 812 return true; 813 } 810 814 case KFormValueType_Choice: 815 { 811 816 m_dataList[index.row()]->setChoice(value.value<ChoiceData>()); 812 817 emit dataChanged(index, index); 813 818 updateGeneration(); 814 819 return true; 820 } 815 821 case KFormValueType_RangedInteger: 822 { 816 823 m_dataList[index.row()]->setRangedInteger(value.value<RangedIntegerData>()); 817 824 emit dataChanged(index, index); 818 825 updateGeneration(); 819 826 return true; 827 } 820 828 default: 821 829 return false;
Note:
See TracChangeset
for help on using the changeset viewer.