forked from qt-creator/qt-creator
Html5 app wizard: Adapt to QUrl changes in Qt 4.8.0
These changed have been reverted in Qt 4.8.1 (and 4.8.0 for Symbian). Task-number: QTCREATORBUG-6883 Change-Id: I66e30fe242ffab56f9966a37a152ec2d5c863847 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
This commit is contained in:
committed by
Kai Koehne
parent
41a66d7478
commit
f34e0bbfdf
@@ -99,7 +99,7 @@ QString Html5ApplicationViewerPrivate::adjustPath(const QString &path)
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
return path;
|
||||
return QFileInfo(path).absoluteFilePath();
|
||||
}
|
||||
|
||||
void Html5ApplicationViewerPrivate::quit()
|
||||
@@ -130,7 +130,7 @@ Html5ApplicationViewer::~Html5ApplicationViewer()
|
||||
|
||||
void Html5ApplicationViewer::loadFile(const QString &fileName)
|
||||
{
|
||||
m_d->m_webView->setUrl(QUrl(Html5ApplicationViewerPrivate::adjustPath(fileName)));
|
||||
m_d->m_webView->setUrl(QUrl::fromLocalFile(Html5ApplicationViewerPrivate::adjustPath(fileName)));
|
||||
}
|
||||
|
||||
void Html5ApplicationViewer::loadUrl(const QUrl &url)
|
||||
|
@@ -315,7 +315,7 @@ QList<DeploymentFolder> Html5App::deploymentFolders() const
|
||||
return result;
|
||||
}
|
||||
|
||||
const int Html5App::StubVersion = 10;
|
||||
const int Html5App::StubVersion = 11;
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace Qt4ProjectManager
|
||||
|
Reference in New Issue
Block a user