kget
fileview.cpp
Go to the documentation of this file.
66 open_action = context_menu->addAction(KIcon("document-open"),i18nc("Open file", "Open"),this,SLOT(open()));
68 download_first_action = context_menu->addAction(i18n("Download first"),this,SLOT(downloadFirst()));
69 download_normal_action = context_menu->addAction(i18n("Download normally"),this,SLOT(downloadNormal()));
77 collapse_action = context_menu->addAction(i18n("Collapse Folder Tree"),this,SLOT(collapseTree()));
355 new KRun(KUrl(curr_tc->getDataDir() + model->dirPath(proxy_model->mapToSource(index))), 0, 0, true, true);
void customContextMenuRequested(const QPoint &pos)
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const
void invalidate()
void doubleClicked(const QModelIndex &index)
void setSortRole(int role)
void setAlternatingRowColors(bool enable)
void setSelectionMode(QAbstractItemView::SelectionMode mode)
QItemSelectionModel * selectionModel() const
void filePercentageChanged(bt::TorrentFileInterface *file, float percentage)
Definition: fileview.cpp:448
virtual void setSourceModel(QAbstractItemModel *sourceModel)
bool restoreState(const QByteArray &state)
bool isNull() const
int sortIndicatorSection() const
QPoint mapToGlobal(const QPoint &pos) const
void setUniformRowHeights(bool uniform)
void scheduleDelayedItemsLayout()
void sortByColumn(int column, Qt::SortOrder order)
void setSelectionBehavior(QAbstractItemView::SelectionBehavior behavior)
void setShowListOfFiles(bool on, KSharedConfigPtr cfg)
Definition: fileview.cpp:408
virtual int rowCount(const QModelIndex &parent) const
void filePreviewChanged(bt::TorrentFileInterface *file, bool preview)
Definition: fileview.cpp:454
bool isNull() const
void setExpanded(const QModelIndex &index, bool expanded)
virtual bool viewportEvent(QEvent *event)
void setEnabled(bool)
void executeDelayedItemsLayout()
QModelIndexList selectedRows(int column) const
Definition: iwfilelistmodel.h:35
Definition: iwfiletreemodel.h:35
iterator end()
virtual bool hasChildren(const QModelIndex &parent) const
void setContextMenuPolicy(Qt::ContextMenuPolicy policy)
void expandAll()
void setSortingEnabled(bool enable)
virtual QModelIndex mapToSource(const QModelIndex &proxyIndex) const
QByteArray fromBase64(const QByteArray &base64)
QByteArray saveState() const
Qt::SortOrder sortIndicatorOrder() const
virtual void setModel(QAbstractItemModel *model)
void changeTC(bt::TorrentInterface *tc, KSharedConfigPtr cfg)
Definition: fileview.cpp:94
void onTorrentRemoved(bt::TorrentInterface *tc)
Definition: fileview.cpp:403
iterator insert(const Key &key, const T &value)
QHeaderView * header() const
QByteArray toBase64() const
QAbstractItemModel * model() const
void setRootIsDecorated(bool show)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
int count(const Key &key) const
iterator find(const Key &key)
void setEnabled(bool)
const T value(const Key &key) const
int remove(const Key &key)
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.