From 2584366f6e56b1f7052fa6f6d992fe0cac47ef5e Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Tue, 29 Nov 2016 17:14:31 +0100 Subject: [PATCH] Todo: Simplify code Qt::ForgroundRole and Qt::TextColorRole are aliases for the same thing Change-Id: I5d5e9ad562a7308988ba3bc402ef8b81872825b8 Reviewed-by: Eike Ziller --- src/plugins/todo/todoitemsmodel.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/plugins/todo/todoitemsmodel.cpp b/src/plugins/todo/todoitemsmodel.cpp index f9f3273092b..ebcfde810c1 100644 --- a/src/plugins/todo/todoitemsmodel.cpp +++ b/src/plugins/todo/todoitemsmodel.cpp @@ -84,8 +84,6 @@ QVariant TodoItemsModel::data(const QModelIndex &index, int role) const return item.color; if (role == Qt::TextColorRole) return creatorTheme()->color(Theme::TodoItemTextColor); - if (role == Qt::ForegroundRole) - return creatorTheme()->color(Theme::TodoItemTextColor); switch (index.column()) {