VirtualBox

Changeset 105551 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Jul 31, 2024 5:26:04 PM (7 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10665: New VM wizard: Make sure UIWizardNewVMSummaryPage tree-view has proper item text() containing cumulative info from all the columns, not just 1st one.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMSummaryPage.cpp

    r105521 r105551  
    6262    virtual int childCount() const RT_OVERRIDE RT_FINAL;
    6363    virtual QString text() const RT_OVERRIDE RT_FINAL;
     64    const QString &name() const;
    6465    const QVariant &data() const;
    6566    const QIcon &icon() const;
     
    177178}
    178179
    179 
    180180QString UIWizardNewVMSummaryItem::text() const
     181{
     182    return   m_data.isValid()
     183           ? tr("%1: %2", "col.1 text: col.2 text").arg(m_strText, m_data.toString())
     184           : tr("%1", "col.1 text").arg(m_strText);
     185}
     186
     187const QString &UIWizardNewVMSummaryItem::name() const
    181188{
    182189    return m_strText;
     
    245252        {
    246253            case 0:
    247                 return pItem->text();
     254                return pItem->name();
    248255                break;
    249256            case 1:
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette