Changeset 16668 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Feb 11, 2009 2:12:11 PM (16 years ago)
- Location:
- trunk/src/VBox/Frontends
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageImport.cpp
r16662 r16668 428 428 CHECK_ERROR_BREAK(aVirtualSystemDescriptions[i], 429 429 SetFinalValues(ComSafeArrayAsInParam(aEnabled), 430 ComSafeArrayAsInParam(aFinalValues))); 430 ComSafeArrayAsInParam(aFinalValues), 431 ComSafeArrayAsInParam(aExtraConfigValues))); 431 432 432 433 } // for (unsigned i = 0; i < cVirtualSystemDescriptions; ++i) -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxImportAppliance.cpp
r16662 r16668 128 128 129 129 virtual void restoreDefaults() {} 130 virtual void putBack (QVector< QString>& aFinalValues, QVector<BOOL>& aFinalStates)130 virtual void putBack (QVector<BOOL>& aFinalStates, QVector<QString>& aFinalValues, QVector<QString>& aFinalExtraValues) 131 131 { 132 132 for (int i = 0; i < childCount(); ++i) 133 child (i)->putBack (aFinal Values, aFinalStates);133 child (i)->putBack (aFinalStates, aFinalValues, aFinalExtraValues); 134 134 } 135 135 … … 162 162 } 163 163 164 virtual void putBack (QVector< QString>& aFinalValues, QVector<BOOL>& aFinalStates)164 virtual void putBack (QVector<BOOL>& aFinalStates, QVector<QString>& aFinalValues, QVector<QString>& aFinalExtraValues) 165 165 { 166 166 /* Resize the vectors */ 167 167 unsigned long count = mDesc.GetCount(); 168 aFinalStates.resize (count); 168 169 aFinalValues.resize (count); 169 aFinal States.resize (count);170 aFinalExtraValues.resize (count); 170 171 /* Recursively fill the vectors */ 171 ModelItem::putBack (aFinal Values, aFinalStates);172 ModelItem::putBack (aFinalStates, aFinalValues, aFinalExtraValues); 172 173 /* Set all final values at once */ 173 mDesc.SetFinalValues (aFinalStates, aFinalValues );174 mDesc.SetFinalValues (aFinalStates, aFinalValues, aFinalExtraValues); 174 175 } 175 176 … … 202 203 {} 203 204 204 virtual void putBack (QVector<QString>& aFinalValues, QVector<BOOL>& aFinalStates) 205 { 205 virtual void putBack (QVector<BOOL>& aFinalStates, QVector<QString>& aFinalValues, QVector<QString>& aFinalExtraValues) 206 { 207 aFinalStates[mNumber] = mCheckState == Qt::Checked; 206 208 aFinalValues[mNumber] = mConfigValue; 207 aFinal States[mNumber] = mCheckState == Qt::Checked;208 ModelItem::putBack (aFinal Values, aFinalStates);209 aFinalExtraValues[mNumber] = mExtraConfigValue; 210 ModelItem::putBack (aFinalStates, aFinalValues, aFinalExtraValues); 209 211 } 210 212 … … 927 929 void VirtualSystemModel::putBack() 928 930 { 929 QVector<QString> v1; 930 QVector<BOOL> v2; 931 mRootItem->putBack (v1, v2); 931 QVector<BOOL> v1; 932 QVector<QString> v2; 933 QVector<QString> v3; 934 mRootItem->putBack (v1, v2, v3); 932 935 } 933 936
Note:
See TracChangeset
for help on using the changeset viewer.