forked from qt-creator/qt-creator
Make TODO plugin theme aware
Use the theme's colors by default and color the text rather than the background of items. Task-number: QTCREATORBUG-17532 Change-Id: I65a2d6da45ce7547b05463a2fb014f8230d0c336 Reviewed-by: Serhii Moroz <frost.asm@gmail.com> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -178,7 +178,7 @@ void TodoOutputPane::todoTreeViewClicked(const QModelIndex &index)
|
||||
item.text = index.sibling(row, Constants::OUTPUT_COLUMN_TEXT).data().toString();
|
||||
item.file = Utils::FileName::fromUserInput(index.sibling(row, Constants::OUTPUT_COLUMN_FILE).data().toString());
|
||||
item.line = index.sibling(row, Constants::OUTPUT_COLUMN_LINE).data().toInt();
|
||||
item.color = index.data(Qt::BackgroundColorRole).value<QColor>();
|
||||
item.color = index.data(Qt::TextColorRole).value<QColor>();
|
||||
item.iconType = static_cast<IconType>(index.sibling(row, Constants::OUTPUT_COLUMN_TEXT)
|
||||
.data(Qt::UserRole).toInt());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user