Commit 2584366f authored by Tobias Hunger's avatar Tobias Hunger

Todo: Simplify code

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

Change-Id: I5d5e9ad562a7308988ba3bc402ef8b81872825b8
Reviewed-by: Eike Ziller's avatarEike Ziller <>
parent b88e7ff6
......@@ -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()) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment