summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@digia.com>2013-10-04 00:19:56 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-11-06 08:34:34 +0100
commit49a3c87175b0b9261c8c715315f3913b410f248d (patch)
tree1b18abefdf021b02ab30b56c775c98ddf1e08654 /src
parent569dec8e78030689740b2ff99c071862aa9abaaa (diff)
Remove two unused functions from QAccessibleTabBar
Change-Id: Ib3296a11b1bb9656f2b0c14106ea09f529311ccf Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/accessible/widgets/complexwidgets.cpp35
-rw-r--r--src/plugins/accessible/widgets/complexwidgets.h3
2 files changed, 0 insertions, 38 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
diff --git a/src/plugins/accessible/widgets/complexwidgets.h b/src/plugins/accessible/widgets/complexwidgets.h
index 164bc5b6d9..00186282f3 100644
--- a/src/plugins/accessible/widgets/complexwidgets.h
+++ b/src/plugins/accessible/widgets/complexwidgets.h
@@ -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;