VirtualBox

Ignore:
Timestamp:
Dec 6, 2016 5:36:34 PM (8 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:6899: Accessibility support (step 151): Extending QITreeViewItem sub-classes with properly accessible text.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIApplianceEditorWidget.cpp

    r64795 r64798  
    265265QString UIApplianceModelItem::text() const
    266266{
    267     return data(ApplianceViewSection_Description, Qt::DisplayRole).toString();
     267    switch (type())
     268    {
     269        case ApplianceModelItemType_VirtualSystem:
     270            return tr("%1", "col.1 text")
     271                     .arg(data(ApplianceViewSection_Description, Qt::DisplayRole).toString());
     272        case ApplianceModelItemType_VirtualHardware:
     273            return tr("%1: %2", "col.1 text: col.2 text")
     274                     .arg(data(ApplianceViewSection_Description, Qt::DisplayRole).toString())
     275                     .arg(data(ApplianceViewSection_ConfigValue, Qt::DisplayRole).toString());
     276        default:
     277            break;
     278    }
     279    return QString();
    268280}
    269281
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