VirtualBox

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


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

FE/Qt: bugref:6899: Accessibility support (step 126): Move UIFilePathSelector onto QIComboBox rails.

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

Legend:

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

    r60953 r64539  
    6262
    6363UIFilePathSelector::UIFilePathSelector(QWidget *pParent /* = 0 */)
    64     : QIWithRetranslateUI<QComboBox>(pParent)
     64    : QIWithRetranslateUI<QIComboBox>(pParent)
    6565    , m_enmMode(Mode_Folder)
    6666    , m_strHomeDir(QDir::current().absolutePath())
     
    125125    if (m_fEditable)
    126126    {
    127         QComboBox::setEditable(true);
     127        QIComboBox::setEditable(true);
    128128        Assert(lineEdit());
    129129        connect(lineEdit(), SIGNAL(textEdited(const QString &)),
     
    142142                       this, SLOT(onTextEdited(const QString &)));
    143143        }
    144         QComboBox::setEditable(false);
     144        QIComboBox::setEditable(false);
    145145    }
    146146}
     
    161161{
    162162    /* Call to base-class: */
    163     QComboBox::setToolTip(strToolTip);
     163    QIComboBox::setToolTip(strToolTip);
    164164
    165165    /* Remember if the tool-tip overriden: */
     
    180180        QMetaObject::invokeMethod(this, "refreshText", Qt::QueuedConnection);
    181181
    182     return QIWithRetranslateUI<QComboBox>::eventFilter(pObject, pEvent);
     182    return QIWithRetranslateUI<QIComboBox>::eventFilter(pObject, pEvent);
    183183}
    184184
    185185void UIFilePathSelector::resizeEvent(QResizeEvent *pEvent)
    186186{
    187     QIWithRetranslateUI<QComboBox>::resizeEvent(pEvent);
     187    QIWithRetranslateUI<QIComboBox>::resizeEvent(pEvent);
    188188    refreshText();
    189189}
     
    200200            refreshText();
    201201    }
    202     QIWithRetranslateUI<QComboBox>::focusInEvent(pEvent);
     202    QIWithRetranslateUI<QIComboBox>::focusInEvent(pEvent);
    203203}
    204204
     
    210210        refreshText();
    211211    }
    212     QIWithRetranslateUI<QComboBox>::focusOutEvent(pEvent);
     212    QIWithRetranslateUI<QIComboBox>::focusOutEvent(pEvent);
    213213}
    214214
     
    487487        /* Set the tool-tip: */
    488488        if (!m_fToolTipOverriden)
    489             QComboBox::setToolTip(m_strNoneToolTipFocused);
     489            QIComboBox::setToolTip(m_strNoneToolTipFocused);
    490490        setItemData(PathId, toolTip(), Qt::ToolTipRole);
    491491
     
    517517            /* Set the tool-tip: */
    518518            if (!m_fToolTipOverriden)
    519                 QComboBox::setToolTip(m_strNoneToolTip);
     519                QIComboBox::setToolTip(m_strNoneToolTip);
    520520            setItemData(PathId, toolTip(), Qt::ToolTipRole);
    521521        }
     
    537537        /* Set the tool-tip: */
    538538        if (!m_fToolTipOverriden)
    539             QComboBox::setToolTip(fullPath());
     539            QIComboBox::setToolTip(fullPath());
    540540        setItemData(PathId, toolTip(), Qt::ToolTipRole);
    541541    }
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIFilePathSelector.h

    r60928 r64539  
    1919#define ___UIFilePathSelector_h___
    2020
    21 /* Qt includes: */
    22 #include <QComboBox>
    23 
    2421/* GUI includes: */
     22#include "QIComboBox.h"
    2523#include "QIWithRetranslateUI.h"
    2624
     
    3331
    3432
    35 /** QComboBox extension providing GUI with
     33/** QIComboBox extension providing GUI with
    3634  * possibility to choose/reflect file/folder path. */
    37 class UIFilePathSelector: public QIWithRetranslateUI<QComboBox>
     35class UIFilePathSelector: public QIWithRetranslateUI<QIComboBox>
    3836{
    3937    Q_OBJECT;
     
    6260    };
    6361
    64     /** Constructs file-path selector passing @a pParent to QComboBox base-class. */
     62    /** Constructs file-path selector passing @a pParent to QIComboBox base-class. */
    6563    UIFilePathSelector(QWidget *pParent = 0);
    6664
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