kget
torrentfilelistmodel.cpp
Go to the documentation of this file.
37 TorrentFileListModel::TorrentFileListModel(bt::TorrentInterface* tc,DeselectMode mode,QObject* parent)
62 QVariant TorrentFileListModel::headerData(int section, Qt::Orientation orientation,int role) const
284 void TorrentFileListModel::changePriority(const QModelIndexList & indexes,bt::Priority newpriority)
bool hasIndex(int row, int column, const QModelIndex &parent) const
virtual QVariant data(const QModelIndex &index, int role) const
Definition: torrentfilelistmodel.cpp:76
virtual int columnCount(const QModelIndex &parent) const
Definition: torrentfilelistmodel.cpp:54
virtual bt::TorrentFileInterface * indexToFile(const QModelIndex &idx)
Convert a model index to a file.
Definition: torrentfilelistmodel.cpp:260
virtual bool setData(const QModelIndex &index, const QVariant &value, int role)
Definition: torrentfilelistmodel.cpp:157
virtual void changePriority(const QModelIndexList &indexes, bt::Priority newpriority)
Change the priority of a bunch of items.
Definition: torrentfilelistmodel.cpp:284
bool isValid() const
virtual QVariant headerData(int section, Qt::Orientation orientation, int role) const
Definition: torrentfilelistmodel.cpp:62
int toInt(bool *ok) const
void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
virtual int rowCount(const QModelIndex &parent) const
Definition: torrentfilelistmodel.cpp:46
bool isEmpty() const
virtual void invertCheck()
Invert the check of each file of the torrent.
Definition: torrentfilelistmodel.cpp:226
int row() const
virtual QString dirPath(const QModelIndex &idx)
Get the path of a directory (root directory not included)
Definition: torrentfilelistmodel.cpp:272
QModelIndex createIndex(int row, int column, void *ptr) const
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const
Definition: torrentfilelistmodel.cpp:146
void checkStateChanged()
Emitted whenever one or more items changes check state.
int column() const
QObject * parent() const
virtual bt::Uint64 bytesToDownload()
Calculate the number of bytes to download.
Definition: torrentfilelistmodel.cpp:243
virtual ~TorrentFileListModel()
Definition: torrentfilelistmodel.cpp:43
QString toString() const
Definition: torrentfilemodel.h:39
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:28:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:28:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.