From 0c00f44a2d1683926f72a6fcd5eba63f3ed9db8b Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Tue, 15 Jul 2014 14:33:19 +0200 Subject: [PATCH] Todo: Better naming of enum value. It's not the last, it's the count. Change-Id: Ib739c34b952af022f83fa0c2d547154d70641456 Reviewed-by: Nikolai Kosjar --- src/plugins/todo/constants.h | 2 +- src/plugins/todo/todoitemsmodel.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/todo/constants.h b/src/plugins/todo/constants.h index c3c488f0e8b..c25f4b877cf 100644 --- a/src/plugins/todo/constants.h +++ b/src/plugins/todo/constants.h @@ -59,7 +59,7 @@ enum OutputColumnIndex { OUTPUT_COLUMN_TEXT, OUTPUT_COLUMN_FILE, OUTPUT_COLUMN_LINE, - OUTPUT_COLUMN_LAST + OUTPUT_COLUMN_COUNT }; const char OUTPUT_COLUMN_TEXT_TITLE[] = QT_TRANSLATE_NOOP("Todo::Internal::TodoItemsModel", "Description"); diff --git a/src/plugins/todo/todoitemsmodel.cpp b/src/plugins/todo/todoitemsmodel.cpp index 6fdca97d5de..4128fadfd8f 100644 --- a/src/plugins/todo/todoitemsmodel.cpp +++ b/src/plugins/todo/todoitemsmodel.cpp @@ -70,7 +70,7 @@ int TodoItemsModel::columnCount(const QModelIndex &parent) const { Q_UNUSED(parent) - return Constants::OUTPUT_COLUMN_LAST; + return Constants::OUTPUT_COLUMN_COUNT; } QVariant TodoItemsModel::data(const QModelIndex &index, int role) const