Changeset 84019 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Apr 27, 2020 4:47:43 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 137589
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDetailsGenerator.cpp
r83747 r84019 160 160 if (!comIteratedValue.GetVisible()) 161 161 continue; 162 /* Handle possible value type: */ 162 163 /* Acquire label: */ 164 const QString strLabel = comIteratedValue.GetLabel(); 165 166 /* Handle possible value types: */ 167 QString strValue; 163 168 switch (comIteratedValue.GetType()) 164 169 { … … 167 172 CBooleanFormValue comValue(comIteratedValue); 168 173 const bool fBool = comValue.GetSelected(); 169 table << UITextTableLine(comValue.GetLabel(), 170 fBool ? QApplication::translate("UIDetails", "Enabled", "details (cloud value)") 171 : QApplication::translate("UIDetails", "Disabled", "details (cloud value)")); 174 strValue = fBool ? QApplication::translate("UIDetails", "Enabled", "details (cloud value)") 175 : QApplication::translate("UIDetails", "Disabled", "details (cloud value)"); 172 176 break; 173 177 } … … 175 179 { 176 180 CStringFormValue comValue(comIteratedValue); 177 table << UITextTableLine(comValue.GetLabel(), comValue.GetString());181 strValue = comValue.GetString(); 178 182 break; 179 183 } … … 184 188 const QVector<QString> possibleValues = comValue.GetValues(); 185 189 const int iCurrentIndex = comValue.GetSelectedIndex(); 186 table << UITextTableLine(comValue.GetLabel(), possibleValues.at(iCurrentIndex));190 strValue = possibleValues.value(iCurrentIndex); 187 191 break; 188 192 } … … 190 194 { 191 195 CRangedIntegerFormValue comValue(comIteratedValue); 192 table << UITextTableLine(comValue.GetLabel(), 193 QString("%1 %2").arg(comValue.GetInteger()).arg(comValue.GetSuffix())); 196 strValue = QString("%1 %2") 197 .arg(comValue.GetInteger()) 198 .arg(QApplication::translate("UICommon", comValue.GetSuffix().toUtf8().constData())); 194 199 break; 195 200 } … … 197 202 break; 198 203 } 204 205 /* Generate table string: */ 206 table << UITextTableLine(strLabel, strValue); 199 207 } 200 208 }
Note:
See TracChangeset
for help on using the changeset viewer.