Todo: Simplify code

Qt::ForgroundRole and Qt::TextColorRole are aliases for the same thing

Change-Id: I5d5e9ad562a7308988ba3bc402ef8b81872825b8
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Tobias Hunger
2016-11-29 17:14:31 +01:00
parent b88e7ff6ae
commit 2584366f6e

View File

@@ -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()) {