QString QFontProto::lastResortFont() const { QFont *item = qscriptvalue_cast<QFont*>(thisObject()); if (item) return item->lastResortFont(); return QString(); }
void tst_QFont::lastResortFont() { #ifdef Q_WS_QWS QSKIP("QFont::lastResortFont() may abort with qFatal() on QWS", SkipAll); // ...if absolutely no font is found. Just as ducumented for QFont::lastResortFont(). // This happens on our CI machines which run QWS autotests. #endif QFont font; QVERIFY(!font.lastResortFont().isEmpty()); }
// QFont::lastResortFont() may abort with qFatal() on QWS/QPA // if absolutely no font is found. Just as ducumented for QFont::lastResortFont(). // This happens on our CI machines which run QWS autotests. // ### fixme: Check platforms void tst_QFont::lastResortFont() { QSKIP("QFont::lastResortFont() may abort with qFatal() on QPA, QTBUG-22325"); QFont font; QVERIFY(!font.lastResortFont().isEmpty()); }