Remove two unused functions from QAccessibleTabBar

Change-Id: Ib3296a11b1bb9656f2b0c14106ea09f529311ccf
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
This commit is contained in:
Frederik Gladhorn 2013-10-04 00:19:56 +02:00 committed by The Qt Project
parent 569dec8e78
commit 49a3c87175
2 changed files with 0 additions and 38 deletions

View File

@ -221,41 +221,6 @@ QString QAccessibleTabBar::text(QAccessible::Text t) const
return QString();
}
/*!
Selects the item with index \a child if \a on is true; otherwise
unselects it. If \a extend is true and the selection mode is not
\c Single and there is an existing selection, the selection is
extended to include all the items from the existing selection up
to and including the item with index \a child. Returns \c true if a
selection was made or extended; otherwise returns \c false.
\sa selection(), clearSelection()
*/
bool QAccessibleTabBar::setSelected(int child, bool on, bool extend)
{
if (!child || !on || extend || child > tabBar()->count())
return false;
if (!tabBar()->isTabEnabled(child - 1))
return false;
tabBar()->setCurrentIndex(child - 1);
return true;
}
/*!
Returns a (possibly empty) list of indexes of the items selected
in the list box.
\sa setSelected(), clearSelection()
*/
QVector<int> QAccessibleTabBar::selection() const
{
QVector<int> array;
if (tabBar()->currentIndex() != -1)
array +=tabBar()->currentIndex() + 1;
return array;
}
#endif // QT_NO_TABBAR
#ifndef QT_NO_COMBOBOX

View File

@ -105,9 +105,6 @@ public:
int childCount() const Q_DECL_OVERRIDE;
QString text(QAccessible::Text t) const Q_DECL_OVERRIDE;
bool setSelected(int child, bool on, bool extend);
QVector<int> selection() const;
QAccessibleInterface* child(int index) const Q_DECL_OVERRIDE;
int indexOfChild(const QAccessibleInterface *child) const Q_DECL_OVERRIDE;