diff options
| author | Tannin <devnull@localhost> | 2015-03-18 19:41:46 +0100 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2015-03-18 19:41:46 +0100 |
| commit | c6758e47c875ffb0fccdd1a4e478f6a9593dc657 (patch) | |
| tree | 5d3331b4d431d4e0c42fc9625b2b72a53a4756b4 /src/modlist.cpp | |
| parent | 4a99cfe6ad0d5e68f0a8f6e1057babb7494a8c2d (diff) | |
minor stuff (slight changes to the visual style, code refactorings, version increment)
Diffstat (limited to 'src/modlist.cpp')
| -rw-r--r-- | src/modlist.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
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));
}
}
|
