summaryrefslogtreecommitdiffstats
path: root/GroupView.h
diff options
context:
space:
mode:
Diffstat (limited to 'GroupView.h')
-rw-r--r--GroupView.h36
1 files changed, 35 insertions, 1 deletions
diff --git a/GroupView.h b/GroupView.h
index 6d55a462..bf911794 100644
--- a/GroupView.h
+++ b/GroupView.h
@@ -15,7 +15,7 @@ struct CategorizedViewRoles
struct Group;
-class GroupView : public QListView
+class GroupView : public QAbstractItemView
{
Q_OBJECT
@@ -28,6 +28,40 @@ public:
void setSelection(const QRect &rect,
const QItemSelectionModel::SelectionFlags commands) override;
+ /*
+ * BS
+ */
+
+ virtual int horizontalOffset() const override
+ {
+ return 0;
+ }
+
+ virtual int verticalOffset() const override
+ {
+ return 0;
+ }
+
+ virtual void scrollTo(const QModelIndex &index, ScrollHint hint = EnsureVisible) override
+ {
+ return;
+ }
+
+ virtual QModelIndex moveCursor(CursorAction cursorAction, Qt::KeyboardModifiers modifiers)
+ override
+ {
+ return QModelIndex();
+ }
+
+ virtual QRegion visualRegionForSelection(const QItemSelection &) const override
+ {
+ return QRegion();
+ }
+
+ /*
+ * End of BS
+ */
+
protected
slots:
void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight,