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