forked from qt-creator/qt-creator
Task: Update Task to use Utils::FileName and Core::Id
Use Utils::FileName and Core::Id in Task structure. Change-Id: Ia0ed459f86df36ffe547abde7c240b0ac409bcf5 Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
@@ -50,13 +50,13 @@ bool ShowInEditorTaskHandler::canHandle(const ProjectExplorer::Task &task)
|
||||
{
|
||||
if (task.file.isEmpty())
|
||||
return false;
|
||||
QFileInfo fi(task.file);
|
||||
QFileInfo fi(task.file.toFileInfo());
|
||||
return fi.exists() && fi.isFile() && fi.isReadable();
|
||||
}
|
||||
|
||||
void ShowInEditorTaskHandler::handle(const ProjectExplorer::Task &task)
|
||||
{
|
||||
QFileInfo fi(task.file);
|
||||
QFileInfo fi(task.file.toFileInfo());
|
||||
TextEditor::BaseTextEditorWidget::openEditorAt(fi.canonicalFilePath(), task.line);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user