equal
deleted
inserted
replaced
76 |
76 |
77 |
77 |
78 |
78 |
79 /*! |
79 /*! |
80 \qmlclass FontLoader QDeclarativeFontLoader |
80 \qmlclass FontLoader QDeclarativeFontLoader |
|
81 \ingroup qml-utility-elements |
81 \since 4.7 |
82 \since 4.7 |
82 \brief The FontLoader element allows fonts to be loaded by name or URL. |
83 \brief The FontLoader element allows fonts to be loaded by name or URL. |
83 |
84 |
84 The FontLoader element is used to load fonts by name or URL. |
85 The FontLoader element is used to load fonts by name or URL. |
85 |
86 |
127 return; |
128 return; |
128 d->url = qmlContext(this)->resolvedUrl(url); |
129 d->url = qmlContext(this)->resolvedUrl(url); |
129 |
130 |
130 d->status = Loading; |
131 d->status = Loading; |
131 emit statusChanged(); |
132 emit statusChanged(); |
|
133 emit sourceChanged(); |
132 #ifndef QT_NO_LOCALFILE_OPTIMIZED_QML |
134 #ifndef QT_NO_LOCALFILE_OPTIMIZED_QML |
133 QString lf = QDeclarativeEnginePrivate::urlToLocalFileOrQrc(d->url); |
135 QString lf = QDeclarativeEnginePrivate::urlToLocalFileOrQrc(d->url); |
134 if (!lf.isEmpty()) { |
136 if (!lf.isEmpty()) { |
135 int id = QFontDatabase::addApplicationFont(lf); |
137 int id = QFontDatabase::addApplicationFont(lf); |
136 if (id != -1) { |
138 if (id != -1) { |