Commit 4ebc7a30 authored by Daniel Molkentin's avatar Daniel Molkentin

Compile with Qt 4.7 again.

Change-Id: I627472151484d3b0b75b2030d3627d40f8c051f0
Reviewed-by: default avatarThiago Macieira <thiago.macieira@intel.com>
parent 552db993
......@@ -345,7 +345,8 @@ void QmlEngine::showMessage(const QString &msg, int channel, int timeout) const
void QmlEngine::gotoLocation(const Location &location)
{
const QString fileName = location.fileName();
if (QUrl(fileName).isLocalFile()) {
// TODO: QUrl::isLocalFile() once we depend on Qt 4.8
if (QUrl(fileName).scheme().compare(QLatin1String("file"), Qt::CaseInsensitive) == 0) {
// internal file from source files -> show generated .js
QString fileName = location.fileName();
QTC_ASSERT(d->m_sourceDocuments.contains(fileName), return);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment