forked from qt-creator/qt-creator
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:
@@ -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");
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user