From c6758e47c875ffb0fccdd1a4e478f6a9593dc657 Mon Sep 17 00:00:00 2001 From: Tannin Date: Wed, 18 Mar 2015 19:41:46 +0100 Subject: minor stuff (slight changes to the visual style, code refactorings, version increment) --- src/modlist.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/modlist.cpp') diff --git a/src/modlist.cpp b/src/modlist.cpp index 9ac2622d..863e85fc 100644 --- a/src/modlist.cpp +++ b/src/modlist.cpp @@ -347,9 +347,9 @@ QVariant ModList::data(const QModelIndex &modelIndex, int role) const } else if ((role == Qt::BackgroundRole) || (role == ViewMarkingScrollBar::DEFAULT_ROLE)) { if (m_Overwrite.find(modIndex) != m_Overwrite.end()) { - return QColor(0, 255, 0, 64); + return QColor(0, 255, 0, 32); } else if (m_Overwritten.find(modIndex) != m_Overwritten.end()) { - return QColor(255, 0, 0, 64); + return QColor(255, 0, 0, 32); } else { return QVariant(); } @@ -917,8 +917,9 @@ void ModList::notifyChange(int rowStart, int rowEnd) beginResetModel(); endResetModel(); } else { - if (rowEnd == -1) + if (rowEnd == -1) { rowEnd = rowStart; + } emit dataChanged(this->index(rowStart, 0), this->index(rowEnd, this->columnCount() - 1)); } } -- cgit v1.3.1