VirtualBox

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


Ignore:
Timestamp:
Oct 28, 2016 3:22:33 PM (8 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:6899: Accessibility support (step 104): Continuing with r111514.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/extensions
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QITreeView.cpp

    r64402 r64470  
    3333    : QTreeView(pParent)
    3434{
    35     /* Mark header hidden: */
    36     setHeaderHidden(true);
    37     /* Mark root hidden: */
    38     setRootIsDecorated(false);
     35    /* Prepare all: */
     36    prepare();
    3937}
    4038
     
    8886}
    8987
     88void QITreeView::prepare()
     89{
     90    /* Mark header hidden: */
     91    setHeaderHidden(true);
     92    /* Mark root hidden: */
     93    setRootIsDecorated(false);
     94}
     95
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QITreeView.h

    r64402 r64470  
    2424
    2525/** QTreeView subclass extending standard functionality. */
    26 class QITreeView: public QTreeView
     26class QITreeView : public QTreeView
    2727{
    2828    Q_OBJECT;
     
    5151    QITreeView(QWidget *pParent = 0);
    5252
     53    /** Returns child rectangle. */
     54    QRect visualRect(const QModelIndex &index) const { return QTreeView::visualRect(index); }
     55
    5356protected slots:
    5457
     
    7073    /** Handles mouse double-click @a pEvent. */
    7174    void mouseDoubleClickEvent(QMouseEvent *pEvent);
     75
     76private:
     77
     78    /** Prepares all. */
     79    void prepare();
    7280};
    7381
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