diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-05-22 23:08:07 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-05-22 23:08:07 -0400 |
| commit | 3ef7c401d547d0ca1ace90a1132ad36e3e133eba (patch) | |
| tree | ddecde847da7a1c7c538efccee92741e68803ab5 | |
| parent | 77678b3765365e1ee5f440ffcd6f163d0cc3ae48 (diff) | |
download list: made all column left-aligned except for size
| -rw-r--r-- | src/downloadlist.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/downloadlist.cpp b/src/downloadlist.cpp index e7036234..5e698e0e 100644 --- a/src/downloadlist.cpp +++ b/src/downloadlist.cpp @@ -170,10 +170,10 @@ QVariant DownloadList::data(const QModelIndex &index, int role) const && m_Manager->isInfoIncomplete(index.row()))
return QIcon(":/MO/gui/warning_16");
} else if (role == Qt::TextAlignmentRole) {
- if (index.column() == COL_NAME)
- return QVariant(Qt::AlignVCenter | Qt::AlignLeft);
- else
+ if (index.column() == COL_SIZE)
return QVariant(Qt::AlignVCenter | Qt::AlignRight);
+ else
+ return QVariant(Qt::AlignVCenter | Qt::AlignLeft);
}
return QVariant();
}
|
