diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2012-05-18 11:38:37 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-22 08:24:12 +0200 |
commit | 3d69b67a1721b7430b4ccb2dd7144ad6f5da94dd (patch) | |
tree | 8830a5eae935e256a2dbf06064e643269adc07c6 /src/declarative/util/qdeclarativefontloader.cpp | |
parent | 8bb22cb8488cbbe0e2ca2c16a823c3a7ea846ba4 (diff) |
Quick1/QDeclarativeFontLoader: Output warning on failure.
Helps in case the 'file::' prefix is missing from local file URLs
on Windows. 'C:\foo' is then interpreted as URL with protocol
'c', causing an error.
Change-Id: Ib6f4b096bbd1daf0fbc2d58aef714d131e52ef92
Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>
Diffstat (limited to 'src/declarative/util/qdeclarativefontloader.cpp')
-rw-r--r-- | src/declarative/util/qdeclarativefontloader.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/declarative/util/qdeclarativefontloader.cpp b/src/declarative/util/qdeclarativefontloader.cpp index b1baea58..a6720d6e 100644 --- a/src/declarative/util/qdeclarativefontloader.cpp +++ b/src/declarative/util/qdeclarativefontloader.cpp @@ -120,6 +120,8 @@ void QDeclarativeFontObject::replyFinished() else emit fontDownloaded(QString(), QDeclarativeFontLoader::Error); } else { + qWarning("%s: Unable to load font '%s': %s", Q_FUNC_INFO, + qPrintable(reply->url().toString()), qPrintable(reply->errorString())); emit fontDownloaded(QString(), QDeclarativeFontLoader::Error); } reply->deleteLater(); |