blob: b7ab0f30040ac376a93bd33a85971d3315e2cc59 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#ifndef ITEMRECYCLINGLISTVIEW_H
#define ITEMRECYCLINGLISTVIEW_H
#include "abstractitemview.h"
class ItemRecyclingListView : public AbstractItemView
{
public:
ItemRecyclingListView(QGraphicsWidget * parent = nullptr);
virtual ~ItemRecyclingListView();
void setCurrentRow(const int row);
int rows() const;
virtual bool listItemCaching() const = 0;
virtual void setListItemCaching(bool enabled) = 0;
protected:
void rowsInserted(const QModelIndex &parent, int start, int end);
void rowsRemoved(const QModelIndex &parent,int start,int end);
private:
QModelIndex m_rootIndex;
};
#endif // ITEMRECYCLINGLISTVIEW_H
|