summaryrefslogtreecommitdiff
path: root/src/downloadlistwidget.cpp
diff options
context:
space:
mode:
authorKrzysztof Starecki <krzysztof.starecki@gmail.com>2018-12-31 20:29:03 +0100
committerKrzysztof Starecki <krzysztof.starecki@gmail.com>2018-12-31 20:29:03 +0100
commitfd6345cd4e49a135dd833e8567cb5bbe6887ebb9 (patch)
tree12027bdf3c766e1ec2ec8dbbd4b6763b8f31d106 /src/downloadlistwidget.cpp
parentf3ee7a0566a92037223c8528340d697a6ef2499e (diff)
Add 'download meta information' support to download tab
Diffstat (limited to 'src/downloadlistwidget.cpp')
-rw-r--r--src/downloadlistwidget.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/downloadlistwidget.cpp b/src/downloadlistwidget.cpp
index f69f9e9f..6c7447c8 100644
--- a/src/downloadlistwidget.cpp
+++ b/src/downloadlistwidget.cpp
@@ -84,6 +84,16 @@ void DownloadListWidget::setManager(DownloadManager *manager)
m_Manager = manager;
}
+void DownloadListWidget::setSourceModel(DownloadList *sourceModel)
+{
+ m_SourceModel = sourceModel;
+}
+
+void DownloadListWidget::setMetaDisplay(bool metaDisplay)
+{
+ m_SourceModel->setMetaDisplay(metaDisplay);
+}
+
void DownloadListWidget::onDoubleClick(const QModelIndex &index)
{
QModelIndex sourceIndex = qobject_cast<QSortFilterProxyModel*>(model())->mapToSource(index);