VirtualBox

Changeset 64538 in vbox for trunk


Ignore:
Timestamp:
Nov 3, 2016 4:24:26 PM (8 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:6899: Accessibility support (step 125): Extending QIComboBox with base-class signals.

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

Legend:

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

    r64522 r64538  
    196196}
    197197
    198 int     QIComboBox::currentIndex() const
     198int QIComboBox::currentIndex() const
    199199{
    200200    /* Redirect to combo-box: */
     
    304304        AssertPtrReturnVoid(m_pComboBox);
    305305        {
     306            /* Configure combo-box: */
     307            connect(m_pComboBox, SIGNAL(activated(int)), this, SIGNAL(activated(int)));
     308            connect(m_pComboBox, SIGNAL(activated(const QString &)), this, SIGNAL(activated(const QString &)));
     309            connect(m_pComboBox, SIGNAL(currentIndexChanged(int)), this, SIGNAL(currentIndexChanged(int)));
     310            connect(m_pComboBox, SIGNAL(currentIndexChanged(const QString &)), this, SIGNAL(currentIndexChanged(const QString &)));
     311            connect(m_pComboBox, SIGNAL(currentTextChanged(const QString &)), this, SIGNAL(currentTextChanged(const QString &)));
     312            connect(m_pComboBox, SIGNAL(editTextChanged(const QString &)), this, SIGNAL(editTextChanged(const QString &)));
     313            connect(m_pComboBox, SIGNAL(highlighted(int)), this, SIGNAL(highlighted(int)));
     314            connect(m_pComboBox, SIGNAL(highlighted(const QString &)), this, SIGNAL(highlighted(const QString &)));
    306315            /* Add combo-box into layout: */
    307316            pLayout->addWidget(m_pComboBox);
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIComboBox.h

    r64520 r64538  
    3232    /** Enumerates sub-element indexes for editable case. */
    3333    enum { SubElementEditable_Editor, SubElementEditable_Selector, SubElementEditable_Max };
     34
     35signals:
     36
     37    /** Notifies listeners about user chooses an item with @a iIndex in the combo-box. */
     38    void activated(int iIndex);
     39    /** Notifies listeners about user chooses an item with @a strText in the combo-box. */
     40    void activated(const QString &strText);
     41
     42    /** Notifies listeners about current item changed to item with @a iIndex. */
     43    void currentIndexChanged(int iIndex);
     44    /** Notifies listeners about current item changed to item with @a strText. */
     45    void currentIndexChanged(const QString &strText);
     46
     47    /** Notifies listeners about current combo-box text is changed to @a strText. */
     48    void currentTextChanged(const QString &strText);
     49    /** Notifies listeners about current combo-box editable text is changed to @a strText. */
     50    void editTextChanged(const QString &strText);
     51
     52    /** Notifies listeners about user highlighted an item with @a iIndex in the popup list-view. */
     53    void highlighted(int iIndex);
     54    /** Notifies listeners about user highlighted an item with @a strText in the popup list-view. */
     55    void highlighted(const QString &strText);
    3456
    3557public:
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