diff options
| author | Tannin <devnull@localhost> | 2013-03-29 10:26:19 +0100 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2013-03-29 10:26:19 +0100 |
| commit | d9a6dbb916236531a96b9b84b06e7be666c05d56 (patch) | |
| tree | 2d143e96ae60a27738a16b310c712145d4a0aa55 /src/modlist.cpp | |
| parent | f682f82db5d8ba514e927c9d7e88107348d5c32a (diff) | |
| parent | a47d9717884953b18b4b29e596d3e5a7d766e56e (diff) | |
Merge
Diffstat (limited to 'src/modlist.cpp')
| -rw-r--r-- | src/modlist.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/modlist.cpp b/src/modlist.cpp index 06f468b1..2d681a0d 100644 --- a/src/modlist.cpp +++ b/src/modlist.cpp @@ -51,7 +51,6 @@ ModList::ModList(QObject *parent) : QAbstractItemModel(parent), m_Profile(NULL), m_Modified(false), m_FontMetrics(QFont()) { -// setSupportedDragActions(Qt::MoveAction); } @@ -311,8 +310,7 @@ bool ModList::renameMod(int index, const QString &newName) emit modRenamed(oldName, newName); // invalidate the currently displayed state of this list -#pragma message("why is this necessary? It unselects the current selection") - notifyChange(-1); +// notifyChange(-1); return true; } @@ -331,7 +329,7 @@ bool ModList::setData(const QModelIndex &index, const QVariant &value, int role) m_Profile->setModEnabled(index.row(), enabled); m_Modified = true; - emit modlist_changed(index.row()); + emit modlist_changed(index, role); } return true; } else if (role == Qt::EditRole) { @@ -345,7 +343,7 @@ bool ModList::setData(const QModelIndex &index, const QVariant &value, int role) if (ok) { m_Profile->setModPriority(index.row(), newPriority); - emit modlist_changed(index.row()); + emit modlist_changed(index, role); return true; } else { return false; @@ -357,7 +355,7 @@ bool ModList::setData(const QModelIndex &index, const QVariant &value, int role) int newID = value.toInt(&ok); if (ok) { info->setNexusID(newID); - emit modlist_changed(index.row()); + emit modlist_changed(index, role); return true; } else { return false; @@ -616,7 +614,7 @@ QString ModList::getColumnName(int column) { switch (column) { case COL_FLAGS: return tr("Flags"); - case COL_NAME: return tr("Name"); + case COL_NAME: return tr("Mod Name"); case COL_VERSION: return tr("Version"); case COL_PRIORITY: return tr("Priority"); case COL_CATEGORY: return tr("Category"); |
