QML: use Qt4 output formatter to get links in errors to work.

Reviewed-by: Tobias Hunger
This commit is contained in:
Erik Verbruggen
2010-10-18 12:39:02 +02:00
parent b5bb0aceee
commit 50ab71bbdc
4 changed files with 22 additions and 10 deletions

View File

@@ -39,7 +39,7 @@
using namespace ProjectExplorer;
using namespace Qt4ProjectManager;
QtOutputFormatter::QtOutputFormatter(Qt4Project *project)
QtOutputFormatter::QtOutputFormatter(ProjectExplorer::Project *project)
: OutputFormatter()
, m_qmlError(QLatin1String("(file:///.+:\\d+:\\d+):"))
, m_qtError(QLatin1String("Object::.*in (.*:\\d+)"))
@@ -210,7 +210,7 @@ void QtOutputFormatter::handleLink(const QString &href)
QFileInfo fi(fileName);
if (fi.isRelative()) {
// Yeah fileName is relative, no suprise
Qt4Project *pro = m_project.data();
ProjectExplorer::Project *pro = m_project.data();
if (pro) {
QString baseName = fi.fileName();
foreach (const QString &file, pro->files(Project::AllFiles)) {