summaryrefslogtreecommitdiffstats
path: root/src/widgets
diff options
context:
space:
mode:
authorStephen Kelly <stephen.kelly@kdab.com>2011-11-10 13:24:33 +0100
committerQt by Nokia <qt-info@nokia.com>2011-11-11 12:24:48 +0100
commit0b293e4afc3a9d25336e862509a46ad024dccf04 (patch)
treeeaca788d85f920d4b77dfd94e3cc55c95e15d054 /src/widgets
parentaf914694d81317b4a7bf0804d9d34a1f3bf2cf48 (diff)
Make this API virtual to make selection proxying possible.
Change-Id: Ie93c8b38c59d347026a68eae03687d9017b3d048 Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/itemviews/qitemselectionmodel.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/itemviews/qitemselectionmodel.h b/src/widgets/itemviews/qitemselectionmodel.h
index 5a117c8a1c..cfa71d0ef2 100644
--- a/src/widgets/itemviews/qitemselectionmodel.h
+++ b/src/widgets/itemviews/qitemselectionmodel.h
@@ -195,7 +195,7 @@ public:
const QAbstractItemModel *model() const;
public Q_SLOTS:
- void setCurrentIndex(const QModelIndex &index, QItemSelectionModel::SelectionFlags command);
+ virtual void setCurrentIndex(const QModelIndex &index, QItemSelectionModel::SelectionFlags command);
virtual void select(const QModelIndex &index, QItemSelectionModel::SelectionFlags command);
virtual void select(const QItemSelection &selection, QItemSelectionModel::SelectionFlags command);
virtual void clear();