From 3d69b67a1721b7430b4ccb2dd7144ad6f5da94dd Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Fri, 18 May 2012 11:38:37 +0200 Subject: 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 --- src/declarative/util/qdeclarativefontloader.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/declarative/util/qdeclarativefontloader.cpp') 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(); -- cgit v1.2.3