VirtualBox

Changeset 64490 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Oct 31, 2016 2:16:38 PM (8 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:6899: Accessibility support (step 114): Settings: Storage page: Connect root-item to tree-view, which is required for accessibility interface.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.cpp

    r64489 r64490  
    447447
    448448/* Abstract Item */
     449AbstractItem::AbstractItem(QITreeView *pParent)
     450    : QITreeViewItem(pParent)
     451    , m_pParentItem(0)
     452    , mId(QUuid::createUuid())
     453{
     454    if (m_pParentItem)
     455        m_pParentItem->addChild(this);
     456}
     457
    449458AbstractItem::AbstractItem(AbstractItem *pParentItem)
    450459    : QITreeViewItem(pParentItem)
     
    483492
    484493/* Root Item */
    485 RootItem::RootItem()
    486     : AbstractItem (0)
     494RootItem::RootItem(QITreeView *pParent)
     495    : AbstractItem(pParent)
    487496{
    488497}
     
    10191028
    10201029/* Storage model */
    1021 StorageModel::StorageModel (QObject *aParent)
    1022     : QAbstractItemModel (aParent)
    1023     , mRootItem (new RootItem)
    1024     , mToolTipType (DefaultToolTip)
     1030StorageModel::StorageModel(QITreeView *pParent)
     1031    : QAbstractItemModel(pParent)
     1032    , mRootItem(new RootItem(pParent))
     1033    , mToolTipType(DefaultToolTip)
    10251034    , m_chipsetType(KChipsetType_PIIX3)
    10261035    , m_configurationAccessLevel(ConfigurationAccessLevel_Null)
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.h

    r64489 r64490  
    260260    };
    261261
     262    AbstractItem(QITreeView *pParent = 0);
    262263    AbstractItem(AbstractItem *pParentItem = 0);
    263264    virtual ~AbstractItem();
     
    292293public:
    293294
    294     RootItem();
     295    RootItem(QITreeView *pParent);
    295296   ~RootItem();
    296297
     
    516517    };
    517518
    518     StorageModel (QObject *aParent);
     519    StorageModel(QITreeView *pParent);
    519520   ~StorageModel();
    520521
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