Exemplo n.º 1
0
QString QFontProto::lastResortFont() const
{
  QFont *item = qscriptvalue_cast<QFont*>(thisObject());
  if (item)
    return item->lastResortFont();
  return QString();
}
Exemplo n.º 2
0
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());
}