Optimizations to TorrentContentModel

First step to address issue #24.
This commit is contained in:
Christophe Dumez
2012-08-26 15:00:37 +03:00
parent 5b1ee883b4
commit 232e112d84
5 changed files with 36 additions and 38 deletions

View File

@@ -80,18 +80,18 @@ public:
bool isFolder() const;
void appendChild(TorrentContentModelItem *item);
TorrentContentModelItem *child(int row);
TorrentContentModelItem* child(int row) const;
int childCount() const;
int columnCount() const;
QVariant data(int column) const;
int row() const;
TorrentContentModelItem *parent();
TorrentContentModelItem* parent() const;
void deleteAllChildren();
const QList<TorrentContentModelItem*>& children() const;
private:
TorrentContentModelItem *m_parentItem;
TorrentContentModelItem* m_parentItem;
FileType m_type;
QList<TorrentContentModelItem*> m_childItems;
QList<QVariant> m_itemData;