summaryrefslogtreecommitdiffstats
path: root/src/plugins/accessible/widgets/complexwidgets.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/accessible/widgets/complexwidgets.cpp')
-rw-r--r--src/plugins/accessible/widgets/complexwidgets.cpp35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/plugins/accessible/widgets/complexwidgets.cpp b/src/plugins/accessible/widgets/complexwidgets.cpp
index c0d62ccc16..b1df6d816a 100644
--- a/src/plugins/accessible/widgets/complexwidgets.cpp
+++ b/src/plugins/accessible/widgets/complexwidgets.cpp
@@ -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