summaryrefslogtreecommitdiff
path: root/src/downloadlistwidget.cpp
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2013-03-29 10:26:19 +0100
committerTannin <devnull@localhost>2013-03-29 10:26:19 +0100
commitd9a6dbb916236531a96b9b84b06e7be666c05d56 (patch)
tree2d143e96ae60a27738a16b310c712145d4a0aa55 /src/downloadlistwidget.cpp
parentf682f82db5d8ba514e927c9d7e88107348d5c32a (diff)
parenta47d9717884953b18b4b29e596d3e5a7d766e56e (diff)
Merge
Diffstat (limited to 'src/downloadlistwidget.cpp')
-rw-r--r--src/downloadlistwidget.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/downloadlistwidget.cpp b/src/downloadlistwidget.cpp
index 8c6a8a4e..18276b0a 100644
--- a/src/downloadlistwidget.cpp
+++ b/src/downloadlistwidget.cpp
@@ -71,7 +71,7 @@ void DownloadListWidgetDelegate::paint(QPainter *painter, const QStyleOptionView
}
m_NameLabel->setText(name);
DownloadManager::DownloadState state = m_Manager->getState(downloadIndex);
- if (state == DownloadManager::STATE_PAUSED) {
+ if ((state == DownloadManager::STATE_PAUSED) || (state == DownloadManager::STATE_ERROR)) {
QPalette labelPalette;
m_InstallLabel->setVisible(true);
m_Progress->setVisible(false);
@@ -82,6 +82,12 @@ void DownloadListWidgetDelegate::paint(QPainter *painter, const QStyleOptionView
#endif
labelPalette.setColor(QPalette::WindowText, Qt::darkRed);
m_InstallLabel->setPalette(labelPalette);
+ } else if (state == DownloadManager::STATE_FETCHINGMODINFO) {
+ m_InstallLabel->setText(tr("Fetching Info 1"));
+ m_Progress->setVisible(false);
+ } else if (state == DownloadManager::STATE_FETCHINGFILEINFO) {
+ m_InstallLabel->setText(tr("Fetching Info 2"));
+ m_Progress->setVisible(false);
} else if (state >= DownloadManager::STATE_READY) {
QPalette labelPalette;
m_InstallLabel->setVisible(true);
@@ -231,7 +237,7 @@ bool DownloadListWidgetDelegate::editorEvent(QEvent *event, QAbstractItemModel *
} else if (state == DownloadManager::STATE_DOWNLOADING){
menu.addAction(tr("Cancel"), this, SLOT(issueCancel()));
menu.addAction(tr("Pause"), this, SLOT(issuePause()));
- } else if (state == DownloadManager::STATE_PAUSED) {
+ } else if ((state == DownloadManager::STATE_PAUSED) || (state == DownloadManager::STATE_ERROR)) {
menu.addAction(tr("Remove"), this, SLOT(issueDelete()));
menu.addAction(tr("Resume"), this, SLOT(issueResume()));
}