Todo: Better naming of enum value.

It's not the last, it's the count.

Change-Id: Ib739c34b952af022f83fa0c2d547154d70641456
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
Eike Ziller
2014-07-15 14:33:19 +02:00
parent d901572093
commit 0c00f44a2d
2 changed files with 2 additions and 2 deletions

View File

@@ -59,7 +59,7 @@ enum OutputColumnIndex {
OUTPUT_COLUMN_TEXT, OUTPUT_COLUMN_TEXT,
OUTPUT_COLUMN_FILE, OUTPUT_COLUMN_FILE,
OUTPUT_COLUMN_LINE, OUTPUT_COLUMN_LINE,
OUTPUT_COLUMN_LAST OUTPUT_COLUMN_COUNT
}; };
const char OUTPUT_COLUMN_TEXT_TITLE[] = QT_TRANSLATE_NOOP("Todo::Internal::TodoItemsModel", "Description"); const char OUTPUT_COLUMN_TEXT_TITLE[] = QT_TRANSLATE_NOOP("Todo::Internal::TodoItemsModel", "Description");

View File

@@ -70,7 +70,7 @@ int TodoItemsModel::columnCount(const QModelIndex &parent) const
{ {
Q_UNUSED(parent) Q_UNUSED(parent)
return Constants::OUTPUT_COLUMN_LAST; return Constants::OUTPUT_COLUMN_COUNT;
} }
QVariant TodoItemsModel::data(const QModelIndex &index, int role) const QVariant TodoItemsModel::data(const QModelIndex &index, int role) const