kget
torrentfilelistmodel.h
Go to the documentation of this file.
virtual QVariant data(const QModelIndex &index, int role) const
Definition: torrentfilelistmodel.cpp:76
Model for displaying file trees of a torrent.
Definition: torrentfilelistmodel.h:33
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
virtual QVariant headerData(int section, Qt::Orientation orientation, int role) const
Definition: torrentfilelistmodel.cpp:62
virtual int rowCount(const QModelIndex &parent) const
Definition: torrentfilelistmodel.cpp:46
virtual void invertCheck()
Invert the check of each file of the torrent.
Definition: torrentfilelistmodel.cpp:226
virtual QString dirPath(const QModelIndex &idx)
Get the path of a directory (root directory not included)
Definition: torrentfilelistmodel.cpp:272
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const
Definition: torrentfilelistmodel.cpp:146
TorrentFileListModel(bt::TorrentInterface *tc, DeselectMode mode, QObject *parent)
Definition: torrentfilelistmodel.cpp:37
QObject * parent() const
virtual bt::Uint64 bytesToDownload()
Calculate the number of bytes to download.
Definition: torrentfilelistmodel.cpp:243
virtual ~TorrentFileListModel()
Definition: torrentfilelistmodel.cpp:43
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.