Changeset 86739 in vbox
- Timestamp:
- Oct 28, 2020 4:02:34 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 141130
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserAbstractModel.cpp
r86734 r86739 355 355 UICloudEntityKey::UICloudEntityKey(const QString &strProviderShortName /* = QString() */, 356 356 const QString &strProfileName /* = QString() */, 357 const Q String &strMachineName /* = QString() */)357 const QUuid &uMachineId /* = QUuid() */) 358 358 : m_strProviderShortName(strProviderShortName) 359 359 , m_strProfileName(strProfileName) 360 , m_ strMachineName(strMachineName)360 , m_uMachineId(uMachineId) 361 361 { 362 362 } … … 365 365 : m_strProviderShortName(another.m_strProviderShortName) 366 366 , m_strProfileName(another.m_strProfileName) 367 , m_ strMachineName(another.m_strMachineName)367 , m_uMachineId(another.m_uMachineId) 368 368 { 369 369 } … … 374 374 && m_strProviderShortName == another.m_strProviderShortName 375 375 && m_strProfileName == another.m_strProfileName 376 && m_ strProfileName == another.m_strProfileName376 && m_uMachineId == another.m_uMachineId 377 377 ; 378 378 } … … 387 387 return strResult; 388 388 strResult += QString("/%1").arg(m_strProfileName); 389 if (m_ strMachineName.isEmpty())389 if (m_uMachineId.isNull()) 390 390 return strResult; 391 strResult += QString("/%1").arg(m_ strMachineName);391 strResult += QString("/%1").arg(m_uMachineId.toString()); 392 392 return strResult; 393 393 } -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserAbstractModel.h
r86734 r86739 47 47 * @param strProviderShortName Brings provider short name. 48 48 * @param strProfileName Brings profile name. 49 * @param strMachineName Brings machine name. */49 * @param uMachineId Brings machine id. */ 50 50 UICloudEntityKey(const QString &strProviderShortName = QString(), 51 51 const QString &strProfileName = QString(), 52 const Q String &strMachineName = QString());52 const QUuid &uMachineId = QUuid()); 53 53 /** Constructs cloud entity key on the basis of @a another one. */ 54 54 UICloudEntityKey(const UICloudEntityKey &another); … … 64 64 /** Holds profile name. */ 65 65 QString m_strProfileName; 66 /** Holds machine name. */67 Q String m_strMachineName;66 /** Holds machine id. */ 67 QUuid m_uMachineId; 68 68 }; 69 69
Note:
See TracChangeset
for help on using the changeset viewer.