diff options
Diffstat (limited to 'client-qt/udm-client-qt/downloads_model.h')
-rw-r--r-- | client-qt/udm-client-qt/downloads_model.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/client-qt/udm-client-qt/downloads_model.h b/client-qt/udm-client-qt/downloads_model.h index 08172d5..519d8ba 100644 --- a/client-qt/udm-client-qt/downloads_model.h +++ b/client-qt/udm-client-qt/downloads_model.h @@ -31,12 +31,21 @@ class downloads_model : public QAbstractTableModel Q_OBJECT public: downloads_model(std::vector<download> &downloads, QObject *parent = 0); + int rowCount(const QModelIndex &parent = QModelIndex()) const; + int columnCount ( const QModelIndex & parent = QModelIndex() ) const; + QVariant data(const QModelIndex &index, int role) const; QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const; - int columnCount ( const QModelIndex & parent = QModelIndex() ) const; + + QModelIndex index ( int row, int column, const QModelIndex & parent = QModelIndex() ) const; + QModelIndex parent ( const QModelIndex & index ) const; + + bool insertRows(int position, int rows, const QModelIndex &index = QModelIndex()); bool removeRows(int position, int rows, const QModelIndex &index = QModelIndex()); + + void sort ( int column, Qt::SortOrder order = Qt::AscendingOrder ); |