forked from qt-creator/qt-creator
Todo: non-alien dir separators in To-Do entries list
Use Utils::FileName instead of QString in TodoItem Change-Id: I3c35599f972f0c23087f86ef10c9363a1577ce35 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
@@ -170,7 +170,7 @@ void TodoOutputPane::todoTreeViewClicked(const QModelIndex &index)
|
||||
|
||||
TodoItem item;
|
||||
item.text = index.sibling(row, Constants::OUTPUT_COLUMN_TEXT).data().toString();
|
||||
item.file = index.sibling(row, Constants::OUTPUT_COLUMN_FILE).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.iconType = static_cast<IconType>(index.sibling(row, Constants::OUTPUT_COLUMN_TEXT)
|
||||
|
||||
Reference in New Issue
Block a user