Changeset 86275 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Sep 24, 2020 8:04:03 PM (4 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDetailsGenerator.cpp
r86225 r86275 177 177 } 178 178 179 QString UIDetailsGenerator::generateFormValueInformation(const CFormValue &comFormValue )179 QString UIDetailsGenerator::generateFormValueInformation(const CFormValue &comFormValue, bool fFull /* = false */) 180 180 { 181 181 /* Handle possible form value types: */ … … 194 194 { 195 195 CStringFormValue comValue(comFormValue); 196 strResult = comValue.GetString(); 196 const QString strValue = comValue.GetString(); 197 const QString strClipboardValue = comValue.GetClipboardString(); 198 strResult = fFull && !strClipboardValue.isEmpty() ? strClipboardValue : strValue; 197 199 break; 198 200 } -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDetailsGenerator.h
r86225 r86275 39 39 SHARED_LIBRARY_STUFF UITextTable generateMachineInformationGeneral(CCloudMachine &comCloudMachine, 40 40 const UIExtraDataMetaDefs::DetailsElementOptionTypeGeneral &fOptions); 41 SHARED_LIBRARY_STUFF QString generateFormValueInformation(const CFormValue &comFormValue );41 SHARED_LIBRARY_STUFF QString generateFormValueInformation(const CFormValue &comFormValue, bool fFull = false); 42 42 43 43 SHARED_LIBRARY_STUFF UITextTable generateMachineInformationSystem(CMachine &comMachine, -
trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsElement.cpp
r86226 r86275 1404 1404 continue; 1405 1405 1406 /* Acquire resulting value in full and compressed form: */ 1407 const QString strIteratedResultFull = UIDetailsGenerator::generateFormValueInformation(comIteratedValue); 1408 const QString strIteratedResultShort = strIteratedResultFull.size() > 10 1409 && strIteratedResultFull.startsWith("ocid1.") 1410 ? QString("...%1").arg(strIteratedResultFull.right(10)) 1411 : strIteratedResultFull; 1406 /* Acquire resulting value in short and full form: */ 1407 const QString strIteratedResultShort = UIDetailsGenerator::generateFormValueInformation(comIteratedValue); 1408 const QString strIteratedResultFull = UIDetailsGenerator::generateFormValueInformation(comIteratedValue, true /* full */); 1412 1409 1413 1410 /* Add 'Copy' action: */
Note:
See TracChangeset
for help on using the changeset viewer.