qfontengine_ft.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/gui/text/qfontengine_ft.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9-
10-
11-
12-
13-
14-
15-
16static bool ft_getSfntTable(void *user_data, uint tag, uchar *buffer, uint *length)-
17{-
18 FT_Face face = (FT_Face)user_data;-
19-
20 bool result = false;-
21 if ((
( face->face_f... ( 1L << 3 ) )Description
TRUEevaluated 2034 times by 111 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEevaluated 83 times by 4 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QTextLayout
face->face_flags & ( 1L << 3 ) )
( face->face_f... ( 1L << 3 ) )Description
TRUEevaluated 2034 times by 111 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEevaluated 83 times by 4 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QTextLayout
) {
83-2034
22 FT_ULong len = *length;-
23 result = FT_Load_Sfnt_Table(face, tag, 0, buffer, &len) == FT_Err_Ok;-
24 *length = len;-
25 ((!(!result || int(*length) > 0)) ? qt_assert("!result || int(*length) > 0",__FILE__,101) : qt_noop());-
26 }
executed 2034 times by 111 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
2034
27-
28 return
executed 2117 times by 111 tests: return result;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
result;
executed 2117 times by 111 tests: return result;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
2117
29}-
30-
31static QFontEngineFT::Glyph emptyGlyph = {0, 0, 0, 0, 0, 0, 0, 0};-
32-
33static const QFontEngine::HintStyle ftInitialDefaultHintStyle =-
34-
35-
36-
37 QFontEngineFT::HintNone;-
38-
39-
40-
41-
42class QtFreetypeData-
43{-
44public:-
45 QtFreetypeData()-
46 : library(0)-
47 { }
executed 136 times by 123 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
136
48 ~QtFreetypeData();-
49-
50 FT_Library library;-
51 QHash<QFontEngine::FaceId, QFreetypeFace *> faces;-
52};-
53-
54QtFreetypeData::~QtFreetypeData()-
55{-
56 for (QHash<QFontEngine::FaceId, QFreetypeFace *>::ConstIterator iter = faces.cbegin(); iter != faces.cend()
iter != faces.cend()Description
TRUEevaluated 8 times by 8 tests
Evaluated by:
  • tst_QPainter
  • tst_qabstractitemview - unknown status
  • tst_qdoublespinbox - unknown status
  • tst_qfontdialog - unknown status
  • tst_qfontmetrics - unknown status
  • tst_qgraphicsitem - unknown status
  • tst_qitemdelegate - unknown status
  • tst_qlistwidget - unknown status
FALSEevaluated 135 times by 124 tests
Evaluated by:
  • tst_QApplication
  • tst_QPainter
  • tst_languagechange - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • tst_qcompleter - unknown status
  • tst_qcomplextext - unknown status
  • tst_qcssparser - unknown status
  • tst_qdatawidgetmapper - unknown status
  • tst_qdatetimeedit - unknown status
  • tst_qdialog - unknown status
  • tst_qdialogbuttonbox - unknown status
  • tst_qdockwidget - unknown status
  • ...
; ++iter)
8-135
57 iter.value()->cleanup();
executed 8 times by 8 tests: iter.value()->cleanup();
Executed by:
  • tst_QPainter
  • tst_qabstractitemview - unknown status
  • tst_qdoublespinbox - unknown status
  • tst_qfontdialog - unknown status
  • tst_qfontmetrics - unknown status
  • tst_qgraphicsitem - unknown status
  • tst_qitemdelegate - unknown status
  • tst_qlistwidget - unknown status
8
58 faces.clear();-
59 FT_Done_FreeType(library);-
60 library = 0;-
61}
executed 135 times by 124 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QPainter
  • tst_languagechange - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • tst_qcompleter - unknown status
  • tst_qcomplextext - unknown status
  • tst_qcssparser - unknown status
  • tst_qdatawidgetmapper - unknown status
  • tst_qdatetimeedit - unknown status
  • tst_qdialog - unknown status
  • tst_qdialogbuttonbox - unknown status
  • tst_qdockwidget - unknown status
  • ...
135
62namespace { namespace Q_QGS_theFreetypeData { typedef QThreadStorage<QtFreetypeData *> Type; QBasicAtomicInt guard = { QtGlobalStatic::Uninitialized }; __attribute__((visibility("hidden"))) inline Type *innerFunction() { struct HolderBase { ~HolderBase() noexcept { if (guard.load() == QtGlobalStatic::Initialized
guard.load() =...c::InitializedDescription
TRUEevaluated 124 times by 122 tests
Evaluated by:
  • tst_languagechange - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • tst_qcompleter - unknown status
  • tst_qcomplextext - unknown status
  • tst_qcssparser - unknown status
  • tst_qdatawidgetmapper - unknown status
  • tst_qdatetimeedit - unknown status
  • tst_qdialog - unknown status
  • tst_qdialogbuttonbox - unknown status
  • tst_qdockwidget - unknown status
  • tst_qdoublespinbox - unknown status
  • tst_qerrormessage - unknown status
  • ...
FALSEnever evaluated
) guard.store(QtGlobalStatic::Destroyed);
executed 124 times by 122 tests: guard.store(QtGlobalStatic::Destroyed);
Executed by:
  • tst_languagechange - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • tst_qcompleter - unknown status
  • tst_qcomplextext - unknown status
  • tst_qcssparser - unknown status
  • tst_qdatawidgetmapper - unknown status
  • tst_qdatetimeedit - unknown status
  • tst_qdialog - unknown status
  • tst_qdialogbuttonbox - unknown status
  • tst_qdockwidget - unknown status
  • tst_qdoublespinbox - unknown status
  • tst_qerrormessage - unknown status
  • ...
}
executed 124 times by 122 tests: end of block
Executed by:
  • tst_languagechange - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • tst_qcompleter - unknown status
  • tst_qcomplextext - unknown status
  • tst_qcssparser - unknown status
  • tst_qdatawidgetmapper - unknown status
  • tst_qdatetimeedit - unknown status
  • tst_qdialog - unknown status
  • tst_qdialogbuttonbox - unknown status
  • tst_qdockwidget - unknown status
  • tst_qdoublespinbox - unknown status
  • tst_qerrormessage - unknown status
  • ...
}; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ())) : value () { guard.store(QtGlobalStatic::Initialized); } } holder; return
executed 3736 times by 238 tests: return &holder.value;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
&holder.value;
executed 3736 times by 238 tests: return &holder.value;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
} } } static QGlobalStatic<QThreadStorage<QtFreetypeData *>, Q_QGS_theFreetypeData::innerFunction, Q_QGS_theFreetypeData::guard> theFreetypeData;
0-3736
63-
64QtFreetypeData *qt_getFreetypeData()-
65{-
66 QtFreetypeData *&freetypeData = theFreetypeData()->localData();-
67 if (!freetypeData
!freetypeDataDescription
TRUEevaluated 136 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
FALSEevaluated 3600 times by 168 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QFontCache
  • tst_QFontComboBox
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • ...
)
136-3600
68 freetypeData = new QtFreetypeData;
executed 136 times by 123 tests: freetypeData = new QtFreetypeData;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
136
69 return
executed 3736 times by 238 tests: return freetypeData;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
freetypeData;
executed 3736 times by 238 tests: return freetypeData;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
3736
70}-
71-
72-
73FT_Library qt_getFreetype()-
74{-
75 QtFreetypeData *freetypeData = qt_getFreetypeData();-
76 if (!freetypeData->library
!freetypeData->libraryDescription
TRUEevaluated 21 times by 5 tests
Evaluated by:
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
FALSEevaluated 23 times by 5 tests
Evaluated by:
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
)
21-23
77 FT_Init_FreeType(&freetypeData->library);
executed 21 times by 5 tests: FT_Init_FreeType(&freetypeData->library);
Executed by:
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
21
78 return
executed 44 times by 5 tests: return freetypeData->library;
Executed by:
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
freetypeData->library;
executed 44 times by 5 tests: return freetypeData->library;
Executed by:
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
44
79}-
80-
81int QFreetypeFace::fsType() const-
82{-
83 int fsType = 0;-
84 TT_OS2 *os2 = (TT_OS2 *)FT_Get_Sfnt_Table(face, ft_sfnt_os2);-
85 if (os2
os2Description
TRUEevaluated 1962 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
FALSEevaluated 75 times by 6 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QLabel
  • tst_QTextLayout
)
75-1962
86 fsType = os2->fsType;
executed 1962 times by 123 tests: fsType = os2->fsType;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
1962
87 return
executed 2037 times by 123 tests: return fsType;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
fsType;
executed 2037 times by 123 tests: return fsType;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
2037
88}-
89-
90int QFreetypeFace::getPointInOutline(glyph_t glyph, int flags, quint32 point, QFixed *xpos, QFixed *ypos, quint32 *nPoints)-
91{-
92 if (int error = FT_Load_Glyph(face, glyph, flags)
int error = FT... glyph, flags)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
93 return
never executed: return error;
error;
never executed: return error;
0
94-
95 if (face->glyph->format != FT_GLYPH_FORMAT_OUTLINE
face->glyph->f...FORMAT_OUTLINEDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
96 return
never executed: return Err_Invalid_SubTable;
Err_Invalid_SubTable;
never executed: return Err_Invalid_SubTable;
0
97-
98 *nPoints = face->glyph->outline.n_points;-
99 if (!(*nPoints)
!(*nPoints)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
100 return
never executed: return Err_Ok;
Err_Ok;
never executed: return Err_Ok;
0
101-
102 if (point > *nPoints
point > *nPointsDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
103 return
never executed: return Err_Invalid_SubTable;
Err_Invalid_SubTable;
never executed: return Err_Invalid_SubTable;
0
104-
105 *xpos = QFixed::fromFixed(face->glyph->outline.points[point].x);-
106 *ypos = QFixed::fromFixed(face->glyph->outline.points[point].y);-
107-
108 return
never executed: return Err_Ok;
Err_Ok;
never executed: return Err_Ok;
0
109}-
110-
111bool QFreetypeFace::isScalableBitmap() const-
112{-
113-
114 return
executed 319436 times by 115 tests: return !( face->face_flags & ( 1L << 0 ) ) && ( face->face_flags & ( 1L << 14 ) );
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
!( face->face_flags & ( 1L << 0 ) ) && ( face->face_flags & ( 1L << 14 ) );
executed 319436 times by 115 tests: return !( face->face_flags & ( 1L << 0 ) ) && ( face->face_flags & ( 1L << 14 ) );
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
319436
115-
116-
117-
118}-
119-
120extern QByteArray qt_fontdata_from_index(int);-
121QFreetypeFace *QFreetypeFace::getFace(const QFontEngine::FaceId &face_id,-
122 const QByteArray &fontData)-
123{-
124 if (face_id.filename.isEmpty()
face_id.filename.isEmpty()Description
TRUEevaluated 1250 times by 1 test
Evaluated by:
  • tst_QRawFont
FALSEevaluated 785 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
&& fontData.isEmpty()
fontData.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 1250 times by 1 test
Evaluated by:
  • tst_QRawFont
)
0-1250
125 return
never executed: return 0;
0;
never executed: return 0;
0
126-
127 QtFreetypeData *freetypeData = qt_getFreetypeData();-
128 if (!freetypeData->library
!freetypeData->libraryDescription
TRUEevaluated 1353 times by 122 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
FALSEevaluated 682 times by 50 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QFontCache
  • tst_QFontComboBox
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • tst_QLabel
  • ...
)
682-1353
129 FT_Init_FreeType(&freetypeData->library);
executed 1353 times by 122 tests: FT_Init_FreeType(&freetypeData->library);
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
1353
130-
131 QFreetypeFace *freetype = freetypeData->faces.value(face_id, 0);-
132 if (freetype
freetypeDescription
TRUEevaluated 367 times by 24 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QComboBox
  • tst_QFont
  • tst_QFontCache
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QMenu
  • tst_QPainter
  • tst_QPlainTextEdit
  • tst_QRawFont
  • tst_QStaticText
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextLayout
  • tst_QToolTip
  • tst_QTreeWidget
  • tst_QWizard
FALSEevaluated 1668 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
) {
367-1668
133 freetype->ref.ref();-
134 }
executed 367 times by 24 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QComboBox
  • tst_QFont
  • tst_QFontCache
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QMenu
  • tst_QPainter
  • tst_QPlainTextEdit
  • tst_QRawFont
  • tst_QStaticText
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextLayout
  • tst_QToolTip
  • tst_QTreeWidget
  • tst_QWizard
else {
367
135 QScopedPointer<QFreetypeFace> newFreetype(new QFreetypeFace);-
136 FT_Face face;-
137 if (!face_id.filename.isEmpty()
!face_id.filename.isEmpty()Description
TRUEevaluated 418 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
FALSEevaluated 1250 times by 1 test
Evaluated by:
  • tst_QRawFont
) {
418-1250
138 QString fileName = QFile::decodeName(face_id.filename);-
139 if (face_id.filename.startsWith(":qmemoryfonts/")
face_id.filena...memoryfonts/")Description
TRUEnever evaluated
FALSEevaluated 418 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
) {
0-418
140-
141 QByteArray idx = face_id.filename;-
142 idx.remove(0, 14);-
143 bool ok = false;-
144 newFreetype->fontData = qt_fontdata_from_index(idx.toInt(&ok));-
145 if (!ok
!okDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
146 newFreetype->fontData = QByteArray();
never executed: newFreetype->fontData = QByteArray();
0
147 }
never executed: end of block
else if (!QFileInfo(fileName).isNativePath()
!QFileInfo(fil...isNativePath()Description
TRUEevaluated 21 times by 4 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
FALSEevaluated 397 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
) {
0-397
148 QFile file(fileName);-
149 if (!file.open(QIODevice::ReadOnly)
!file.open(QIO...ice::ReadOnly)Description
TRUEnever evaluated
FALSEevaluated 21 times by 4 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
) {
0-21
150 return
never executed: return 0;
0;
never executed: return 0;
0
151 }-
152 newFreetype->fontData = file.readAll();-
153 }
executed 21 times by 4 tests: end of block
Executed by:
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
21
154 }
executed 418 times by 123 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
else {
418
155 newFreetype->fontData = fontData;-
156 }
executed 1250 times by 1 test: end of block
Executed by:
  • tst_QRawFont
1250
157 if (!newFreetype->fontData.isEmpty()
!newFreetype->...Data.isEmpty()Description
TRUEevaluated 1271 times by 4 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
FALSEevaluated 397 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
) {
397-1271
158 if (FT_New_Memory_Face(freetypeData->library, (const FT_Byte *)newFreetype->fontData.constData(), newFreetype->fontData.size(), face_id.index, &face)
FT_New_Memory_....index, &face)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QRawFont
FALSEevaluated 1269 times by 4 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
) {
2-1269
159 return
executed 2 times by 1 test: return 0;
Executed by:
  • tst_QRawFont
0;
executed 2 times by 1 test: return 0;
Executed by:
  • tst_QRawFont
2
160 }-
161 }
executed 1269 times by 4 tests: end of block
Executed by:
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
else if (FT_New_Face(freetypeData->library, face_id.filename, face_id.index, &face)
FT_New_Face(fr....index, &face)Description
TRUEnever evaluated
FALSEevaluated 397 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
) {
0-1269
162 return
never executed: return 0;
0;
never executed: return 0;
0
163 }-
164 newFreetype->face = face;-
165-
166 newFreetype->ref.store(1);-
167 newFreetype->xsize = 0;-
168 newFreetype->ysize = 0;-
169 newFreetype->matrix.xx = 0x10000;-
170 newFreetype->matrix.yy = 0x10000;-
171 newFreetype->matrix.xy = 0;-
172 newFreetype->matrix.yx = 0;-
173 newFreetype->unicode_map = 0;-
174 newFreetype->symbol_map = 0;-
175-
176 memset(newFreetype->cmapCache, 0, sizeof(newFreetype->cmapCache));-
177-
178 for (int i = 0; i < newFreetype->face->num_charmaps
i < newFreetyp...->num_charmapsDescription
TRUEevaluated 6588 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
FALSEevaluated 1666 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
; ++i) {
1666-6588
179 FT_CharMap cm = newFreetype->face->charmaps[i];-
180 switch(cm->encoding) {-
181 case
executed 4969 times by 123 tests: case FT_ENCODING_UNICODE:
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
FT_ENCODING_UNICODE:
executed 4969 times by 123 tests: case FT_ENCODING_UNICODE:
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
4969
182 newFreetype->unicode_map = cm;-
183 break;
executed 4969 times by 123 tests: break;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
4969
184 case
executed 1543 times by 123 tests: case FT_ENCODING_APPLE_ROMAN:
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
FT_ENCODING_APPLE_ROMAN:
executed 1543 times by 123 tests: case FT_ENCODING_APPLE_ROMAN:
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
1543
185 case
never executed: case FT_ENCODING_ADOBE_LATIN_1:
FT_ENCODING_ADOBE_LATIN_1:
never executed: case FT_ENCODING_ADOBE_LATIN_1:
0
186 if (!newFreetype->unicode_map
!newFreetype->unicode_mapDescription
TRUEevaluated 11 times by 3 tests
Evaluated by:
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
FALSEevaluated 1532 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
|| newFreetype->unicode_map->encoding != FT_ENCODING_UNICODE
newFreetype->u...CODING_UNICODEDescription
TRUEnever evaluated
FALSEevaluated 1532 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
)
0-1532
187 newFreetype->unicode_map = cm;
executed 11 times by 3 tests: newFreetype->unicode_map = cm;
Executed by:
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
11
188 break;
executed 1543 times by 123 tests: break;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
1543
189 case
executed 6 times by 3 tests: case FT_ENCODING_ADOBE_CUSTOM:
Executed by:
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
FT_ENCODING_ADOBE_CUSTOM:
executed 6 times by 3 tests: case FT_ENCODING_ADOBE_CUSTOM:
Executed by:
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
6
190 case
never executed: case FT_ENCODING_MS_SYMBOL:
FT_ENCODING_MS_SYMBOL:
never executed: case FT_ENCODING_MS_SYMBOL:
0
191 if (!newFreetype->symbol_map
!newFreetype->symbol_mapDescription
TRUEevaluated 6 times by 3 tests
Evaluated by:
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
FALSEnever evaluated
)
0-6
192 newFreetype->symbol_map = cm;
executed 6 times by 3 tests: newFreetype->symbol_map = cm;
Executed by:
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
6
193 break;
executed 6 times by 3 tests: break;
Executed by:
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
6
194 default
executed 70 times by 6 tests: default:
Executed by:
  • tst_QAccessibility
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QLabel
  • tst_QTextLayout
:
executed 70 times by 6 tests: default:
Executed by:
  • tst_QAccessibility
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QLabel
  • tst_QTextLayout
70
195 break;
executed 70 times by 6 tests: break;
Executed by:
  • tst_QAccessibility
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QLabel
  • tst_QTextLayout
70
196 }-
197 }-
198-
199 if (!( newFreetype->face->face_flags & ( 1L << 0 ) )
!( newFreetype... ( 1L << 0 ) )Description
TRUEnever evaluated
FALSEevaluated 1666 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
&& newFreetype->face->num_fixed_sizes == 1
newFreetype->f...xed_sizes == 1Description
TRUEnever evaluated
FALSEnever evaluated
)
0-1666
200 FT_Set_Char_Size(face, newFreetype->face->available_sizes[0].x_ppem, newFreetype->face->available_sizes[0].y_ppem, 0, 0);
never executed: FT_Set_Char_Size(face, newFreetype->face->available_sizes[0].x_ppem, newFreetype->face->available_sizes[0].y_ppem, 0, 0);
0
201-
202 FT_Set_Charmap(newFreetype->face, newFreetype->unicode_map);-
203 if (true) {-
204 freetypeData->faces.insert(face_id, newFreetype.data());-
205 }
executed 1666 times by 123 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
else {
dead code: { newFreetype.take()->release(face_id); qt_noop(); }
-
206 newFreetype.take()->release(face_id);
dead code: { newFreetype.take()->release(face_id); qt_noop(); }
-
207-
208 qt_noop();
dead code: { newFreetype.take()->release(face_id); qt_noop(); }
-
209 }
dead code: { newFreetype.take()->release(face_id); qt_noop(); }
-
210 freetype = newFreetype.take();-
211 }
executed 1666 times by 123 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
1666
212 return
executed 2033 times by 123 tests: return freetype;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
freetype;
executed 2033 times by 123 tests: return freetype;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
2033
213}-
214-
215void QFreetypeFace::cleanup()-
216{-
217 hbFace.reset();-
218 FT_Done_Face(face);-
219 face = 0;-
220}
executed 1665 times by 129 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QFontCache
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QPainter
  • tst_QRawFont
  • tst_QTextLayout
  • tst_languagechange - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • tst_qcompleter - unknown status
  • ...
1665
221-
222void QFreetypeFace::release(const QFontEngine::FaceId &face_id)-
223{-
224 if (!ref.deref()
!ref.deref()Description
TRUEevaluated 1660 times by 126 tests
Evaluated by:
  • tst_QApplication
  • tst_QFontCache
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QPainter
  • tst_QRawFont
  • tst_QTextLayout
  • tst_languagechange - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • tst_qcompleter - unknown status
  • ...
FALSEevaluated 371 times by 26 tests
Evaluated by:
  • tst_QFontCache
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
  • tst_qabstractitemview - unknown status
  • tst_qcombobox - unknown status
  • tst_qfont - unknown status
  • tst_qfontcombobox - unknown status
  • tst_qfontdialog - unknown status
  • tst_qgraphicsitem - unknown status
  • tst_qgraphicsproxywidget - unknown status
  • tst_qgridlayout - unknown status
  • tst_qmenu - unknown status
  • tst_qpainter - unknown status
  • tst_qplaintextedit - unknown status
  • tst_qrawfont - unknown status
  • tst_qstatictext - unknown status
  • tst_qstyle - unknown status
  • tst_qstylesheetstyle - unknown status
  • tst_qtextdocumentlayout - unknown status
  • tst_qtextedit - unknown status
  • tst_qtextlayout - unknown status
  • tst_qtooltip - unknown status
  • tst_qtreewidget - unknown status
  • ...
) {
371-1660
225 if (face
faceDescription
TRUEevaluated 1657 times by 125 tests
Evaluated by:
  • tst_QApplication
  • tst_QFontCache
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
  • tst_QTextLayout
  • tst_languagechange - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • tst_qcompleter - unknown status
  • tst_qcomplextext - unknown status
  • ...
FALSEevaluated 3 times by 3 tests
Evaluated by:
  • tst_QPainter
  • tst_qfontdialog - unknown status
  • tst_qfontmetrics - unknown status
) {
3-1657
226 QtFreetypeData *freetypeData = qt_getFreetypeData();-
227-
228 cleanup();-
229-
230 if (freetypeData->faces.contains(face_id)
freetypeData->...tains(face_id)Description
TRUEevaluated 1657 times by 125 tests
Evaluated by:
  • tst_QApplication
  • tst_QFontCache
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
  • tst_QTextLayout
  • tst_languagechange - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • tst_qcompleter - unknown status
  • tst_qcomplextext - unknown status
  • ...
FALSEnever evaluated
)
0-1657
231 freetypeData->faces.take(face_id);
executed 1657 times by 125 tests: freetypeData->faces.take(face_id);
Executed by:
  • tst_QApplication
  • tst_QFontCache
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
  • tst_QTextLayout
  • tst_languagechange - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • tst_qcompleter - unknown status
  • tst_qcomplextext - unknown status
  • ...
1657
232-
233 if (freetypeData->faces.isEmpty()
freetypeData->faces.isEmpty()Description
TRUEevaluated 1365 times by 120 tests
Evaluated by:
  • tst_QApplication
  • tst_QFontCache
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
  • tst_languagechange - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • tst_qcompleter - unknown status
  • tst_qcomplextext - unknown status
  • tst_qcssparser - unknown status
  • tst_qdatawidgetmapper - unknown status
  • ...
FALSEevaluated 292 times by 48 tests
Evaluated by:
  • tst_QFontCache
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
  • tst_QTextLayout
  • tst_languagechange - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qaccessibility - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • tst_qcssparser - unknown status
  • tst_qdatetimeedit - unknown status
  • tst_qfiledialog - unknown status
  • tst_qfiledialog2 - unknown status
  • tst_qfilesystemmodel - unknown status
  • tst_qfont - unknown status
  • tst_qfontcombobox - unknown status
  • tst_qfontdialog - unknown status
  • tst_qfontmetrics - unknown status
  • tst_qgraphicsproxywidget - unknown status
  • tst_qheaderview - unknown status
  • tst_qitemdelegate - unknown status
  • ...
) {
292-1365
234 FT_Done_FreeType(freetypeData->library);-
235 freetypeData->library = 0;-
236 }
executed 1365 times by 120 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QFontCache
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
  • tst_languagechange - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • tst_qcompleter - unknown status
  • tst_qcomplextext - unknown status
  • tst_qcssparser - unknown status
  • tst_qdatawidgetmapper - unknown status
  • ...
1365
237 }
executed 1657 times by 125 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QFontCache
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
  • tst_QTextLayout
  • tst_languagechange - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • tst_qcompleter - unknown status
  • tst_qcomplextext - unknown status
  • ...
1657
238-
239 delete this;-
240 }
executed 1660 times by 126 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QFontCache
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QPainter
  • tst_QRawFont
  • tst_QTextLayout
  • tst_languagechange - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • tst_qcompleter - unknown status
  • ...
1660
241}
executed 2031 times by 127 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QFontCache
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QPainter
  • tst_QRawFont
  • tst_QTextLayout
  • tst_languagechange - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • tst_qcompleter - unknown status
  • ...
2031
242-
243-
244void QFreetypeFace::computeSize(const QFontDef &fontDef, int *xsize, int *ysize, bool *outline_drawing, QFixed *scalableBitmapScaleFactor)-
245{-
246 *ysize = qRound(fontDef.pixelSize * 64);-
247 *xsize = *ysize * fontDef.stretch / 100;-
248 *scalableBitmapScaleFactor = 1;-
249 *outline_drawing = false;-
250-
251 if (!(face->face_flags & ( 1L << 0 ))
!(face->face_f...& ( 1L << 0 ))Description
TRUEnever evaluated
FALSEevaluated 2037 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
) {
0-2037
252 int best = 0;-
253 if (!isScalableBitmap()
!isScalableBitmap()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
254-
255-
256-
257-
258 for (int i = 1; i < face->num_fixed_sizes
i < face->num_fixed_sizesDescription
TRUEnever evaluated
FALSEnever evaluated
; i++) {
0
259 if (qAbs(*ysize - face->available_sizes[i].y_ppem) <
qAbs(*ysize - ...[best].y_ppem)Description
TRUEnever evaluated
FALSEnever evaluated
0
260 qAbs(*ysize - face->available_sizes[best].y_ppem)
qAbs(*ysize - ...[best].y_ppem)Description
TRUEnever evaluated
FALSEnever evaluated
||
0
261 (qAbs(*ysize - face->available_sizes[i].y_ppem) ==
qAbs(*ysize - ...[best].y_ppem)Description
TRUEnever evaluated
FALSEnever evaluated
0
262 qAbs(*ysize - face->available_sizes[best].y_ppem)
qAbs(*ysize - ...[best].y_ppem)Description
TRUEnever evaluated
FALSEnever evaluated
&&
0
263 qAbs(*xsize - face->available_sizes[i].x_ppem) <
qAbs(*xsize - ...[best].x_ppem)Description
TRUEnever evaluated
FALSEnever evaluated
0
264 qAbs(*xsize - face->available_sizes[best].x_ppem)
qAbs(*xsize - ...[best].x_ppem)Description
TRUEnever evaluated
FALSEnever evaluated
)) {
0
265 best = i;-
266 }
never executed: end of block
0
267 }
never executed: end of block
0
268 }
never executed: end of block
else {
0
269-
270 for (int i = 1; i < face->num_fixed_sizes
i < face->num_fixed_sizesDescription
TRUEnever evaluated
FALSEnever evaluated
; i++) {
0
271 if (face->available_sizes[i].y_ppem < *ysize
face->availabl..._ppem < *ysizeDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
272 if (face->available_sizes[i].y_ppem > face->available_sizes[best].y_ppem
face->availabl...s[best].y_ppemDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
273 best = i;
never executed: best = i;
0
274 }
never executed: end of block
else if (face->available_sizes[best].y_ppem < *ysize
face->availabl..._ppem < *ysizeDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
275 best = i;-
276 }
never executed: end of block
else if (face->available_sizes[i].y_ppem < face->available_sizes[best].y_ppem
face->availabl...s[best].y_ppemDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
277 best = i;-
278 }
never executed: end of block
0
279 }
never executed: end of block
0
280 }
never executed: end of block
0
281-
282-
283-
284 if (FT_Select_Size(face, best) == 0
FT_Select_Size...ce, best) == 0Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
285 if (isScalableBitmap()
isScalableBitmap()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
286 *
never executed: *scalableBitmapScaleFactor = QFixed::fromReal((qreal)fontDef.pixelSize / face->available_sizes[best].height);
scalableBitmapScaleFactor = QFixed::fromReal((qreal)fontDef.pixelSize / face->available_sizes[best].height);
never executed: *scalableBitmapScaleFactor = QFixed::fromReal((qreal)fontDef.pixelSize / face->available_sizes[best].height);
0
287 *xsize = face->available_sizes[best].x_ppem;-
288 *ysize = face->available_sizes[best].y_ppem;-
289 }
never executed: end of block
else {
0
290 *xsize = *ysize = 0;-
291 }
never executed: end of block
0
292 } else {-
293 *outline_drawing = (*
*xsize > (64<<6)Description
TRUEevaluated 84 times by 5 tests
Evaluated by:
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QPainter
  • tst_QTextLayout
  • tst_QToolTip
FALSEevaluated 1953 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
xsize > (64<<6)
*xsize > (64<<6)Description
TRUEevaluated 84 times by 5 tests
Evaluated by:
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QPainter
  • tst_QTextLayout
  • tst_QToolTip
FALSEevaluated 1953 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
|| *
*ysize > (64<<6)Description
TRUEnever evaluated
FALSEevaluated 1953 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
ysize > (64<<6)
*ysize > (64<<6)Description
TRUEnever evaluated
FALSEevaluated 1953 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
);
0-1953
294 }
executed 2037 times by 123 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
2037
295}-
296-
297QFontEngine::Properties QFreetypeFace::properties() const-
298{-
299 QFontEngine::Properties p;-
300 p.postscriptName = FT_Get_Postscript_Name(face);-
301 PS_FontInfoRec font_info;-
302 if (FT_Get_PS_Font_Info(face, &font_info) == 0
FT_Get_PS_Font...ont_info) == 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
303 p.copyright = font_info.notice;
never executed: p.copyright = font_info.notice;
0
304 if ((
( face->face_f... ( 1L << 0 ) )Description
TRUEnever evaluated
FALSEnever evaluated
face->face_flags & ( 1L << 0 ) )
( face->face_f... ( 1L << 0 ) )Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
305 p.ascent = face->ascender;-
306 p.descent = -face->descender;-
307 p.leading = face->height - face->ascender + face->descender;-
308 p.emSquare = face->units_per_EM;-
309 p.boundingBox = QRectF(face->bbox.xMin, -face->bbox.yMax,-
310 face->bbox.xMax - face->bbox.xMin,-
311 face->bbox.yMax - face->bbox.yMin);-
312 }
never executed: end of block
else {
0
313 p.ascent = QFixed::fromFixed(face->size->metrics.ascender);-
314 p.descent = QFixed::fromFixed(-face->size->metrics.descender);-
315 p.leading = QFixed::fromFixed(face->size->metrics.height - face->size->metrics.ascender + face->size->metrics.descender);-
316 p.emSquare = face->size->metrics.y_ppem;-
317-
318 p.boundingBox = QRectF(0, -p.ascent.toReal(),-
319 face->size->metrics.max_advance/64, (p.ascent + p.descent).toReal() );-
320 }
never executed: end of block
0
321 p.italicAngle = 0;-
322 p.capHeight = p.ascent;-
323 p.lineWidth = face->underline_thickness;-
324 return
never executed: return p;
p;
never executed: return p;
0
325}-
326-
327bool QFreetypeFace::getSfntTable(uint tag, uchar *buffer, uint *length) const-
328{-
329 return
never executed: return ft_getSfntTable(face, tag, buffer, length);
ft_getSfntTable(face, tag, buffer, length);
never executed: return ft_getSfntTable(face, tag, buffer, length);
0
330}-
331static void scaleOutline(FT_Face face, FT_GlyphSlot g, FT_Fixed x_scale, FT_Fixed y_scale)-
332{-
333 x_scale = FT_MulDiv(x_scale, 1 << 10, face->units_per_EM);-
334 y_scale = FT_MulDiv(y_scale, 1 << 10, face->units_per_EM);-
335 FT_Vector *p = g->outline.points;-
336 const FT_Vector *e = p + g->outline.n_points;-
337 while (p < e
p < eDescription
TRUEevaluated 3260 times by 6 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
FALSEevaluated 163 times by 6 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
) {
163-3260
338 p->x = FT_MulFix_x86_64( p->x, x_scale );-
339 p->y = FT_MulFix_x86_64( p->y, y_scale );-
340 ++p;-
341 }
executed 3260 times by 6 tests: end of block
Executed by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
3260
342}
executed 163 times by 6 tests: end of block
Executed by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
163
343-
344-
345void QFreetypeFace::addGlyphToPath(FT_Face face, FT_GlyphSlot g, const QFixedPoint &point, QPainterPath *path, FT_Fixed x_scale, FT_Fixed y_scale)-
346{-
347 const qreal factor = 1/64.;-
348 scaleOutline(face, g, x_scale, y_scale);-
349-
350 QPointF cp = point.toPointF();-
351-
352-
353 int i = 0;-
354 for (int j = 0; j < g->outline.n_contours
j < g->outline.n_contoursDescription
TRUEevaluated 216 times by 6 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
FALSEevaluated 163 times by 6 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
; ++j) {
163-216
355 int last_point = g->outline.contours[j];-
356 while (false) QMessageLogger().noDebug() << "contour:" << i << "to" << last_point;
dead code: QMessageLogger().noDebug() << "contour:" << i << "to" << last_point;
-
357 QPointF start = QPointF(g->outline.points[i].x*factor, -g->outline.points[i].y*factor);-
358 if (!(g->outline.tags[i] & 1)
!(g->outline.tags[i] & 1)Description
TRUEnever evaluated
FALSEevaluated 216 times by 6 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
) {
0-216
359 if (!(g->outline.tags[last_point] & 1)
!(g->outline.t...st_point] & 1)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
360 while (false) QMessageLogger().noDebug() << " start and end point are not on curve";
dead code: QMessageLogger().noDebug() << " start and end point are not on curve";
-
361 start = (QPointF(g->outline.points[last_point].x*factor,-
362 -g->outline.points[last_point].y*factor) + start) / 2.0;-
363 }
never executed: end of block
else {
0
364 while (false) QMessageLogger().noDebug() << " end point is on curve, start is not";
dead code: QMessageLogger().noDebug() << " end point is on curve, start is not";
-
365 start = QPointF(g->outline.points[last_point].x*factor,-
366 -g->outline.points[last_point].y*factor);-
367 }
never executed: end of block
0
368 --i;-
369 }
never executed: end of block
0
370 start += cp;-
371 while (false) QMessageLogger().noDebug() << " start at" << start;
dead code: QMessageLogger().noDebug() << " start at" << start;
-
372-
373 path->moveTo(start);-
374 QPointF c[4];-
375 c[0] = start;-
376 int n = 1;-
377 while (i < last_point
i < last_pointDescription
TRUEevaluated 3818 times by 6 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
FALSEevaluated 216 times by 6 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
) {
216-3818
378 ++i;-
379 c[n] = cp + QPointF(g->outline.points[i].x*factor, -g->outline.points[i].y*factor);-
380 while (false) QMessageLogger().noDebug() << " " << i << c[n] << "tag =" << (int)g->outline.tags[i]
dead code: QMessageLogger().noDebug() << " " << i << c[n] << "tag =" << (int)g->outline.tags[i] << ": on curve =" << (bool)(g->outline.tags[i] & 1);
-
381 << ": on curve =" << (bool)(g->outline.tags[i] & 1);
dead code: QMessageLogger().noDebug() << " " << i << c[n] << "tag =" << (int)g->outline.tags[i] << ": on curve =" << (bool)(g->outline.tags[i] & 1);
-
382 ++n;-
383 switch (g->outline.tags[i] & 3) {-
384 case
never executed: case 2:
2:
never executed: case 2:
0
385-
386 if (n < 4
n < 4Description
TRUEnever evaluated
FALSEnever evaluated
)
0
387 continue;
never executed: continue;
0
388 c[3] = (c[3] + c[2])/2;-
389 --i;-
390 break;
never executed: break;
0
391 case
executed 2322 times by 6 tests: case 0:
Executed by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
0:
executed 2322 times by 6 tests: case 0:
Executed by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
2322
392-
393 if (n < 3
n < 3Description
TRUEevaluated 1548 times by 6 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
FALSEevaluated 774 times by 6 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
)
774-1548
394 continue;
executed 1548 times by 6 tests: continue;
Executed by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
1548
395 c[3] = (c[1] + c[2])/2;-
396 c[2] = (2*c[1] + c[3])/3;-
397 c[1] = (2*c[1] + c[0])/3;-
398 --i;-
399 break;
executed 774 times by 6 tests: break;
Executed by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
774
400 case
executed 1496 times by 6 tests: case 1:
Executed by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
1:
executed 1496 times by 6 tests: case 1:
Executed by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
1496
401 case
never executed: case 3:
3:
never executed: case 3:
0
402 if (n == 2
n == 2Description
TRUEevaluated 834 times by 6 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
FALSEevaluated 662 times by 6 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
) {
662-834
403 while (false) QMessageLogger().noDebug() << " lineTo" << c[1];
dead code: QMessageLogger().noDebug() << " lineTo" << c[1];
-
404 path->lineTo(c[1]);-
405 c[0] = c[1];-
406 n = 1;-
407 continue;
executed 834 times by 6 tests: continue;
Executed by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
834
408 } else if (n == 3
n == 3Description
TRUEevaluated 662 times by 6 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
FALSEnever evaluated
) {
0-662
409 c[3] = c[2];-
410 c[2] = (2*c[1] + c[3])/3;-
411 c[1] = (2*c[1] + c[0])/3;-
412 }
executed 662 times by 6 tests: end of block
Executed by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
662
413 break;
executed 662 times by 6 tests: break;
Executed by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
662
414 }-
415 while (false) QMessageLogger().noDebug() << " cubicTo" << c[1] << c[2] << c[3];
dead code: QMessageLogger().noDebug() << " cubicTo" << c[1] << c[2] << c[3];
-
416 path->cubicTo(c[1], c[2], c[3]);-
417 c[0] = c[3];-
418 n = 1;-
419 }
executed 1436 times by 6 tests: end of block
Executed by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
1436
420-
421 if (n == 1
n == 1Description
TRUEevaluated 104 times by 6 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
FALSEevaluated 112 times by 5 tests
Evaluated by:
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
) {
104-112
422 while (false) QMessageLogger().noDebug() << " closeSubpath";
dead code: QMessageLogger().noDebug() << " closeSubpath";
-
423 path->closeSubpath();-
424 }
executed 104 times by 6 tests: end of block
Executed by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
else {
104
425 c[3] = start;-
426 if (n == 2
n == 2Description
TRUEevaluated 112 times by 5 tests
Evaluated by:
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
FALSEnever evaluated
) {
0-112
427 c[2] = (2*c[1] + c[3])/3;-
428 c[1] = (2*c[1] + c[0])/3;-
429 }
executed 112 times by 5 tests: end of block
Executed by:
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
112
430 while (false) QMessageLogger().noDebug() << " close cubicTo" << c[1] << c[2] << c[3];
dead code: QMessageLogger().noDebug() << " close cubicTo" << c[1] << c[2] << c[3];
-
431 path->cubicTo(c[1], c[2], c[3]);-
432 }
executed 112 times by 5 tests: end of block
Executed by:
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
112
433 ++i;-
434 }
executed 216 times by 6 tests: end of block
Executed by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
216
435}
executed 163 times by 6 tests: end of block
Executed by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
163
436-
437extern void qt_addBitmapToPath(qreal x0, qreal y0, const uchar *image_data, int bpl, int w, int h, QPainterPath *path);-
438-
439void QFreetypeFace::addBitmapToPath(FT_GlyphSlot slot, const QFixedPoint &point, QPainterPath *path)-
440{-
441 if (slot->format != FT_GLYPH_FORMAT_BITMAP
slot->format !..._FORMAT_BITMAPDescription
TRUEnever evaluated
FALSEnever evaluated
0
442 || slot->bitmap.pixel_mode != FT_PIXEL_MODE_MONO
slot->bitmap.p...IXEL_MODE_MONODescription
TRUEnever evaluated
FALSEnever evaluated
)
0
443 return;
never executed: return;
0
444-
445 QPointF cp = point.toPointF();-
446 qt_addBitmapToPath(cp.x() + ((slot->metrics.horiBearingX) >> 6), cp.y() - ((slot->metrics.horiBearingY) >> 6),-
447 slot->bitmap.buffer, slot->bitmap.pitch, slot->bitmap.width, slot->bitmap.rows, path);-
448}
never executed: end of block
0
449-
450QFontEngineFT::Glyph::~Glyph()-
451{-
452 delete [] data;-
453}
executed 11797 times by 120 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QRawFont
  • tst_QTextLayout
  • tst_languagechange - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • ...
11797
454-
455struct LcdFilterDummy-
456{-
457 static inline void filterPixel(uchar &, uchar &, uchar &)-
458 {}-
459};-
460-
461struct LcdFilterLegacy-
462{-
463 static inline void filterPixel(uchar &red, uchar &green, uchar &blue)-
464 {-
465 uint r = red, g = green, b = blue;-
466-
467 red = (r * uint(65538 * 9/13) + g * uint(65538 * 1/6) + b * uint(65538 * 1/13)) / 65536;-
468 green = (r * uint(65538 * 3/13) + g * uint(65538 * 4/6) + b * uint(65538 * 3/13)) / 65536;-
469 blue = (r * uint(65538 * 1/13) + g * uint(65538 * 1/6) + b * uint(65538 * 9/13)) / 65536;-
470 }
never executed: end of block
0
471};-
472-
473template <typename LcdFilter>-
474static void convertRGBToARGB_helper(const uchar *src, uint *dst, int width, int height, int src_pitch, bool bgr)-
475{-
476 const int offs = bgr ? -1 : 1;-
477 const int w = width * 3;-
478 while (height--
height--Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
479 uint *dd = dst;-
480 for (int x = 0; x < w
x < wDescription
TRUEnever evaluated
FALSEnever evaluated
; x += 3) {
0
481 uchar red = src[x + 1 - offs];-
482 uchar green = src[x + 1];-
483 uchar blue = src[x + 1 + offs];-
484 LcdFilter::filterPixel(red, green, blue);-
485-
486 *dd++ = (green << 24) | (red << 16) | (green << 8) | blue;-
487 }
never executed: end of block
0
488 dst += width;-
489 src += src_pitch;-
490 }
never executed: end of block
0
491}
never executed: end of block
0
492-
493static inline void convertRGBToARGB(const uchar *src, uint *dst, int width, int height, int src_pitch, bool bgr, bool legacyFilter)-
494{-
495 if (!legacyFilter
!legacyFilterDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
496 convertRGBToARGB_helper<LcdFilterDummy>(src, dst, width, height, src_pitch, bgr);
never executed: convertRGBToARGB_helper<LcdFilterDummy>(src, dst, width, height, src_pitch, bgr);
0
497 else-
498 convertRGBToARGB_helper<LcdFilterLegacy>(src, dst, width, height, src_pitch, bgr);
never executed: convertRGBToARGB_helper<LcdFilterLegacy>(src, dst, width, height, src_pitch, bgr);
0
499}-
500-
501template <typename LcdFilter>-
502static void convertRGBToARGB_V_helper(const uchar *src, uint *dst, int width, int height, int src_pitch, bool bgr)-
503{-
504 const int offs = bgr ? -src_pitch : src_pitch;-
505 while (height--
height--Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
506 for (int x = 0; x < width
x < widthDescription
TRUEnever evaluated
FALSEnever evaluated
; x++) {
0
507 uchar red = src[x + src_pitch - offs];-
508 uchar green = src[x + src_pitch];-
509 uchar blue = src[x + src_pitch + offs];-
510 LcdFilter::filterPixel(red, green, blue);-
511-
512 *dst++ = (green << 24) | (red << 16) | (green << 8) | blue;-
513 }
never executed: end of block
0
514 src += 3*src_pitch;-
515 }
never executed: end of block
0
516}
never executed: end of block
0
517-
518static inline void convertRGBToARGB_V(const uchar *src, uint *dst, int width, int height, int src_pitch, bool bgr, bool legacyFilter)-
519{-
520 if (!legacyFilter
!legacyFilterDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
521 convertRGBToARGB_V_helper<LcdFilterDummy>(src, dst, width, height, src_pitch, bgr);
never executed: convertRGBToARGB_V_helper<LcdFilterDummy>(src, dst, width, height, src_pitch, bgr);
0
522 else-
523 convertRGBToARGB_V_helper<LcdFilterLegacy>(src, dst, width, height, src_pitch, bgr);
never executed: convertRGBToARGB_V_helper<LcdFilterLegacy>(src, dst, width, height, src_pitch, bgr);
0
524}-
525-
526static inline void convertGRAYToARGB(const uchar *src, uint *dst, int width, int height, int src_pitch)-
527{-
528 while (height--
height--Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
529 const uchar *p = src;-
530 const uchar * const e = p + width;-
531 while (p < e
p < eDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
532 uchar gray = *p++;-
533 *dst++ = (0xFF << 24) | (gray << 16) | (gray << 8) | gray;-
534 }
never executed: end of block
0
535 src += src_pitch;-
536 }
never executed: end of block
0
537}
never executed: end of block
0
538-
539static void convoluteBitmap(const uchar *src, uchar *dst, int width, int height, int pitch)-
540{-
541-
542-
543-
544-
545 int h = height;-
546 while (h--
h--Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
547 dst[0] = dst[1] = 0;-
548-
549 for (int x = 2; x < width - 2
x < width - 2Description
TRUEnever evaluated
FALSEnever evaluated
; ++x) {
0
550 uint sum = src[x-2] + 3*src[x-1] + 8*src[x] + 3*src[x+1] + src[x+2];-
551 dst[x] = (uchar) (sum >> 4);-
552 }
never executed: end of block
0
553 dst[width - 2] = dst[width - 1] = 0;-
554 src += pitch;-
555 dst += pitch;-
556 }
never executed: end of block
0
557}
never executed: end of block
0
558-
559QFontEngineFT::QFontEngineFT(const QFontDef &fd)-
560 : QFontEngine(Freetype)-
561{-
562 fontDef = fd;-
563 matrix.xx = 0x10000;-
564 matrix.yy = 0x10000;-
565 matrix.xy = 0;-
566 matrix.yx = 0;-
567 cache_cost = 100 * 1024;-
568 kerning_pairs_loaded = false;-
569 transform = false;-
570 embolden = false;-
571 obliquen = false;-
572 antialias = true;-
573 freetype = 0;-
574 default_load_flags = ( 1L << 9 );-
575 default_hint_style = ftInitialDefaultHintStyle;-
576 subpixelType = Subpixel_None;-
577 lcdFilterType = 0;-
578-
579 lcdFilterType = (int)((quintptr) FT_LCD_FILTER_DEFAULT);-
580-
581 defaultFormat = Format_None;-
582 embeddedbitmap = false;-
583 const QByteArray env = qgetenv("QT_NO_FT_CACHE");-
584 cacheEnabled = env.isEmpty()
env.isEmpty()Description
TRUEevaluated 2039 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
FALSEnever evaluated
|| env.toInt() == 0
env.toInt() == 0Description
TRUEnever evaluated
FALSEnever evaluated
;
0-2039
585 m_subPixelPositionCount = 4;-
586 forceAutoHint = false;-
587}
executed 2039 times by 123 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
2039
588-
589QFontEngineFT::~QFontEngineFT()-
590{-
591 if (freetype
freetypeDescription
TRUEevaluated 2031 times by 127 tests
Evaluated by:
  • tst_QApplication
  • tst_QFontCache
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QPainter
  • tst_QRawFont
  • tst_QTextLayout
  • tst_languagechange - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • tst_qcompleter - unknown status
  • ...
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QRawFont
)
2-2031
592 freetype->release(face_id);
executed 2031 times by 127 tests: freetype->release(face_id);
Executed by:
  • tst_QApplication
  • tst_QFontCache
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QPainter
  • tst_QRawFont
  • tst_QTextLayout
  • tst_languagechange - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • tst_qcompleter - unknown status
  • ...
2031
593}
executed 2033 times by 127 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QFontCache
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QPainter
  • tst_QRawFont
  • tst_QTextLayout
  • tst_languagechange - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • tst_qcompleter - unknown status
  • ...
2033
594-
595bool QFontEngineFT::init(FaceId faceId, bool antialias, GlyphFormat format,-
596 const QByteArray &fontData)-
597{-
598 return
executed 2035 times by 123 tests: return init(faceId, antialias, format, QFreetypeFace::getFace(faceId, fontData));
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
init(faceId, antialias, format, QFreetypeFace::getFace(faceId, fontData));
executed 2035 times by 123 tests: return init(faceId, antialias, format, QFreetypeFace::getFace(faceId, fontData));
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
2035
599}-
600-
601static void dont_delete(void*) {}-
602-
603bool QFontEngineFT::init(FaceId faceId, bool antialias, GlyphFormat format,-
604 QFreetypeFace *freetypeFace)-
605{-
606 freetype = freetypeFace;-
607 if (!freetype
!freetypeDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QRawFont
FALSEevaluated 2037 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
) {
2-2037
608 xsize = 0;-
609 ysize = 0;-
610 return
executed 2 times by 1 test: return false;
Executed by:
  • tst_QRawFont
false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_QRawFont
2
611 }-
612 defaultFormat = format;-
613 this->antialias = antialias;-
614-
615 if (!antialias
!antialiasDescription
TRUEevaluated 3 times by 2 tests
Evaluated by:
  • tst_QStaticText
  • tst_QWizard
FALSEevaluated 2034 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
)
3-2034
616 glyphFormat = QFontEngine::Format_Mono;
executed 3 times by 2 tests: glyphFormat = QFontEngine::Format_Mono;
Executed by:
  • tst_QStaticText
  • tst_QWizard
3
617 else-
618 glyphFormat = defaultFormat;
executed 2034 times by 123 tests: glyphFormat = defaultFormat;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
2034
619-
620 face_id = faceId;-
621-
622 symbol = freetype->symbol_map != 0;-
623 PS_FontInfoRec psrec;-
624-
625 if (FT_Get_PS_Font_Info(freetype->face, &psrec) == FT_Err_Ok
FT_Get_PS_Font...) == FT_Err_OkDescription
TRUEevaluated 79 times by 6 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QLabel
  • tst_QTextLayout
FALSEevaluated 1958 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
) {
79-1958
626 symbol = bool(fontDef.family.contains(QLatin1String("symbol"), Qt::CaseInsensitive));-
627 }
executed 79 times by 6 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QLabel
  • tst_QTextLayout
79
628-
629 freetype->computeSize(fontDef, &xsize, &ysize, &defaultGlyphSet.outline_drawing, &scalableBitmapScaleFactor);-
630-
631 FT_Face face = lockFace();-
632-
633 if ((
( face->face_f... ( 1L << 0 ) )Description
TRUEevaluated 2037 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
FALSEnever evaluated
face->face_flags & ( 1L << 0 ) )
( face->face_f... ( 1L << 0 ) )Description
TRUEevaluated 2037 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
FALSEnever evaluated
) {
0-2037
634 bool fake_oblique = (
(fontDef.style...::StyleNormal)Description
TRUEevaluated 194 times by 4 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QItemDelegate
  • tst_QTextLayout
FALSEevaluated 1843 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
fontDef.style != QFont::StyleNormal)
(fontDef.style...::StyleNormal)Description
TRUEevaluated 194 times by 4 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QItemDelegate
  • tst_QTextLayout
FALSEevaluated 1843 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
&& !(face->style_flags & ( 1 << 0 ))
!(face->style_... & ( 1 << 0 ))Description
TRUEnever evaluated
FALSEevaluated 194 times by 4 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QItemDelegate
  • tst_QTextLayout
;
0-1843
635 if (fake_oblique
fake_obliqueDescription
TRUEnever evaluated
FALSEevaluated 2037 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
)
0-2037
636 obliquen = true;
never executed: obliquen = true;
0
637 FT_Set_Transform(face, &matrix, 0);-
638 freetype->matrix = matrix;-
639-
640 if ((
(fontDef.weigh...= QFont::Bold)Description
TRUEevaluated 257 times by 37 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • tst_QLabel
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QSortFilterProxyModel
  • tst_QSqlQueryModel
  • tst_QStandardItemModel
  • tst_QStaticText
  • tst_QStyleSheetStyle
  • ...
FALSEevaluated 1780 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
fontDef.weight >= QFont::Bold)
(fontDef.weigh...= QFont::Bold)Description
TRUEevaluated 257 times by 37 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • tst_QLabel
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QSortFilterProxyModel
  • tst_QSqlQueryModel
  • tst_QStandardItemModel
  • tst_QStaticText
  • tst_QStyleSheetStyle
  • ...
FALSEevaluated 1780 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
&& !(face->style_flags & ( 1 << 1 ))
!(face->style_... & ( 1 << 1 ))Description
TRUEnever evaluated
FALSEevaluated 257 times by 37 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • tst_QLabel
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QSortFilterProxyModel
  • tst_QSqlQueryModel
  • tst_QStandardItemModel
  • tst_QStaticText
  • tst_QStyleSheetStyle
  • ...
&& !( face->face_flags & ( 1L << 2 ) )
!( face->face_... ( 1L << 2 ) )Description
TRUEnever evaluated
FALSEnever evaluated
) {
0-1780
641 if (const
const TT_OS2 *... ft_sfnt_os2))Description
TRUEnever evaluated
FALSEnever evaluated
TT_OS2 *os2 = reinterpret_cast<const TT_OS2 *>(FT_Get_Sfnt_Table(face, ft_sfnt_os2))
const TT_OS2 *... ft_sfnt_os2))Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
642 if (os2->usWeightClass < 750
os2->usWeightClass < 750Description
TRUEnever evaluated
FALSEnever evaluated
)
0
643 embolden = true;
never executed: embolden = true;
0
644 }
never executed: end of block
0
645 }
never executed: end of block
0
646-
647 line_thickness = QFixed::fromFixed(FT_MulFix_x86_64( face->underline_thickness, face->size->metrics.y_scale ));-
648 underline_position = QFixed::fromFixed(-FT_MulFix_x86_64( face->underline_position, face->size->metrics.y_scale ));-
649 }
executed 2037 times by 123 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
else {
2037
650-
651 int score = fontDef.weight * fontDef.pixelSize;-
652 line_thickness = score / 700;-
653-
654 if (line_thickness < 2
line_thickness < 2Description
TRUEnever evaluated
FALSEnever evaluated
&& score >= 1050
score >= 1050Description
TRUEnever evaluated
FALSEnever evaluated
)
0
655 line_thickness = 2;
never executed: line_thickness = 2;
0
656 underline_position = ((line_thickness * 2) + 3) / 6;-
657-
658 if (isScalableBitmap()
isScalableBitmap()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
659 glyphFormat = defaultFormat = GlyphFormat::Format_ARGB;-
660 cacheEnabled = false;-
661 }
never executed: end of block
0
662 }
never executed: end of block
0
663 if (line_thickness < 1
line_thickness < 1Description
TRUEevaluated 1738 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
FALSEevaluated 299 times by 18 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QApplication
  • tst_QCssParser
  • tst_QFont
  • tst_QFontComboBox
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QGraphicsProxyWidget
  • tst_QMenu
  • tst_QPainter
  • tst_QRawFont
  • tst_QStaticText
  • tst_QStyleSheetStyle
  • tst_QTextLayout
  • tst_QToolTip
  • tst_QTreeWidget
)
299-1738
664 line_thickness = 1;
executed 1738 times by 123 tests: line_thickness = 1;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
1738
665-
666 metrics = face->size->metrics;-
667 if ((
( face->face_f... ( 1L << 0 ) )Description
TRUEevaluated 2037 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
FALSEnever evaluated
face->face_flags & ( 1L << 0 ) )
( face->face_f... ( 1L << 0 ) )Description
TRUEevaluated 2037 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
FALSEnever evaluated
) {
0-2037
668 for (int i = 0; i < face->num_fixed_sizes
i < face->num_fixed_sizesDescription
TRUEnever evaluated
FALSEevaluated 2037 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
; ++i) {
0-2037
669 if (xsize == face->available_sizes[i].x_ppem
xsize == face-...izes[i].x_ppemDescription
TRUEnever evaluated
FALSEnever evaluated
&& ysize == face->available_sizes[i].y_ppem
ysize == face-...izes[i].y_ppemDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
670 face->face_flags &= ~( 1L << 0 );-
671-
672 FT_Select_Size(face, i);-
673 if (face->size->metrics.ascender + face->size->metrics.descender > 0
face->size->me....descender > 0Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
674 metrics.ascender = face->size->metrics.ascender;-
675 metrics.descender = face->size->metrics.descender;-
676 }
never executed: end of block
0
677 FT_Set_Char_Size(face, xsize, ysize, 0, 0);-
678-
679 face->face_flags |= ( 1L << 0 );-
680 break;
never executed: break;
0
681 }-
682 }
never executed: end of block
0
683 }
executed 2037 times by 123 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
2037
684-
685 fontDef.styleName = QString::fromUtf8(face->style_name);-
686-
687 if (!freetype->hbFace
!freetype->hbFaceDescription
TRUEevaluated 1666 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
FALSEevaluated 371 times by 24 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QComboBox
  • tst_QFont
  • tst_QFontCache
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QMenu
  • tst_QPainter
  • tst_QPlainTextEdit
  • tst_QRawFont
  • tst_QStaticText
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextLayout
  • tst_QToolTip
  • tst_QTreeWidget
  • tst_QWizard
) {
371-1666
688 faceData.user_data = face;-
689 faceData.get_font_table = ft_getSfntTable;-
690 (void)harfbuzzFace();-
691 freetype->hbFace = std::move(face_);-
692 }
executed 1666 times by 123 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
else {
1666
693 ((!(!face_)) ? qt_assert("!face_",__FILE__,804) : qt_noop());-
694 }
executed 371 times by 24 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QComboBox
  • tst_QFont
  • tst_QFontCache
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QMenu
  • tst_QPainter
  • tst_QPlainTextEdit
  • tst_QRawFont
  • tst_QStaticText
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextLayout
  • tst_QToolTip
  • tst_QTreeWidget
  • tst_QWizard
371
695-
696 face_ = Holder(freetype->hbFace.get(), dont_delete);-
697-
698 unlockFace();-
699-
700 fsType = freetype->fsType();-
701 return
executed 2037 times by 123 tests: return true;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
true;
executed 2037 times by 123 tests: return true;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
2037
702}-
703-
704void QFontEngineFT::setQtDefaultHintStyle(QFont::HintingPreference hintingPreference)-
705{-
706 switch (hintingPreference) {-
707 case
executed 311 times by 1 test: case QFont::PreferNoHinting:
Executed by:
  • tst_QRawFont
QFont::PreferNoHinting:
executed 311 times by 1 test: case QFont::PreferNoHinting:
Executed by:
  • tst_QRawFont
311
708 setDefaultHintStyle(HintNone);-
709 break;
executed 311 times by 1 test: break;
Executed by:
  • tst_QRawFont
311
710 case
executed 311 times by 1 test: case QFont::PreferFullHinting:
Executed by:
  • tst_QRawFont
QFont::PreferFullHinting:
executed 311 times by 1 test: case QFont::PreferFullHinting:
Executed by:
  • tst_QRawFont
311
711 setDefaultHintStyle(HintFull);-
712 break;
executed 311 times by 1 test: break;
Executed by:
  • tst_QRawFont
311
713 case
executed 311 times by 1 test: case QFont::PreferVerticalHinting:
Executed by:
  • tst_QRawFont
QFont::PreferVerticalHinting:
executed 311 times by 1 test: case QFont::PreferVerticalHinting:
Executed by:
  • tst_QRawFont
311
714 setDefaultHintStyle(HintLight);-
715 break;
executed 311 times by 1 test: break;
Executed by:
  • tst_QRawFont
311
716 case
executed 315 times by 1 test: case QFont::PreferDefaultHinting:
Executed by:
  • tst_QRawFont
QFont::PreferDefaultHinting:
executed 315 times by 1 test: case QFont::PreferDefaultHinting:
Executed by:
  • tst_QRawFont
315
717 setDefaultHintStyle(ftInitialDefaultHintStyle);-
718 break;
executed 315 times by 1 test: break;
Executed by:
  • tst_QRawFont
315
719 }-
720}
executed 1248 times by 1 test: end of block
Executed by:
  • tst_QRawFont
1248
721-
722void QFontEngineFT::setDefaultHintStyle(HintStyle style)-
723{-
724 default_hint_style = style;-
725}
executed 3281 times by 123 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
3281
726-
727int QFontEngineFT::loadFlags(QGlyphSet *set, GlyphFormat format, int flags,-
728 bool &hsubpixel, int &vfactor) const-
729{-
730 int load_flags = 0x0 | default_load_flags;-
731 int load_target = default_hint_style == HintLight
default_hint_s...e == HintLightDescription
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_QRawFont
FALSEevaluated 25910 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
14-25910
732 ? ( (FT_Int32)( (FT_RENDER_MODE_LIGHT) & 15 ) << 16 )-
733 : ( (FT_Int32)( (FT_RENDER_MODE_NORMAL) & 15 ) << 16 );-
734-
735 if (format == Format_Mono
format == Format_MonoDescription
TRUEevaluated 114 times by 3 tests
Evaluated by:
  • tst_QPainter
  • tst_QStaticText
  • tst_QWizard
FALSEevaluated 25810 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
) {
114-25810
736 load_target = ( (FT_Int32)( (FT_RENDER_MODE_MONO) & 15 ) << 16 );-
737 }
executed 114 times by 3 tests: end of block
Executed by:
  • tst_QPainter
  • tst_QStaticText
  • tst_QWizard
else if (format == Format_A32
format == Format_A32Description
TRUEnever evaluated
FALSEevaluated 25810 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
) {
0-25810
738 if (subpixelType == Subpixel_RGB
subpixelType == Subpixel_RGBDescription
TRUEnever evaluated
FALSEnever evaluated
|| subpixelType == Subpixel_BGR
subpixelType == Subpixel_BGRDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
739 if (default_hint_style == HintFull
default_hint_style == HintFullDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
740 load_target = ( (FT_Int32)( (FT_RENDER_MODE_LCD) & 15 ) << 16 );
never executed: load_target = ( (FT_Int32)( (FT_RENDER_MODE_LCD) & 15 ) << 16 );
0
741 hsubpixel = true;-
742 }
never executed: end of block
else if (subpixelType == Subpixel_VRGB
subpixelType == Subpixel_VRGBDescription
TRUEnever evaluated
FALSEnever evaluated
|| subpixelType == Subpixel_VBGR
subpixelType == Subpixel_VBGRDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
743 if (default_hint_style == HintFull
default_hint_style == HintFullDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
744 load_target = ( (FT_Int32)( (FT_RENDER_MODE_LCD_V) & 15 ) << 16 );
never executed: load_target = ( (FT_Int32)( (FT_RENDER_MODE_LCD_V) & 15 ) << 16 );
0
745 vfactor = 3;-
746 }
never executed: end of block
0
747 }
never executed: end of block
else if (format == Format_ARGB
format == Format_ARGBDescription
TRUEnever evaluated
FALSEevaluated 25810 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
) {
0-25810
748-
749 load_flags |= ( 1L << 20 );-
750-
751 }
never executed: end of block
0
752-
753 if (set
setDescription
TRUEevaluated 25924 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
FALSEnever evaluated
&& set->
set->outline_drawingDescription
TRUEevaluated 40 times by 4 tests
Evaluated by:
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QPainter
  • tst_QToolTip
FALSEevaluated 25884 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
outline_drawing
set->outline_drawingDescription
TRUEevaluated 40 times by 4 tests
Evaluated by:
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QPainter
  • tst_QToolTip
FALSEevaluated 25884 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
)
0-25924
754 load_flags |= ( 1L << 3 );
executed 40 times by 4 tests: load_flags |= ( 1L << 3 );
Executed by:
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QPainter
  • tst_QToolTip
40
755-
756 if (default_hint_style == HintNone
default_hint_style == HintNoneDescription
TRUEevaluated 1055 times by 7 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPrinter
  • tst_QRawFont
  • tst_QStaticText
FALSEevaluated 24869 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
|| (
(flags & DesignMetrics)Description
TRUEnever evaluated
FALSEevaluated 24869 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
flags & DesignMetrics)
(flags & DesignMetrics)Description
TRUEnever evaluated
FALSEevaluated 24869 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
|| (set
setDescription
TRUEevaluated 24869 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
FALSEnever evaluated
&& set->
set->outline_drawingDescription
TRUEevaluated 40 times by 4 tests
Evaluated by:
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QPainter
  • tst_QToolTip
FALSEevaluated 24829 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
outline_drawing
set->outline_drawingDescription
TRUEevaluated 40 times by 4 tests
Evaluated by:
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QPainter
  • tst_QToolTip
FALSEevaluated 24829 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
))
0-24869
757 load_flags |= ( 1L << 1 );
executed 1095 times by 10 tests: load_flags |= ( 1L << 1 );
Executed by:
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPrinter
  • tst_QRawFont
  • tst_QStaticText
  • tst_QToolTip
1095
758 else-
759 load_flags |= load_target;
executed 24829 times by 114 tests: load_flags |= load_target;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
24829
760-
761 if (forceAutoHint
forceAutoHintDescription
TRUEnever evaluated
FALSEevaluated 25924 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
)
0-25924
762 load_flags |= ( 1L << 5 );
never executed: load_flags |= ( 1L << 5 );
0
763-
764 return
executed 25924 times by 114 tests: return load_flags;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
load_flags;
executed 25924 times by 114 tests: return load_flags;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
25924
765}-
766-
767static inline bool areMetricsTooLarge(const QFontEngineFT::GlyphInfo &info)-
768{-
769-
770 return
executed 25922 times by 114 tests: return (short)(info.linearAdvance) != info.linearAdvance || (uchar)(info.width) != info.width || (uchar)(info.height) != info.height;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
(short)(info.linearAdvance) != info.linearAdvance
executed 25922 times by 114 tests: return (short)(info.linearAdvance) != info.linearAdvance || (uchar)(info.width) != info.width || (uchar)(info.height) != info.height;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
25922
771 || (uchar)(info.width) != info.width
executed 25922 times by 114 tests: return (short)(info.linearAdvance) != info.linearAdvance || (uchar)(info.width) != info.width || (uchar)(info.height) != info.height;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
25922
772 || (uchar)(info.height) != info.height;
executed 25922 times by 114 tests: return (short)(info.linearAdvance) != info.linearAdvance || (uchar)(info.width) != info.width || (uchar)(info.height) != info.height;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
25922
773}-
774-
775QFontEngineFT::Glyph *QFontEngineFT::loadGlyph(QGlyphSet *set, uint glyph,-
776 QFixed subPixelPosition,-
777 GlyphFormat format,-
778 bool fetchMetricsOnly) const-
779{-
780-
781-
782 if (format == Format_None
format == Format_NoneDescription
TRUEevaluated 7503 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
FALSEevaluated 18421 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
)
7503-18421
783 format = defaultFormat != Format_None
defaultFormat != Format_NoneDescription
TRUEevaluated 7503 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
FALSEnever evaluated
? defaultFormat : Format_Mono;
executed 7503 times by 114 tests: format = defaultFormat != Format_None ? defaultFormat : Format_Mono;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
0-7503
784 ((!(format != Format_None)) ? qt_assert("format != Format_None",__FILE__,895) : qt_noop());-
785-
786 Glyph *g = set
setDescription
TRUEevaluated 25924 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
FALSEnever evaluated
? set->getGlyph(glyph, subPixelPosition) : 0;
0-25924
787 if (g
gDescription
TRUEevaluated 13665 times by 57 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QLabel
  • ...
FALSEevaluated 12259 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
&& g->format == format
g->format == formatDescription
TRUEevaluated 13664 times by 56 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QLabel
  • ...
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QPainter
&& (fetchMetricsOnly
fetchMetricsOnlyDescription
TRUEnever evaluated
FALSEevaluated 13664 times by 56 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QLabel
  • ...
|| g->data
g->dataDescription
TRUEnever evaluated
FALSEevaluated 13664 times by 56 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QLabel
  • ...
))
0-13665
788 return
never executed: return g;
g;
never executed: return g;
0
789-
790 if (!g
!gDescription
TRUEevaluated 12259 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
FALSEevaluated 13665 times by 57 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QLabel
  • ...
&& set
setDescription
TRUEevaluated 12259 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
FALSEnever evaluated
&& set->
set->isGlyphMissing(glyph)Description
TRUEnever evaluated
FALSEevaluated 12259 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
isGlyphMissing(glyph)
set->isGlyphMissing(glyph)Description
TRUEnever evaluated
FALSEevaluated 12259 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
)
0-13665
791 return
never executed: return &emptyGlyph;
&emptyGlyph;
never executed: return &emptyGlyph;
0
792-
793-
794 FT_Face face = freetype->face;-
795-
796 FT_Matrix matrix = freetype->matrix;-
797-
798 FT_Vector v;-
799 v.x = format == Format_Mono
format == Format_MonoDescription
TRUEevaluated 114 times by 3 tests
Evaluated by:
  • tst_QPainter
  • tst_QStaticText
  • tst_QWizard
FALSEevaluated 25810 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
? 0 : FT_Pos(subPixelPosition.value());
114-25810
800 v.y = 0;-
801 FT_Set_Transform(face, &matrix, &v);-
802-
803 bool hsubpixel = false;-
804 int vfactor = 1;-
805 int load_flags = loadFlags(set, format, 0, hsubpixel, vfactor);-
806-
807 bool transform = matrix.xx != 0x10000
matrix.xx != 0x10000Description
TRUEevaluated 2498 times by 7 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
FALSEevaluated 23426 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
2498-23426
808 || matrix.yy != 0x10000
matrix.yy != 0x10000Description
TRUEnever evaluated
FALSEevaluated 23426 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
0-23426
809 || matrix.xy != 0
matrix.xy != 0Description
TRUEnever evaluated
FALSEevaluated 23426 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
0-23426
810 || matrix.yx != 0
matrix.yx != 0Description
TRUEnever evaluated
FALSEevaluated 23426 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
;
0-23426
811-
812 if (transform
transformDescription
TRUEevaluated 2498 times by 7 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
FALSEevaluated 23426 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
|| (format != Format_Mono
format != Format_MonoDescription
TRUEevaluated 23312 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
FALSEevaluated 114 times by 3 tests
Evaluated by:
  • tst_QPainter
  • tst_QStaticText
  • tst_QWizard
&& !isScalableBitmap()
!isScalableBitmap()Description
TRUEevaluated 23312 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
FALSEnever evaluated
))
0-23426
813 load_flags |= ( 1L << 3 );
executed 25810 times by 114 tests: load_flags |= ( 1L << 3 );
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
25810
814-
815 FT_Error err = FT_Load_Glyph(face, glyph, load_flags);-
816 if (err
errDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QGlyphRun
FALSEevaluated 25922 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
&& (
(load_flags & ( 1L << 3 ))Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QGlyphRun
FALSEnever evaluated
load_flags & ( 1L << 3 ))
(load_flags & ( 1L << 3 ))Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QGlyphRun
FALSEnever evaluated
) {
0-25922
817 load_flags &= ~( 1L << 3 );-
818 err = FT_Load_Glyph(face, glyph, load_flags);-
819 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_QGlyphRun
2
820 if (err == FT_Err_Too_Few_Arguments
err == FT_Err_..._Few_ArgumentsDescription
TRUEnever evaluated
FALSEevaluated 25924 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
) {
0-25924
821-
822 load_flags |= ( 1L << 5 );-
823 err = FT_Load_Glyph(face, glyph, load_flags);-
824 }
never executed: end of block
else if (err == FT_Err_Execution_Too_Long
err == FT_Err_...ution_Too_LongDescription
TRUEnever evaluated
FALSEevaluated 25924 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
) {
0-25924
825-
826-
827 QMessageLogger(__FILE__, 938, __PRETTY_FUNCTION__).warning("load glyph failed due to broken hinting bytecode in font, switching to auto hinting");-
828 default_load_flags |= ( 1L << 5 );-
829 load_flags |= ( 1L << 5 );-
830 err = FT_Load_Glyph(face, glyph, load_flags);-
831 }
never executed: end of block
0
832 if (err != FT_Err_Ok
err != FT_Err_OkDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QGlyphRun
FALSEevaluated 25922 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
) {
2-25922
833 QMessageLogger(__FILE__, 944, __PRETTY_FUNCTION__).warning("load glyph failed err=%x face=%p, glyph=%d", err, face, glyph);-
834 if (set
setDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QGlyphRun
FALSEnever evaluated
)
0-2
835 set->
executed 2 times by 1 test: set->setGlyphMissing(glyph);
Executed by:
  • tst_QGlyphRun
setGlyphMissing(glyph);
executed 2 times by 1 test: set->setGlyphMissing(glyph);
Executed by:
  • tst_QGlyphRun
2
836 return
executed 2 times by 1 test: return &emptyGlyph;
Executed by:
  • tst_QGlyphRun
&emptyGlyph;
executed 2 times by 1 test: return &emptyGlyph;
Executed by:
  • tst_QGlyphRun
2
837 }-
838-
839 FT_GlyphSlot slot = face->glyph;-
840-
841 if (embolden
emboldenDescription
TRUEnever evaluated
FALSEevaluated 25922 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
)
0-25922
842 FT_GlyphSlot_Embolden(slot);
never executed: FT_GlyphSlot_Embolden(slot);
0
843 if (obliquen
obliquenDescription
TRUEnever evaluated
FALSEevaluated 25922 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
) {
0-25922
844 FT_GlyphSlot_Oblique(slot);-
845-
846-
847-
848 transform = true;-
849 FT_Matrix m;-
850 m.xx = 0x10000;-
851 m.yx = 0x0;-
852 m.xy = 0x6000;-
853 m.yy = 0x10000;-
854-
855 FT_Matrix_Multiply(&m, &matrix);-
856 }
never executed: end of block
0
857-
858 GlyphInfo info;-
859 info.linearAdvance = slot->linearHoriAdvance >> 10;-
860 info.xOff = (((((slot->advance.x)+32) & -64)) >> 6);-
861 info.yOff = 0;-
862-
863 if ((set
setDescription
TRUEevaluated 25922 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
FALSEnever evaluated
&& set->
set->outline_drawingDescription
TRUEevaluated 40 times by 4 tests
Evaluated by:
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QPainter
  • tst_QToolTip
FALSEevaluated 25882 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
outline_drawing
set->outline_drawingDescription
TRUEevaluated 40 times by 4 tests
Evaluated by:
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QPainter
  • tst_QToolTip
FALSEevaluated 25882 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
) || fetchMetricsOnly
fetchMetricsOnlyDescription
TRUEevaluated 7462 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
FALSEevaluated 18420 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
) {
0-25922
864 int left = ((slot->metrics.horiBearingX) & -64);-
865 int right = (((slot->metrics.horiBearingX + slot->metrics.width)+63) & -64);-
866 int top = (((slot->metrics.horiBearingY)+63) & -64);-
867 int bottom = ((slot->metrics.horiBearingY - slot->metrics.height) & -64);-
868 info.x = ((left) >> 6);-
869 info.y = ((top) >> 6);-
870 info.width = ((right - left) >> 6);-
871 info.height = ((top - bottom) >> 6);-
872-
873-
874 if (areMetricsTooLarge(info)
areMetricsTooLarge(info)Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_QFontDatabase
FALSEevaluated 7488 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
)
14-7488
875 return
executed 14 times by 1 test: return 0;
Executed by:
  • tst_QFontDatabase
0;
executed 14 times by 1 test: return 0;
Executed by:
  • tst_QFontDatabase
14
876-
877 g = new Glyph;-
878 g->data = 0;-
879 g->linearAdvance = info.linearAdvance;-
880 g->width = info.width;-
881 g->height = info.height;-
882 g->x = info.x;-
883 g->y = info.y;-
884 g->advance = info.xOff;-
885 g->format = format;-
886-
887 if (set
setDescription
TRUEevaluated 7488 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
FALSEnever evaluated
)
0-7488
888 set->
executed 7488 times by 114 tests: set->setGlyph(glyph, subPixelPosition, g);
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
setGlyph(glyph, subPixelPosition, g);
executed 7488 times by 114 tests: set->setGlyph(glyph, subPixelPosition, g);
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
7488
889-
890 return
executed 7488 times by 114 tests: return g;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
g;
executed 7488 times by 114 tests: return g;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
7488
891 }-
892-
893 int glyph_buffer_size = 0;-
894 QScopedArrayPointer<uchar> glyph_buffer;-
895-
896 bool useFreetypeRenderGlyph = false;-
897 if (slot->format == FT_GLYPH_FORMAT_OUTLINE
slot->format =...FORMAT_OUTLINEDescription
TRUEevaluated 18420 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
FALSEnever evaluated
&& (hsubpixel
hsubpixelDescription
TRUEnever evaluated
FALSEevaluated 18420 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
|| vfactor != 1
vfactor != 1Description
TRUEnever evaluated
FALSEevaluated 18420 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
)) {
0-18420
898 err = FT_Library_SetLcdFilter(slot->library, (FT_LcdFilter)lcdFilterType);-
899 if (err == FT_Err_Ok
err == FT_Err_OkDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
900 useFreetypeRenderGlyph = true;
never executed: useFreetypeRenderGlyph = true;
0
901 }
never executed: end of block
0
902-
903 if (useFreetypeRenderGlyph
useFreetypeRenderGlyphDescription
TRUEnever evaluated
FALSEevaluated 18420 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
) {
0-18420
904 err = FT_Render_Glyph(slot, hsubpixel ? FT_RENDER_MODE_LCD : FT_RENDER_MODE_LCD_V);-
905-
906 if (err != FT_Err_Ok
err != FT_Err_OkDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
907 QMessageLogger(__FILE__, 1018, __PRETTY_FUNCTION__).warning("render glyph failed err=%x face=%p, glyph=%d", err, face, glyph);
never executed: QMessageLogger(__FILE__, 1018, __PRETTY_FUNCTION__).warning("render glyph failed err=%x face=%p, glyph=%d", err, face, glyph);
0
908-
909 FT_Library_SetLcdFilter(slot->library, FT_LCD_FILTER_NONE);-
910-
911 info.height = slot->bitmap.rows / vfactor;-
912 info.width = hsubpixel
hsubpixelDescription
TRUEnever evaluated
FALSEnever evaluated
? slot->bitmap.width / 3 : slot->bitmap.width;
0
913 info.x = slot->bitmap_left;-
914 info.y = slot->bitmap_top;-
915-
916 glyph_buffer_size = info.width * info.height * 4;-
917 glyph_buffer.reset(new uchar[glyph_buffer_size]);-
918-
919 if (hsubpixel
hsubpixelDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
920 convertRGBToARGB(slot->bitmap.buffer, (uint *)glyph_buffer.data(), info.width, info.height, slot->bitmap.pitch, subpixelType != Subpixel_RGB, false);
never executed: convertRGBToARGB(slot->bitmap.buffer, (uint *)glyph_buffer.data(), info.width, info.height, slot->bitmap.pitch, subpixelType != Subpixel_RGB, false);
0
921 else if (vfactor != 1
vfactor != 1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
922 convertRGBToARGB_V(slot->bitmap.buffer, (uint *)glyph_buffer.data(), info.width, info.height, slot->bitmap.pitch, subpixelType != Subpixel_VRGB, false);
never executed: convertRGBToARGB_V(slot->bitmap.buffer, (uint *)glyph_buffer.data(), info.width, info.height, slot->bitmap.pitch, subpixelType != Subpixel_VRGB, false);
0
923 }
never executed: end of block
else
0
924-
925 {-
926 int left = slot->metrics.horiBearingX;-
927 int right = slot->metrics.horiBearingX + slot->metrics.width;-
928 int top = slot->metrics.horiBearingY;-
929 int bottom = slot->metrics.horiBearingY - slot->metrics.height;-
930 if(transform
transformDescription
TRUEevaluated 2498 times by 7 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
FALSEevaluated 15922 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
&& slot->format != FT_GLYPH_FORMAT_BITMAP
slot->format !..._FORMAT_BITMAPDescription
TRUEevaluated 2498 times by 7 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
FALSEnever evaluated
) {
0-15922
931 int l, r, t, b;-
932 FT_Vector vector;-
933 vector.x = left;-
934 vector.y = top;-
935 FT_Vector_Transform(&vector, &matrix);-
936 l = r = vector.x;-
937 t = b = vector.y;-
938 vector.x = right;-
939 vector.y = top;-
940 FT_Vector_Transform(&vector, &matrix);-
941 if (l > vector.x
l > vector.xDescription
TRUEevaluated 608 times by 1 test
Evaluated by:
  • tst_QGraphicsView
FALSEevaluated 1890 times by 7 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
) l = vector.x;
executed 608 times by 1 test: l = vector.x;
Executed by:
  • tst_QGraphicsView
608-1890
942 if (r < vector.x
r < vector.xDescription
TRUEevaluated 1279 times by 5 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QPrinter
  • tst_QStaticText
FALSEevaluated 1219 times by 7 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
) r = vector.x;
executed 1279 times by 5 tests: r = vector.x;
Executed by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QPrinter
  • tst_QStaticText
1219-1279
943 if (t < vector.y
t < vector.yDescription
TRUEevaluated 704 times by 3 tests
Evaluated by:
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QTabWidget
FALSEevaluated 1794 times by 7 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
) t = vector.y;
executed 704 times by 3 tests: t = vector.y;
Executed by:
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QTabWidget
704-1794
944 if (b > vector.y
b > vector.yDescription
TRUEevaluated 688 times by 5 tests
Evaluated by:
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QStaticText
  • tst_QTabWidget
FALSEevaluated 1810 times by 7 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
) b = vector.y;
executed 688 times by 5 tests: b = vector.y;
Executed by:
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QStaticText
  • tst_QTabWidget
688-1810
945 vector.x = right;-
946 vector.y = bottom;-
947 FT_Vector_Transform(&vector, &matrix);-
948 if (l > vector.x
l > vector.xDescription
TRUEevaluated 590 times by 5 tests
Evaluated by:
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QStaticText
  • tst_QTabWidget
FALSEevaluated 1908 times by 7 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
) l = vector.x;
executed 590 times by 5 tests: l = vector.x;
Executed by:
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QStaticText
  • tst_QTabWidget
590-1908
949 if (r < vector.x
r < vector.xDescription
TRUEevaluated 620 times by 3 tests
Evaluated by:
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QTabWidget
FALSEevaluated 1878 times by 7 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
) r = vector.x;
executed 620 times by 3 tests: r = vector.x;
Executed by:
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QTabWidget
620-1878
950 if (t < vector.y
t < vector.yDescription
TRUEevaluated 524 times by 1 test
Evaluated by:
  • tst_QGraphicsView
FALSEevaluated 1974 times by 7 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
) t = vector.y;
executed 524 times by 1 test: t = vector.y;
Executed by:
  • tst_QGraphicsView
524-1974
951 if (b > vector.y
b > vector.yDescription
TRUEevaluated 1186 times by 5 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QPrinter
  • tst_QStaticText
FALSEevaluated 1312 times by 7 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
) b = vector.y;
executed 1186 times by 5 tests: b = vector.y;
Executed by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QPrinter
  • tst_QStaticText
1186-1312
952 vector.x = left;-
953 vector.y = bottom;-
954 FT_Vector_Transform(&vector, &matrix);-
955 if (l > vector.x
l > vector.xDescription
TRUEevaluated 334 times by 3 tests
Evaluated by:
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QStaticText
FALSEevaluated 2164 times by 7 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
) l = vector.x;
executed 334 times by 3 tests: l = vector.x;
Executed by:
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QStaticText
334-2164
956 if (r < vector.x
r < vector.xDescription
TRUEevaluated 288 times by 1 test
Evaluated by:
  • tst_QGraphicsView
FALSEevaluated 2210 times by 7 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
) r = vector.x;
executed 288 times by 1 test: r = vector.x;
Executed by:
  • tst_QGraphicsView
288-2210
957 if (t < vector.y
t < vector.yDescription
TRUEevaluated 256 times by 1 test
Evaluated by:
  • tst_QGraphicsView
FALSEevaluated 2242 times by 7 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
) t = vector.y;
executed 256 times by 1 test: t = vector.y;
Executed by:
  • tst_QGraphicsView
256-2242
958 if (b > vector.y
b > vector.yDescription
TRUEevaluated 320 times by 1 test
Evaluated by:
  • tst_QGraphicsView
FALSEevaluated 2178 times by 7 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
) b = vector.y;
executed 320 times by 1 test: b = vector.y;
Executed by:
  • tst_QGraphicsView
320-2178
959 left = l;-
960 right = r;-
961 top = t;-
962 bottom = b;-
963 }
executed 2498 times by 7 tests: end of block
Executed by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
2498
964 left = ((left) & -64);-
965 right = (((right)+63) & -64);-
966 bottom = ((bottom) & -64);-
967 top = (((top)+63) & -64);-
968-
969 int hpixels = ((right - left) >> 6);-
970-
971 if (subPixelPosition > 0
subPixelPosition > 0Description
TRUEevaluated 50 times by 1 test
Evaluated by:
  • tst_QPainter
FALSEevaluated 18370 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
&& format != Format_Mono
format != Format_MonoDescription
TRUEevaluated 50 times by 1 test
Evaluated by:
  • tst_QPainter
FALSEnever evaluated
)
0-18370
972 hpixels++;
executed 50 times by 1 test: hpixels++;
Executed by:
  • tst_QPainter
50
973-
974 if (hsubpixel
hsubpixelDescription
TRUEnever evaluated
FALSEevaluated 18420 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
)
0-18420
975 hpixels = hpixels*3 + 8;
never executed: hpixels = hpixels*3 + 8;
0
976 info.width = hpixels;-
977 info.height = ((top - bottom) >> 6);-
978 info.x = ((left) >> 6);-
979 info.y = ((top) >> 6);-
980 if (hsubpixel
hsubpixelDescription
TRUEnever evaluated
FALSEevaluated 18420 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
) {
0-18420
981 info.width /= 3;-
982 info.x -= 1;-
983 }
never executed: end of block
0
984-
985-
986 if (areMetricsTooLarge(info)
areMetricsTooLarge(info)Description
TRUEnever evaluated
FALSEevaluated 18420 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
)
0-18420
987 return
never executed: return 0;
0;
never executed: return 0;
0
988-
989 int pitch = (format == Format_Mono
format == Format_MonoDescription
TRUEevaluated 66 times by 3 tests
Evaluated by:
  • tst_QPainter
  • tst_QStaticText
  • tst_QWizard
FALSEevaluated 18354 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
? ((info.width + 31) & ~31) >> 3 :
66-18354
990 (format == Format_A8
format == Format_A8Description
TRUEevaluated 18354 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
FALSEnever evaluated
? (info.width + 3) & ~3 : info.width * 4));
0-18354
991 if (glyph_buffer_size < pitch * info.height
glyph_buffer_s... * info.heightDescription
TRUEevaluated 4558 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
FALSEevaluated 13862 times by 58 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QLabel
  • ...
) {
4558-13862
992 glyph_buffer_size = pitch * info.height;-
993 glyph_buffer.reset(new uchar[glyph_buffer_size]);-
994 memset(glyph_buffer.data(), 0, glyph_buffer_size);-
995 }
executed 4558 times by 76 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
4558
996-
997 if (slot->format == FT_GLYPH_FORMAT_OUTLINE
slot->format =...FORMAT_OUTLINEDescription
TRUEevaluated 18420 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
FALSEnever evaluated
) {
0-18420
998 FT_Bitmap bitmap;-
999 bitmap.rows = info.height*vfactor;-
1000 bitmap.width = hpixels;-
1001 bitmap.pitch = format == Format_Mono
format == Format_MonoDescription
TRUEevaluated 66 times by 3 tests
Evaluated by:
  • tst_QPainter
  • tst_QStaticText
  • tst_QWizard
FALSEevaluated 18354 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
? (((info.width + 31) & ~31) >> 3) : ((bitmap.width + 3) & ~3);
66-18354
1002 int bitmap_buffer_size = bitmap.rows * bitmap.pitch;-
1003 if (!hsubpixel
!hsubpixelDescription
TRUEevaluated 18420 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
FALSEnever evaluated
&& vfactor == 1
vfactor == 1Description
TRUEevaluated 18420 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
FALSEnever evaluated
&& format != Format_A32
format != Format_A32Description
TRUEevaluated 18420 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
FALSEnever evaluated
) {
0-18420
1004 ((!(glyph_buffer_size <= bitmap_buffer_size)) ? qt_assert("glyph_buffer_size <= bitmap_buffer_size",__FILE__,1115) : qt_noop());-
1005 bitmap.buffer = glyph_buffer.data();-
1006 }
executed 18420 times by 76 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
else {
18420
1007 bitmap.buffer = new uchar[bitmap_buffer_size];-
1008 memset(bitmap.buffer, 0, bitmap_buffer_size);-
1009 }
never executed: end of block
0
1010 bitmap.pixel_mode = format == Format_Mono
format == Format_MonoDescription
TRUEevaluated 66 times by 3 tests
Evaluated by:
  • tst_QPainter
  • tst_QStaticText
  • tst_QWizard
FALSEevaluated 18354 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
? FT_PIXEL_MODE_MONO : FT_PIXEL_MODE_GRAY;
66-18354
1011 FT_Matrix matrix;-
1012 matrix.xx = (hsubpixel
hsubpixelDescription
TRUEnever evaluated
FALSEevaluated 18420 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
? 3 : 1) << 16;
0-18420
1013 matrix.yy = vfactor << 16;-
1014 matrix.yx = matrix.xy = 0;-
1015-
1016 FT_Outline_Transform(&slot->outline, &matrix);-
1017 FT_Outline_Translate (&slot->outline, (hsubpixel ? -3*left +(4<<6) : -left), -bottom*vfactor);-
1018 FT_Outline_Get_Bitmap(slot->library, &slot->outline, &bitmap);-
1019 if (hsubpixel
hsubpixelDescription
TRUEnever evaluated
FALSEevaluated 18420 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
) {
0-18420
1020 ((!(bitmap.pixel_mode == FT_PIXEL_MODE_GRAY)) ? qt_assert("bitmap.pixel_mode == FT_PIXEL_MODE_GRAY",__FILE__,1131) : qt_noop());-
1021 ((!(antialias)) ? qt_assert("antialias",__FILE__,1132) : qt_noop());-
1022 uchar *convoluted = new uchar[bitmap_buffer_size];-
1023 bool useLegacyLcdFilter = false;-
1024-
1025-
1026-
1027 uchar *buffer = bitmap.buffer;-
1028 if (!useLegacyLcdFilter
!useLegacyLcdFilterDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
1029 convoluteBitmap(bitmap.buffer, convoluted, bitmap.width, info.height, bitmap.pitch);-
1030 buffer = convoluted;-
1031 }
never executed: end of block
0
1032 convertRGBToARGB(buffer + 1, (uint *)glyph_buffer.data(), info.width, info.height, bitmap.pitch, subpixelType != Subpixel_RGB, useLegacyLcdFilter);-
1033 delete [] convoluted;-
1034 }
never executed: end of block
else if (vfactor != 1
vfactor != 1Description
TRUEnever evaluated
FALSEevaluated 18420 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
) {
0-18420
1035 convertRGBToARGB_V(bitmap.buffer, (uint *)glyph_buffer.data(), info.width, info.height, bitmap.pitch, subpixelType != Subpixel_VRGB, true);-
1036 }
never executed: end of block
else if (format == Format_A32
format == Format_A32Description
TRUEnever evaluated
FALSEevaluated 18420 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
&& bitmap.pixel_mode == FT_PIXEL_MODE_GRAY
bitmap.pixel_m...IXEL_MODE_GRAYDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0-18420
1037 convertGRAYToARGB(bitmap.buffer, (uint *)glyph_buffer.data(), info.width, info.height, bitmap.pitch);-
1038 }
never executed: end of block
0
1039-
1040 if (bitmap.buffer != glyph_buffer.data()
bitmap.buffer ..._buffer.data()Description
TRUEnever evaluated
FALSEevaluated 18420 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
)
0-18420
1041 delete [] bitmap.buffer;
never executed: delete [] bitmap.buffer;
0
1042 }
executed 18420 times by 76 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
else if (slot->format == FT_GLYPH_FORMAT_BITMAP
slot->format =..._FORMAT_BITMAPDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0-18420
1043-
1044 ((!(slot->bitmap.pixel_mode == FT_PIXEL_MODE_MONO || slot->bitmap.pixel_mode == FT_PIXEL_MODE_BGRA)) ? qt_assert("slot->bitmap.pixel_mode == FT_PIXEL_MODE_MONO || slot->bitmap.pixel_mode == FT_PIXEL_MODE_BGRA",__FILE__,1155) : qt_noop());-
1045-
1046-
1047-
1048 uchar *src = slot->bitmap.buffer;-
1049 uchar *dst = glyph_buffer.data();-
1050 int h = slot->bitmap.rows;-
1051 if (format == Format_Mono
format == Format_MonoDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
1052 int bytes = ((info.width + 7) & ~7) >> 3;-
1053 while (h--
h--Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1054 memcpy (dst, src, bytes);-
1055 dst += pitch;-
1056 src += slot->bitmap.pitch;-
1057 }
never executed: end of block
0
1058 }
never executed: end of block
else if (slot->bitmap.pixel_mode == FT_PIXEL_MODE_MONO
slot->bitmap.p...IXEL_MODE_MONODescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
1059 if (hsubpixel
hsubpixelDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
1060 while (h--
h--Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1061 uint *dd = (uint *)dst;-
1062 *dd++ = 0;-
1063 for (int x = 0; x < static_cast<int>(slot->bitmap.width)
x < static_cas...>bitmap.width)Description
TRUEnever evaluated
FALSEnever evaluated
; x++) {
0
1064 uint a = ((
(src[x >> 3] &...0 >> (x & 7)))Description
TRUEnever evaluated
FALSEnever evaluated
src[x >> 3] & (0x80 >> (x & 7)))
(src[x >> 3] &...0 >> (x & 7)))Description
TRUEnever evaluated
FALSEnever evaluated
? 0xffffff : 0x000000);
0
1065 *dd++ = a;-
1066 }
never executed: end of block
0
1067 *dd++ = 0;-
1068 dst += pitch;-
1069 src += slot->bitmap.pitch;-
1070 }
never executed: end of block
0
1071 }
never executed: end of block
else if (vfactor != 1
vfactor != 1Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1072 while (h--
h--Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1073 uint *dd = (uint *)dst;-
1074 for (int x = 0; x < static_cast<int>(slot->bitmap.width)
x < static_cas...>bitmap.width)Description
TRUEnever evaluated
FALSEnever evaluated
; x++) {
0
1075 uint a = ((
(src[x >> 3] &...0 >> (x & 7)))Description
TRUEnever evaluated
FALSEnever evaluated
src[x >> 3] & (0x80 >> (x & 7)))
(src[x >> 3] &...0 >> (x & 7)))Description
TRUEnever evaluated
FALSEnever evaluated
? 0xffffff : 0x000000);
0
1076 *dd++ = a;-
1077 }
never executed: end of block
0
1078 dst += pitch;-
1079 src += slot->bitmap.pitch;-
1080 }
never executed: end of block
0
1081 }
never executed: end of block
else {
0
1082 while (h--
h--Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1083 for (int x = 0; x < static_cast<int>(slot->bitmap.width)
x < static_cas...>bitmap.width)Description
TRUEnever evaluated
FALSEnever evaluated
; x++) {
0
1084 unsigned char a = ((
(src[x >> 3] &...0 >> (x & 7)))Description
TRUEnever evaluated
FALSEnever evaluated
src[x >> 3] & (0x80 >> (x & 7)))
(src[x >> 3] &...0 >> (x & 7)))Description
TRUEnever evaluated
FALSEnever evaluated
? 0xff : 0x00);
0
1085 dst[x] = a;-
1086 }
never executed: end of block
0
1087 dst += pitch;-
1088 src += slot->bitmap.pitch;-
1089 }
never executed: end of block
0
1090 }
never executed: end of block
0
1091 }-
1092-
1093 else if (slot->bitmap.pixel_mode == FT_PIXEL_MODE_BGRA
slot->bitmap.p...IXEL_MODE_BGRADescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1094 {-
1095 while (h--
h--Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1096 memcpy(dst, src, slot->bitmap.width * 4);-
1097-
1098 dst += slot->bitmap.pitch;-
1099 src += slot->bitmap.pitch;-
1100 }
never executed: end of block
0
1101 info.width = info.linearAdvance = info.xOff = slot->bitmap.width;-
1102 info.height = slot->bitmap.rows;-
1103 info.x = slot->bitmap_left;-
1104 info.y = slot->bitmap_top;-
1105 }
never executed: end of block
0
1106-
1107 }
never executed: end of block
else {
0
1108 QMessageLogger(__FILE__, 1227, __PRETTY_FUNCTION__).warning("QFontEngine: Glyph neither outline nor bitmap format=%d", slot->format);-
1109 return
never executed: return 0;
0;
never executed: return 0;
0
1110 }-
1111 }-
1112-
1113-
1114 if (!g
!gDescription
TRUEevaluated 4755 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
FALSEevaluated 13665 times by 57 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QLabel
  • ...
) {
4755-13665
1115 g = new Glyph;-
1116 g->data = 0;-
1117 }
executed 4755 times by 76 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
4755
1118-
1119 g->linearAdvance = info.linearAdvance;-
1120 g->width = info.width;-
1121 g->height = info.height;-
1122 g->x = info.x;-
1123 g->y = info.y;-
1124 g->advance = info.xOff;-
1125 g->format = format;-
1126 delete [] g->data;-
1127 g->data = glyph_buffer.take();-
1128-
1129 if (set
setDescription
TRUEevaluated 18420 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
FALSEnever evaluated
)
0-18420
1130 set->
executed 18420 times by 76 tests: set->setGlyph(glyph, subPixelPosition, g);
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
setGlyph(glyph, subPixelPosition, g);
executed 18420 times by 76 tests: set->setGlyph(glyph, subPixelPosition, g);
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
18420
1131-
1132 return
executed 18420 times by 76 tests: return g;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
g;
executed 18420 times by 76 tests: return g;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
18420
1133}-
1134-
1135QFontEngine::FaceId QFontEngineFT::faceId() const-
1136{-
1137 return
executed 3703 times by 123 tests: return face_id;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
face_id;
executed 3703 times by 123 tests: return face_id;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
3703
1138}-
1139-
1140QFontEngine::Properties QFontEngineFT::properties() const-
1141{-
1142 Properties p = freetype->properties();-
1143 if (p.postscriptName.isEmpty()
p.postscriptName.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1144 p.postscriptName = QFontEngine::convertToPostscriptFontFamilyName(fontDef.family.toUtf8());-
1145 }
never executed: end of block
0
1146-
1147 return
never executed: return freetype->properties();
freetype->properties();
never executed: return freetype->properties();
0
1148}-
1149-
1150QFixed QFontEngineFT::emSquareSize() const-
1151{-
1152 if ((
( freetype->fa... ( 1L << 0 ) )Description
TRUEevaluated 2321 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
FALSEnever evaluated
freetype->face->face_flags & ( 1L << 0 ) )
( freetype->fa... ( 1L << 0 ) )Description
TRUEevaluated 2321 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
FALSEnever evaluated
)
0-2321
1153 return
executed 2321 times by 123 tests: return freetype->face->units_per_EM;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
freetype->face->units_per_EM;
executed 2321 times by 123 tests: return freetype->face->units_per_EM;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
2321
1154 else-
1155 return
never executed: return freetype->face->size->metrics.y_ppem;
freetype->face->size->metrics.y_ppem;
never executed: return freetype->face->size->metrics.y_ppem;
0
1156}-
1157-
1158bool QFontEngineFT::getSfntTableData(uint tag, uchar *buffer, uint *length) const-
1159{-
1160 return
executed 944 times by 110 tests: return ft_getSfntTable(freetype->face, tag, buffer, length);
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
ft_getSfntTable(freetype->face, tag, buffer, length);
executed 944 times by 110 tests: return ft_getSfntTable(freetype->face, tag, buffer, length);
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
944
1161}-
1162-
1163int QFontEngineFT::synthesized() const-
1164{-
1165 int s = 0;-
1166 if ((
(fontDef.style...::StyleNormal)Description
TRUEnever evaluated
FALSEnever evaluated
fontDef.style != QFont::StyleNormal)
(fontDef.style...::StyleNormal)Description
TRUEnever evaluated
FALSEnever evaluated
&& !(freetype->face->style_flags & ( 1 << 0 ))
!(freetype->fa... & ( 1 << 0 ))Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1167 s = SynthesizedItalic;
never executed: s = SynthesizedItalic;
0
1168 if ((
(fontDef.weigh...= QFont::Bold)Description
TRUEnever evaluated
FALSEnever evaluated
fontDef.weight >= QFont::Bold)
(fontDef.weigh...= QFont::Bold)Description
TRUEnever evaluated
FALSEnever evaluated
&& !(freetype->face->style_flags & ( 1 << 1 ))
!(freetype->fa... & ( 1 << 1 ))Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1169 s |= SynthesizedBold;
never executed: s |= SynthesizedBold;
0
1170 if (fontDef.stretch != 100
fontDef.stretch != 100Description
TRUEnever evaluated
FALSEnever evaluated
&& (
( freetype->fa... ( 1L << 0 ) )Description
TRUEnever evaluated
FALSEnever evaluated
freetype->face->face_flags & ( 1L << 0 ) )
( freetype->fa... ( 1L << 0 ) )Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1171 s |= SynthesizedStretch;
never executed: s |= SynthesizedStretch;
0
1172 return
never executed: return s;
s;
never executed: return s;
0
1173}-
1174-
1175QFixed QFontEngineFT::ascent() const-
1176{-
1177 QFixed v = QFixed::fromFixed(metrics.ascender);-
1178 if (scalableBitmapScaleFactor != 1
scalableBitmapScaleFactor != 1Description
TRUEnever evaluated
FALSEevaluated 697846 times by 121 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
)
0-697846
1179 v *= scalableBitmapScaleFactor;
never executed: v *= scalableBitmapScaleFactor;
0
1180 return
executed 697846 times by 121 tests: return v;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
v;
executed 697846 times by 121 tests: return v;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
697846
1181}-
1182-
1183QFixed QFontEngineFT::descent() const-
1184{-
1185 QFixed v = QFixed::fromFixed(-metrics.descender);-
1186 if (scalableBitmapScaleFactor != 1
scalableBitmapScaleFactor != 1Description
TRUEnever evaluated
FALSEevaluated 693872 times by 121 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
)
0-693872
1187 v *= scalableBitmapScaleFactor;
never executed: v *= scalableBitmapScaleFactor;
0
1188 return
executed 693872 times by 121 tests: return v;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
v;
executed 693872 times by 121 tests: return v;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
693872
1189}-
1190-
1191QFixed QFontEngineFT::leading() const-
1192{-
1193 QFixed v = QFixed::fromFixed(metrics.height - metrics.ascender + metrics.descender);-
1194 if (scalableBitmapScaleFactor != 1
scalableBitmapScaleFactor != 1Description
TRUEnever evaluated
FALSEevaluated 630142 times by 117 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
)
0-630142
1195 v *= scalableBitmapScaleFactor;
never executed: v *= scalableBitmapScaleFactor;
0
1196 return
executed 630142 times by 117 tests: return v;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
v;
executed 630142 times by 117 tests: return v;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
630142
1197}-
1198-
1199QFixed QFontEngineFT::xHeight() const-
1200{-
1201 if (!isScalableBitmap()
!isScalableBitmap()Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QCssParser
FALSEnever evaluated
) {
0-12
1202 TT_OS2 *os2 = (TT_OS2 *)FT_Get_Sfnt_Table(freetype->face, ft_sfnt_os2);-
1203 if (os2
os2Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QCssParser
FALSEnever evaluated
&& os2->sxHeight
os2->sxHeightDescription
TRUEnever evaluated
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_QCssParser
) {
0-12
1204 lockFace();-
1205 QFixed answer = QFixed(os2->sxHeight * freetype->face->size->metrics.y_ppem) / emSquareSize();-
1206 unlockFace();-
1207 return
never executed: return answer;
answer;
never executed: return answer;
0
1208 }-
1209 }
executed 12 times by 1 test: end of block
Executed by:
  • tst_QCssParser
else {
12
1210 return
never executed: return QFixed(freetype->face->size->metrics.y_ppem) * scalableBitmapScaleFactor;
QFixed(freetype->face->size->metrics.y_ppem) * scalableBitmapScaleFactor;
never executed: return QFixed(freetype->face->size->metrics.y_ppem) * scalableBitmapScaleFactor;
0
1211 }-
1212 return
executed 12 times by 1 test: return QFontEngine::xHeight();
Executed by:
  • tst_QCssParser
QFontEngine::xHeight();
executed 12 times by 1 test: return QFontEngine::xHeight();
Executed by:
  • tst_QCssParser
12
1213}-
1214-
1215QFixed QFontEngineFT::averageCharWidth() const-
1216{-
1217 if (!isScalableBitmap()
!isScalableBitmap()Description
TRUEevaluated 217 times by 22 tests
Evaluated by:
  • tst_QApplication
  • tst_QDataWidgetMapper
  • tst_QFontMetrics
  • tst_QGraphicsItem
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMessageBox
  • tst_QMovie
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QProgressDialog
  • tst_QSplitter
  • tst_QStackedLayout
  • tst_QTabWidget
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextFormat
  • tst_QTextLayout
  • tst_QWidget
  • tst_QWizard
FALSEnever evaluated
) {
0-217
1218 TT_OS2 *os2 = (TT_OS2 *)FT_Get_Sfnt_Table(freetype->face, ft_sfnt_os2);-
1219 if (os2
os2Description
TRUEevaluated 217 times by 22 tests
Evaluated by:
  • tst_QApplication
  • tst_QDataWidgetMapper
  • tst_QFontMetrics
  • tst_QGraphicsItem
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMessageBox
  • tst_QMovie
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QProgressDialog
  • tst_QSplitter
  • tst_QStackedLayout
  • tst_QTabWidget
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextFormat
  • tst_QTextLayout
  • tst_QWidget
  • tst_QWizard
FALSEnever evaluated
&& os2->xAvgCharWidth
os2->xAvgCharWidthDescription
TRUEevaluated 217 times by 22 tests
Evaluated by:
  • tst_QApplication
  • tst_QDataWidgetMapper
  • tst_QFontMetrics
  • tst_QGraphicsItem
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMessageBox
  • tst_QMovie
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QProgressDialog
  • tst_QSplitter
  • tst_QStackedLayout
  • tst_QTabWidget
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextFormat
  • tst_QTextLayout
  • tst_QWidget
  • tst_QWizard
FALSEnever evaluated
) {
0-217
1220 lockFace();-
1221 QFixed answer = QFixed(os2->xAvgCharWidth * freetype->face->size->metrics.x_ppem) / emSquareSize();-
1222 unlockFace();-
1223 return
executed 217 times by 22 tests: return answer;
Executed by:
  • tst_QApplication
  • tst_QDataWidgetMapper
  • tst_QFontMetrics
  • tst_QGraphicsItem
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMessageBox
  • tst_QMovie
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QProgressDialog
  • tst_QSplitter
  • tst_QStackedLayout
  • tst_QTabWidget
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextFormat
  • tst_QTextLayout
  • tst_QWidget
  • tst_QWizard
answer;
executed 217 times by 22 tests: return answer;
Executed by:
  • tst_QApplication
  • tst_QDataWidgetMapper
  • tst_QFontMetrics
  • tst_QGraphicsItem
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMessageBox
  • tst_QMovie
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QProgressDialog
  • tst_QSplitter
  • tst_QStackedLayout
  • tst_QTabWidget
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextFormat
  • tst_QTextLayout
  • tst_QWidget
  • tst_QWizard
217
1224 }-
1225 }
never executed: end of block
else {
0
1226 const qreal aspectRatio = (qreal)xsize / ysize;-
1227 return
never executed: return QFixed::fromReal(fontDef.pixelSize * aspectRatio);
QFixed::fromReal(fontDef.pixelSize * aspectRatio);
never executed: return QFixed::fromReal(fontDef.pixelSize * aspectRatio);
0
1228 }-
1229-
1230 return
never executed: return QFontEngine::averageCharWidth();
QFontEngine::averageCharWidth();
never executed: return QFontEngine::averageCharWidth();
0
1231}-
1232-
1233qreal QFontEngineFT::maxCharWidth() const-
1234{-
1235 QFixed max_advance = QFixed::fromFixed(metrics.max_advance);-
1236 if (scalableBitmapScaleFactor != 1
scalableBitmapScaleFactor != 1Description
TRUEnever evaluated
FALSEevaluated 3072 times by 49 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • tst_QHeaderView
  • ...
)
0-3072
1237 max_advance *= scalableBitmapScaleFactor;
never executed: max_advance *= scalableBitmapScaleFactor;
0
1238 return
executed 3072 times by 49 tests: return max_advance.toReal();
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • tst_QHeaderView
  • ...
max_advance.toReal();
executed 3072 times by 49 tests: return max_advance.toReal();
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • tst_QHeaderView
  • ...
3072
1239}-
1240-
1241QFixed QFontEngineFT::lineThickness() const-
1242{-
1243 return
executed 499 times by 24 tests: return line_thickness;
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QPrinter
  • tst_QPushButton
  • tst_QStaticText
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTextEdit
  • tst_QToolBar
  • tst_QWizard
  • tst_languageChange
line_thickness;
executed 499 times by 24 tests: return line_thickness;
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QPrinter
  • tst_QPushButton
  • tst_QStaticText
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTextEdit
  • tst_QToolBar
  • tst_QWizard
  • tst_languageChange
499
1244}-
1245-
1246QFixed QFontEngineFT::underlinePosition() const-
1247{-
1248 return
executed 496 times by 23 tests: return underline_position;
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGlyphRun
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QPrinter
  • tst_QPushButton
  • tst_QStaticText
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTextEdit
  • tst_QToolBar
  • tst_QWizard
  • tst_languageChange
underline_position;
executed 496 times by 23 tests: return underline_position;
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGlyphRun
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QPrinter
  • tst_QPushButton
  • tst_QStaticText
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTextEdit
  • tst_QToolBar
  • tst_QWizard
  • tst_languageChange
496
1249}-
1250-
1251void QFontEngineFT::doKerning(QGlyphLayout *g, QFontEngine::ShaperFlags flags) const-
1252{-
1253 if (!kerning_pairs_loaded
!kerning_pairs_loadedDescription
TRUEevaluated 24 times by 6 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
  • tst_QTextLayout
FALSEevaluated 570 times by 6 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
  • tst_QTextLayout
) {
24-570
1254 kerning_pairs_loaded = true;-
1255 lockFace();-
1256 if (freetype->face->size->metrics.x_ppem != 0
freetype->face...cs.x_ppem != 0Description
TRUEevaluated 24 times by 6 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
  • tst_QTextLayout
FALSEnever evaluated
) {
0-24
1257 QFixed scalingFactor = emSquareSize() / QFixed(freetype->face->size->metrics.x_ppem);-
1258 unlockFace();-
1259 const_cast<QFontEngineFT *>(this)->loadKerningPairs(scalingFactor);-
1260 }
executed 24 times by 6 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
  • tst_QTextLayout
else {
24
1261 unlockFace();-
1262 }
never executed: end of block
0
1263 }-
1264-
1265 if (shouldUseDesignMetrics(flags)
shouldUseDesignMetrics(flags)Description
TRUEnever evaluated
FALSEevaluated 594 times by 6 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
  • tst_QTextLayout
&& !(fontDef.styleStrategy & QFont::ForceIntegerMetrics)
!(fontDef.styl...ntegerMetrics)Description
TRUEnever evaluated
FALSEnever evaluated
)
0-594
1266 flags |= DesignMetrics;
never executed: flags |= DesignMetrics;
0
1267 else-
1268 flags &= ~DesignMetrics;
executed 594 times by 6 tests: flags &= ~DesignMetrics;
Executed by:
  • tst_QAccessibility
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
  • tst_QTextLayout
594
1269-
1270 QFontEngine::doKerning(g, flags);-
1271}
executed 594 times by 6 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
  • tst_QTextLayout
594
1272-
1273static inline FT_Matrix QTransformToFTMatrix(const QTransform &matrix)-
1274{-
1275 FT_Matrix m;-
1276-
1277 m.xx = FT_Fixed(matrix.m11() * 65536);-
1278 m.xy = FT_Fixed(-matrix.m21() * 65536);-
1279 m.yx = FT_Fixed(-matrix.m12() * 65536);-
1280 m.yy = FT_Fixed(matrix.m22() * 65536);-
1281-
1282 return
executed 311703 times by 76 tests: return m;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
m;
executed 311703 times by 76 tests: return m;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
311703
1283}-
1284-
1285QFontEngineFT::QGlyphSet *QFontEngineFT::loadGlyphSet(const QTransform &matrix)-
1286{-
1287 if (matrix.type() > QTransform::TxShear
matrix.type() ...sform::TxShearDescription
TRUEnever evaluated
FALSEevaluated 311703 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
|| !cacheEnabled
!cacheEnabledDescription
TRUEnever evaluated
FALSEevaluated 311703 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
)
0-311703
1288 return
never executed: return 0;
0;
never executed: return 0;
0
1289-
1290-
1291 if (!( freetype->face->face_flags & ( 1L << 0 ) )
!( freetype->f... ( 1L << 0 ) )Description
TRUEnever evaluated
FALSEevaluated 311703 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
)
0-311703
1292 return
never executed: return matrix.type() <= QTransform::TxTranslate ? &defaultGlyphSet : nullptr;
matrix.type() <= QTransform::TxTranslate ? &defaultGlyphSet : nullptr;
never executed: return matrix.type() <= QTransform::TxTranslate ? &defaultGlyphSet : nullptr;
0
1293-
1294 FT_Matrix m = QTransformToFTMatrix(matrix);-
1295-
1296 QGlyphSet *gs = 0;-
1297-
1298 for (int i = 0; i < transformedGlyphSets.count()
i < transforme...phSets.count()Description
TRUEevaluated 312787 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
FALSEevaluated 262 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
; ++i) {
262-312787
1299 const QGlyphSet &g = transformedGlyphSets.at(i);-
1300 if (g.transformationMatrix.xx == m.xx
g.transformati...rix.xx == m.xxDescription
TRUEevaluated 311483 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
FALSEevaluated 1304 times by 7 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
1304-311483
1301 && g.transformationMatrix.xy == m.xy
g.transformati...rix.xy == m.xyDescription
TRUEevaluated 311441 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
FALSEevaluated 42 times by 3 tests
Evaluated by:
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QTabWidget
42-311441
1302 && g.transformationMatrix.yx == m.yx
g.transformati...rix.yx == m.yxDescription
TRUEevaluated 311441 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
FALSEnever evaluated
0-311441
1303 && g.transformationMatrix.yy == m.yy
g.transformati...rix.yy == m.yyDescription
TRUEevaluated 311441 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
FALSEnever evaluated
) {
0-311441
1304-
1305-
1306 transformedGlyphSets.move(i, 0);-
1307 gs = &transformedGlyphSets[0];-
1308 break;
executed 311441 times by 76 tests: break;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
311441
1309 }-
1310 }
executed 1346 times by 7 tests: end of block
Executed by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
1346
1311-
1312 if (!gs
!gsDescription
TRUEevaluated 262 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
FALSEevaluated 311441 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
) {
262-311441
1313-
1314 if (transformedGlyphSets.count() >= 10
transformedGly....count() >= 10Description
TRUEevaluated 121 times by 2 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsView
FALSEevaluated 141 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
) {
121-141
1315 transformedGlyphSets.move(transformedGlyphSets.size() - 1, 0);-
1316 }
executed 121 times by 2 tests: end of block
Executed by:
  • tst_QGraphicsItem
  • tst_QGraphicsView
else {
121
1317 transformedGlyphSets.prepend(QGlyphSet());-
1318 }
executed 141 times by 76 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
141
1319 gs = &transformedGlyphSets[0];-
1320 gs->clear();-
1321 gs->transformationMatrix = m;-
1322 gs->outline_drawing = fontDef.pixelSize * fontDef.pixelSize * qAbs(matrix.det()) >= 64 * 64;-
1323 }
executed 262 times by 76 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
262
1324 ((!(gs != 0)) ? qt_assert("gs != 0",__FILE__,1443) : qt_noop());-
1325-
1326 return
executed 311703 times by 76 tests: return gs;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
gs;
executed 311703 times by 76 tests: return gs;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
311703
1327}-
1328-
1329void QFontEngineFT::getUnscaledGlyph(glyph_t glyph, QPainterPath *path, glyph_metrics_t *metrics)-
1330{-
1331 FT_Face face = lockFace(Unscaled);-
1332 FT_Set_Transform(face, 0, 0);-
1333 FT_Load_Glyph(face, glyph, ( 1L << 3 ));-
1334-
1335 int left = face->glyph->metrics.horiBearingX;-
1336 int right = face->glyph->metrics.horiBearingX + face->glyph->metrics.width;-
1337 int top = face->glyph->metrics.horiBearingY;-
1338 int bottom = face->glyph->metrics.horiBearingY - face->glyph->metrics.height;-
1339-
1340 QFixedPoint p;-
1341 p.x = 0;-
1342 p.y = 0;-
1343-
1344 metrics->width = QFixed::fromFixed(right-left);-
1345 metrics->height = QFixed::fromFixed(top-bottom);-
1346 metrics->x = QFixed::fromFixed(left);-
1347 metrics->y = QFixed::fromFixed(-top);-
1348 metrics->xoff = QFixed::fromFixed(face->glyph->advance.x);-
1349-
1350 if (!( freetype->face->face_flags & ( 1L << 0 ) )
!( freetype->f... ( 1L << 0 ) )Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1351 QFreetypeFace::addBitmapToPath(face->glyph, p, path);
never executed: QFreetypeFace::addBitmapToPath(face->glyph, p, path);
0
1352 else-
1353 QFreetypeFace::addGlyphToPath(face, face->glyph, p, path, face->units_per_EM << 6, face->units_per_EM << 6);
never executed: QFreetypeFace::addGlyphToPath(face, face->glyph, p, path, face->units_per_EM << 6, face->units_per_EM << 6);
0
1354-
1355 FT_Set_Transform(face, &freetype->matrix, 0);-
1356 unlockFace();-
1357}
never executed: end of block
0
1358-
1359bool QFontEngineFT::supportsTransformation(const QTransform &transform) const-
1360{-
1361 return
executed 43 times by 4 tests: return transform.type() <= QTransform::TxRotate;
Executed by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QStaticText
transform.type() <= QTransform::TxRotate;
executed 43 times by 4 tests: return transform.type() <= QTransform::TxRotate;
Executed by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QStaticText
43
1362}-
1363-
1364void QFontEngineFT::addOutlineToPath(qreal x, qreal y, const QGlyphLayout &glyphs, QPainterPath *path, QTextItem::RenderFlags flags)-
1365{-
1366 if (!glyphs.numGlyphs
!glyphs.numGlyphsDescription
TRUEnever evaluated
FALSEevaluated 5 times by 3 tests
Evaluated by:
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
)
0-5
1367 return;
never executed: return;
0
1368-
1369 if ((
( freetype->fa... ( 1L << 0 ) )Description
TRUEevaluated 5 times by 3 tests
Evaluated by:
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
FALSEnever evaluated
freetype->face->face_flags & ( 1L << 0 ) )
( freetype->fa... ( 1L << 0 ) )Description
TRUEevaluated 5 times by 3 tests
Evaluated by:
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
FALSEnever evaluated
) {
0-5
1370 QFontEngine::addOutlineToPath(x, y, glyphs, path, flags);-
1371 }
executed 5 times by 3 tests: end of block
Executed by:
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
else {
5
1372 QVarLengthArray<QFixedPoint> positions;-
1373 QVarLengthArray<glyph_t> positioned_glyphs;-
1374 QTransform matrix;-
1375 matrix.translate(x, y);-
1376 getGlyphPositions(glyphs, matrix, flags, positioned_glyphs, positions);-
1377-
1378 FT_Face face = lockFace(Unscaled);-
1379 for (int gl = 0; gl < glyphs.numGlyphs
gl < glyphs.numGlyphsDescription
TRUEnever evaluated
FALSEnever evaluated
; gl++) {
0
1380 FT_UInt glyph = positioned_glyphs[gl];-
1381 FT_Load_Glyph(face, glyph, ( (FT_Int32)( (FT_RENDER_MODE_MONO) & 15 ) << 16 ));-
1382 QFreetypeFace::addBitmapToPath(face->glyph, positions[gl], path);-
1383 }
never executed: end of block
0
1384 unlockFace();-
1385 }
never executed: end of block
0
1386}-
1387-
1388void QFontEngineFT::addGlyphsToPath(glyph_t *glyphs, QFixedPoint *positions, int numGlyphs,-
1389 QPainterPath *path, QTextItem::RenderFlags)-
1390{-
1391 FT_Face face = lockFace(Unscaled);-
1392-
1393 for (int gl = 0; gl < numGlyphs
gl < numGlyphsDescription
TRUEevaluated 163 times by 6 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
FALSEevaluated 21 times by 6 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
; gl++) {
21-163
1394 FT_UInt glyph = glyphs[gl];-
1395-
1396 FT_Load_Glyph(face, glyph, ( 1L << 3 ));-
1397-
1398 FT_GlyphSlot g = face->glyph;-
1399 if (g->format != FT_GLYPH_FORMAT_OUTLINE
g->format != F...FORMAT_OUTLINEDescription
TRUEnever evaluated
FALSEevaluated 163 times by 6 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
)
0-163
1400 continue;
never executed: continue;
0
1401 if (embolden
emboldenDescription
TRUEnever evaluated
FALSEevaluated 163 times by 6 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
)
0-163
1402 FT_GlyphSlot_Embolden(g);
never executed: FT_GlyphSlot_Embolden(g);
0
1403 if (obliquen
obliquenDescription
TRUEnever evaluated
FALSEevaluated 163 times by 6 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
)
0-163
1404 FT_GlyphSlot_Oblique(g);
never executed: FT_GlyphSlot_Oblique(g);
0
1405 QFreetypeFace::addGlyphToPath(face, g, positions[gl], path, xsize, ysize);-
1406 }
executed 163 times by 6 tests: end of block
Executed by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
163
1407 unlockFace();-
1408}
executed 21 times by 6 tests: end of block
Executed by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
21
1409-
1410glyph_t QFontEngineFT::glyphIndex(uint ucs4) const-
1411{-
1412 glyph_t glyph = ucs4 < QFreetypeFace::cmapCacheSize
ucs4 < QFreety...:cmapCacheSizeDescription
TRUEevaluated 5293595 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
FALSEevaluated 223310 times by 33 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColorDialog
  • tst_QComplexText
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QLineEdit
  • tst_QListView
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QPlainTextEdit
  • tst_QRawFont
  • tst_QStackedLayout
  • tst_QStaticText
  • tst_QTableView
  • tst_QTextCursor
  • tst_QTextDocument
  • tst_QTextDocumentLayout
  • ...
? freetype->cmapCache[ucs4] : 0;
223310-5293595
1413 if (glyph == 0
glyph == 0Description
TRUEevaluated 224382 times by 69 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QFormLayout
  • ...
FALSEevaluated 5292523 times by 113 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
) {
224382-5292523
1414 FT_Face face = freetype->face;-
1415 glyph = FT_Get_Char_Index(face, ucs4);-
1416 if (glyph == 0
glyph == 0Description
TRUEevaluated 207355 times by 8 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComplexText
  • tst_QFontDialog
  • tst_QGlyphRun
  • tst_QLabel
  • tst_QRawFont
  • tst_QTextLayout
  • tst_QTextScriptEngine
FALSEevaluated 17027 times by 69 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QFormLayout
  • ...
) {
17027-207355
1417-
1418-
1419 if (ucs4 == QChar::Nbsp
ucs4 == QChar::NbspDescription
TRUEnever evaluated
FALSEevaluated 207355 times by 8 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComplexText
  • tst_QFontDialog
  • tst_QGlyphRun
  • tst_QLabel
  • tst_QRawFont
  • tst_QTextLayout
  • tst_QTextScriptEngine
|| ucs4 == QChar::Tabulation
ucs4 == QChar::TabulationDescription
TRUEnever evaluated
FALSEevaluated 207355 times by 8 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComplexText
  • tst_QFontDialog
  • tst_QGlyphRun
  • tst_QLabel
  • tst_QRawFont
  • tst_QTextLayout
  • tst_QTextScriptEngine
) {
0-207355
1420 glyph = FT_Get_Char_Index(face, QChar::Space);-
1421 }
never executed: end of block
else if (freetype->symbol_map
freetype->symbol_mapDescription
TRUEevaluated 39 times by 1 test
Evaluated by:
  • tst_QFontDialog
FALSEevaluated 207316 times by 8 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComplexText
  • tst_QFontDialog
  • tst_QGlyphRun
  • tst_QLabel
  • tst_QRawFont
  • tst_QTextLayout
  • tst_QTextScriptEngine
) {
0-207316
1422-
1423-
1424-
1425-
1426-
1427-
1428 FT_Set_Charmap(face, freetype->symbol_map);-
1429 glyph = FT_Get_Char_Index(face, ucs4);-
1430 FT_Set_Charmap(face, freetype->unicode_map);-
1431 }
executed 39 times by 1 test: end of block
Executed by:
  • tst_QFontDialog
39
1432 }
executed 207355 times by 8 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QComplexText
  • tst_QFontDialog
  • tst_QGlyphRun
  • tst_QLabel
  • tst_QRawFont
  • tst_QTextLayout
  • tst_QTextScriptEngine
207355
1433 if (ucs4 < QFreetypeFace::cmapCacheSize
ucs4 < QFreety...:cmapCacheSizeDescription
TRUEevaluated 1072 times by 56 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
FALSEevaluated 223310 times by 33 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColorDialog
  • tst_QComplexText
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QLineEdit
  • tst_QListView
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QPlainTextEdit
  • tst_QRawFont
  • tst_QStackedLayout
  • tst_QStaticText
  • tst_QTableView
  • tst_QTextCursor
  • tst_QTextDocument
  • tst_QTextDocumentLayout
  • ...
)
1072-223310
1434 freetype->cmapCache[ucs4] = glyph;
executed 1072 times by 56 tests: freetype->cmapCache[ucs4] = glyph;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
1072
1435 }
executed 224382 times by 69 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QFormLayout
  • ...
224382
1436-
1437 return
executed 5516905 times by 114 tests: return glyph;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
glyph;
executed 5516905 times by 114 tests: return glyph;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
5516905
1438}-
1439-
1440bool QFontEngineFT::stringToCMap(const QChar *str, int len, QGlyphLayout *glyphs, int *nglyphs,-
1441 QFontEngine::ShaperFlags flags) const-
1442{-
1443 ((!(glyphs->numGlyphs >= *nglyphs)) ? qt_assert("glyphs->numGlyphs >= *nglyphs",__FILE__,1562) : qt_noop());-
1444 if (*
*nglyphs < lenDescription
TRUEnever evaluated
FALSEevaluated 566630 times by 111 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
nglyphs < len
*nglyphs < lenDescription
TRUEnever evaluated
FALSEevaluated 566630 times by 111 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
) {
0-566630
1445 *nglyphs = len;-
1446 return
never executed: return false;
false;
never executed: return false;
0
1447 }-
1448-
1449 int glyph_pos = 0;-
1450 if (freetype->symbol_map
freetype->symbol_mapDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFontDialog
FALSEevaluated 566629 times by 111 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
) {
1-566629
1451 FT_Face face = freetype->face;-
1452 QStringIterator it(str, str + len);-
1453 while (it.hasNext()
it.hasNext()Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QFontDialog
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFontDialog
) {
1-8
1454 uint uc = it.next();-
1455 glyphs->glyphs[glyph_pos] = uc < QFreetypeFace::cmapCacheSize
uc < QFreetype...:cmapCacheSizeDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QFontDialog
FALSEnever evaluated
? freetype->cmapCache[uc] : 0;
0-8
1456 if ( !glyphs->glyphs[glyph_pos]
!glyphs->glyphs[glyph_pos]Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QFontDialog
FALSEnever evaluated
) {
0-8
1457-
1458-
1459-
1460-
1461-
1462-
1463 glyph_t glyph = FT_Get_Char_Index(face, uc);-
1464-
1465-
1466 if (!glyph
!glyphDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QFontDialog
FALSEnever evaluated
&& (uc == 0xa0
uc == 0xa0Description
TRUEnever evaluated
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_QFontDialog
|| uc == 0x9
uc == 0x9Description
TRUEnever evaluated
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_QFontDialog
)) {
0-8
1467 uc = 0x20;-
1468 glyph = FT_Get_Char_Index(face, uc);-
1469 }
never executed: end of block
0
1470 if (!glyph
!glyphDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QFontDialog
FALSEnever evaluated
) {
0-8
1471 FT_Set_Charmap(face, freetype->symbol_map);-
1472 glyph = FT_Get_Char_Index(face, uc);-
1473 FT_Set_Charmap(face, freetype->unicode_map);-
1474 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_QFontDialog
8
1475 glyphs->glyphs[glyph_pos] = glyph;-
1476 if (uc < QFreetypeFace::cmapCacheSize
uc < QFreetype...:cmapCacheSizeDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QFontDialog
FALSEnever evaluated
)
0-8
1477 freetype->cmapCache[uc] = glyph;
executed 8 times by 1 test: freetype->cmapCache[uc] = glyph;
Executed by:
  • tst_QFontDialog
8
1478 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_QFontDialog
8
1479 ++glyph_pos;-
1480 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_QFontDialog
8
1481 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QFontDialog
else {
1
1482 FT_Face face = freetype->face;-
1483 QStringIterator it(str, str + len);-
1484 while (it.hasNext()
it.hasNext()Description
TRUEevaluated 5510738 times by 111 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEevaluated 566629 times by 111 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
) {
566629-5510738
1485 uint uc = it.next();-
1486 glyphs->glyphs[glyph_pos] = uc < QFreetypeFace::cmapCacheSize
uc < QFreetype...:cmapCacheSizeDescription
TRUEevaluated 5289887 times by 111 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEevaluated 220851 times by 31 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColorDialog
  • tst_QComplexText
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDatabase
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QLineEdit
  • tst_QListView
  • tst_QMdiArea
  • tst_QPlainTextEdit
  • tst_QRawFont
  • tst_QStackedLayout
  • tst_QStaticText
  • tst_QTableView
  • tst_QTextCursor
  • tst_QTextDocument
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextLayout
  • ...
? freetype->cmapCache[uc] : 0;
220851-5289887
1487 if (!glyphs->glyphs[glyph_pos]
!glyphs->glyphs[glyph_pos]Description
TRUEevaluated 225430 times by 111 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEevaluated 5285308 times by 109 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
) {
225430-5285308
1488 {-
1489 redo:-
1490 glyph_t glyph = FT_Get_Char_Index(face, uc);-
1491 if (!glyph
!glyphDescription
TRUEevaluated 207352 times by 9 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComplexText
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QLabel
  • tst_QRawFont
  • tst_QTextLayout
  • tst_QTextScriptEngine
FALSEevaluated 18078 times by 111 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
&& (uc == 0xa0
uc == 0xa0Description
TRUEnever evaluated
FALSEevaluated 207352 times by 9 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComplexText
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QLabel
  • tst_QRawFont
  • tst_QTextLayout
  • tst_QTextScriptEngine
|| uc == 0x9
uc == 0x9Description
TRUEnever evaluated
FALSEevaluated 207352 times by 9 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComplexText
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QLabel
  • tst_QRawFont
  • tst_QTextLayout
  • tst_QTextScriptEngine
)) {
0-207352
1492 uc = 0x20;-
1493 goto
never executed: goto redo;
redo;
never executed: goto redo;
0
1494 }-
1495 glyphs->glyphs[glyph_pos] = glyph;-
1496 if (uc < QFreetypeFace::cmapCacheSize
uc < QFreetype...:cmapCacheSizeDescription
TRUEevaluated 4579 times by 111 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEevaluated 220851 times by 31 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColorDialog
  • tst_QComplexText
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDatabase
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QLineEdit
  • tst_QListView
  • tst_QMdiArea
  • tst_QPlainTextEdit
  • tst_QRawFont
  • tst_QStackedLayout
  • tst_QStaticText
  • tst_QTableView
  • tst_QTextCursor
  • tst_QTextDocument
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextLayout
  • ...
)
4579-220851
1497 freetype->cmapCache[uc] = glyph;
executed 4579 times by 111 tests: freetype->cmapCache[uc] = glyph;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
4579
1498 }-
1499 }
executed 225430 times by 111 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
225430
1500 ++glyph_pos;-
1501 }
executed 5510738 times by 111 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
5510738
1502 }
executed 566629 times by 111 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
566629
1503-
1504 *nglyphs = glyph_pos;-
1505 glyphs->numGlyphs = glyph_pos;-
1506-
1507 if (!(flags & GlyphIndicesOnly)
!(flags & GlyphIndicesOnly)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFontMetrics
FALSEevaluated 566629 times by 111 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
)
1-566629
1508 recalcAdvances(glyphs, flags);
executed 1 time by 1 test: recalcAdvances(glyphs, flags);
Executed by:
  • tst_QFontMetrics
1
1509-
1510 return
executed 566630 times by 111 tests: return true;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
true;
executed 566630 times by 111 tests: return true;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
566630
1511}-
1512-
1513bool QFontEngineFT::shouldUseDesignMetrics(QFontEngine::ShaperFlags flags) const-
1514{-
1515 if (!( freetype->face->face_flags & ( 1L << 0 ) )
!( freetype->f... ( 1L << 0 ) )Description
TRUEnever evaluated
FALSEevaluated 5515398 times by 113 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
)
0-5515398
1516 return
never executed: return false;
false;
never executed: return false;
0
1517-
1518 return
executed 5515398 times by 113 tests: return default_hint_style == HintNone || default_hint_style == HintLight || (flags & DesignMetrics);
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
default_hint_style == HintNone || default_hint_style == HintLight || (flags & DesignMetrics);
executed 5515398 times by 113 tests: return default_hint_style == HintNone || default_hint_style == HintLight || (flags & DesignMetrics);
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
5515398
1519}-
1520-
1521QFixed QFontEngineFT::scaledBitmapMetrics(QFixed m) const-
1522{-
1523 return
never executed: return m * scalableBitmapScaleFactor;
m * scalableBitmapScaleFactor;
never executed: return m * scalableBitmapScaleFactor;
0
1524}-
1525-
1526glyph_metrics_t QFontEngineFT::scaledBitmapMetrics(const glyph_metrics_t &m) const-
1527{-
1528 glyph_metrics_t metrics;-
1529 metrics.x = scaledBitmapMetrics(m.x);-
1530 metrics.y = scaledBitmapMetrics(m.y);-
1531 metrics.width = scaledBitmapMetrics(m.width);-
1532 metrics.height = scaledBitmapMetrics(m.height);-
1533 metrics.xoff = scaledBitmapMetrics(m.xoff);-
1534 metrics.yoff = scaledBitmapMetrics(m.yoff);-
1535 return
never executed: return metrics;
metrics;
never executed: return metrics;
0
1536}-
1537-
1538void QFontEngineFT::recalcAdvances(QGlyphLayout *glyphs, QFontEngine::ShaperFlags flags) const-
1539{-
1540 FT_Face face = 0;-
1541 bool design = shouldUseDesignMetrics(flags);-
1542 for (int i = 0; i < glyphs->numGlyphs
i < glyphs->numGlyphsDescription
TRUEevaluated 5515004 times by 113 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEevaluated 5514804 times by 113 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
; i++) {
5514804-5515004
1543 Glyph *g = cacheEnabled
cacheEnabledDescription
TRUEevaluated 5515004 times by 113 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEnever evaluated
? defaultGlyphSet.getGlyph(glyphs->glyphs[i]) : 0;
0-5515004
1544-
1545 GlyphFormat acceptableFormat = (
(defaultFormat != Format_None)Description
TRUEevaluated 5515004 times by 113 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEnever evaluated
defaultFormat != Format_None)
(defaultFormat != Format_None)Description
TRUEevaluated 5515004 times by 113 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEnever evaluated
? defaultFormat : Format_Mono;
0-5515004
1546 if (g
gDescription
TRUEevaluated 5507743 times by 111 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEevaluated 7261 times by 113 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
&& g->format == acceptableFormat
g->format == acceptableFormatDescription
TRUEevaluated 5507743 times by 111 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEnever evaluated
) {
0-5507743
1547 glyphs->advances[i] = design
designDescription
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_QRawFont
FALSEevaluated 5507727 times by 111 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
? QFixed::fromFixed(g->linearAdvance) : QFixed(g->advance);
16-5507727
1548 }
executed 5507743 times by 111 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
else {
5507743
1549 if (!face
!faceDescription
TRUEevaluated 7189 times by 113 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEevaluated 72 times by 3 tests
Evaluated by:
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QRawFont
)
72-7189
1550 face = lockFace();
executed 7189 times by 113 tests: face = lockFace();
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
7189
1551 g = loadGlyph(cacheEnabled ? &defaultGlyphSet : 0, glyphs->glyphs[i], 0, Format_None, true);-
1552 if (g
gDescription
TRUEevaluated 7247 times by 113 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_QFontDatabase
)
14-7247
1553 glyphs->advances[i] = design
designDescription
TRUEevaluated 81 times by 2 tests
Evaluated by:
  • tst_QPainter
  • tst_QRawFont
FALSEevaluated 7166 times by 113 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
? QFixed::fromFixed(g->linearAdvance) : QFixed(g->advance);
executed 7247 times by 113 tests: glyphs->advances[i] = design ? QFixed::fromFixed(g->linearAdvance) : QFixed(g->advance);
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
81-7247
1554 else-
1555 glyphs->advances[i] = design
designDescription
TRUEnever evaluated
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_QFontDatabase
? QFixed::fromFixed(face->glyph->linearHoriAdvance >> 10)
executed 14 times by 1 test: glyphs->advances[i] = design ? QFixed::fromFixed(face->glyph->linearHoriAdvance >> 10) : QFixed::fromFixed(face->glyph->metrics.horiAdvance).round();
Executed by:
  • tst_QFontDatabase
0-14
1556 : QFixed::fromFixed(face->glyph->metrics.horiAdvance).round();
executed 14 times by 1 test: glyphs->advances[i] = design ? QFixed::fromFixed(face->glyph->linearHoriAdvance >> 10) : QFixed::fromFixed(face->glyph->metrics.horiAdvance).round();
Executed by:
  • tst_QFontDatabase
14
1557 if (!cacheEnabled
!cacheEnabledDescription
TRUEnever evaluated
FALSEevaluated 7261 times by 113 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
&& g != &emptyGlyph
g != &emptyGlyphDescription
TRUEnever evaluated
FALSEnever evaluated
)
0-7261
1558 delete g;
never executed: delete g;
0
1559 }
executed 7261 times by 113 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
7261
1560-
1561 if (scalableBitmapScaleFactor != 1
scalableBitmapScaleFactor != 1Description
TRUEnever evaluated
FALSEevaluated 5515004 times by 113 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
)
0-5515004
1562 glyphs->advances[i] *= scalableBitmapScaleFactor;
never executed: glyphs->advances[i] *= scalableBitmapScaleFactor;
0
1563 }
executed 5515004 times by 113 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
5515004
1564 if (face
faceDescription
TRUEevaluated 7189 times by 113 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEevaluated 5507615 times by 111 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
)
7189-5507615
1565 unlockFace();
executed 7189 times by 113 tests: unlockFace();
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
7189
1566-
1567 if (fontDef.styleStrategy & QFont::ForceIntegerMetrics
fontDef.styleS...IntegerMetricsDescription
TRUEevaluated 156 times by 1 test
Evaluated by:
  • tst_QFontMetrics
FALSEevaluated 5514648 times by 113 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
) {
156-5514648
1568 for (int i = 0; i < glyphs->numGlyphs
i < glyphs->numGlyphsDescription
TRUEevaluated 310 times by 1 test
Evaluated by:
  • tst_QFontMetrics
FALSEevaluated 156 times by 1 test
Evaluated by:
  • tst_QFontMetrics
; ++i)
156-310
1569 glyphs->advances[i] = glyphs->advances[i].round();
executed 310 times by 1 test: glyphs->advances[i] = glyphs->advances[i].round();
Executed by:
  • tst_QFontMetrics
310
1570 }
executed 156 times by 1 test: end of block
Executed by:
  • tst_QFontMetrics
156
1571}
executed 5514804 times by 113 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
5514804
1572-
1573glyph_metrics_t QFontEngineFT::boundingBox(const QGlyphLayout &glyphs)-
1574{-
1575 FT_Face face = 0;-
1576-
1577 glyph_metrics_t overall;-
1578-
1579 if (!isScalableBitmap()
!isScalableBitmap()Description
TRUEevaluated 3606 times by 21 tests
Evaluated by:
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QGroupBox
  • tst_QInputDialog
  • tst_QMdiSubWindow
  • tst_QPrinter
  • tst_QStyleSheetStyle
  • tst_QTextLayout
  • tst_QWizard
  • tst_languageChange
  • tst_qapplication - unknown status
FALSEnever evaluated
) {
0-3606
1580 overall.y = -ascent();-
1581 overall.height = ascent() + descent();-
1582 }
executed 3606 times by 21 tests: end of block
Executed by:
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QGroupBox
  • tst_QInputDialog
  • tst_QMdiSubWindow
  • tst_QPrinter
  • tst_QStyleSheetStyle
  • tst_QTextLayout
  • tst_QWizard
  • tst_languageChange
  • tst_qapplication - unknown status
else {
3606
1583 overall.y = QFixed::fromFixed(-metrics.ascender);-
1584 overall.height = QFixed::fromFixed(metrics.ascender - metrics.descender);-
1585 }
never executed: end of block
0
1586-
1587 QFixed ymax = 0;-
1588 QFixed xmax = 0;-
1589 for (int i = 0; i < glyphs.numGlyphs
i < glyphs.numGlyphsDescription
TRUEevaluated 56297 times by 21 tests
Evaluated by:
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QGroupBox
  • tst_QInputDialog
  • tst_QMdiSubWindow
  • tst_QPrinter
  • tst_QStyleSheetStyle
  • tst_QTextLayout
  • tst_QWizard
  • tst_languageChange
  • tst_qapplication - unknown status
FALSEevaluated 3606 times by 21 tests
Evaluated by:
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QGroupBox
  • tst_QInputDialog
  • tst_QMdiSubWindow
  • tst_QPrinter
  • tst_QStyleSheetStyle
  • tst_QTextLayout
  • tst_QWizard
  • tst_languageChange
  • tst_qapplication - unknown status
; i++) {
3606-56297
1590 Glyph *g = cacheEnabled
cacheEnabledDescription
TRUEevaluated 56297 times by 21 tests
Evaluated by:
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QGroupBox
  • tst_QInputDialog
  • tst_QMdiSubWindow
  • tst_QPrinter
  • tst_QStyleSheetStyle
  • tst_QTextLayout
  • tst_QWizard
  • tst_languageChange
  • tst_qapplication - unknown status
FALSEnever evaluated
? defaultGlyphSet.getGlyph(glyphs.glyphs[i]) : 0;
0-56297
1591 if (!g
!gDescription
TRUEnever evaluated
FALSEevaluated 56297 times by 21 tests
Evaluated by:
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QGroupBox
  • tst_QInputDialog
  • tst_QMdiSubWindow
  • tst_QPrinter
  • tst_QStyleSheetStyle
  • tst_QTextLayout
  • tst_QWizard
  • tst_languageChange
  • tst_qapplication - unknown status
) {
0-56297
1592 if (!face
!faceDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1593 face = lockFace();
never executed: face = lockFace();
0
1594 g = loadGlyph(cacheEnabled ? &defaultGlyphSet : 0, glyphs.glyphs[i], 0, Format_None, true);-
1595 }
never executed: end of block
0
1596 if (g
gDescription
TRUEevaluated 56297 times by 21 tests
Evaluated by:
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QGroupBox
  • tst_QInputDialog
  • tst_QMdiSubWindow
  • tst_QPrinter
  • tst_QStyleSheetStyle
  • tst_QTextLayout
  • tst_QWizard
  • tst_languageChange
  • tst_qapplication - unknown status
FALSEnever evaluated
) {
0-56297
1597 QFixed x = overall.xoff + glyphs.offsets[i].x + g->x;-
1598 QFixed y = overall.yoff + glyphs.offsets[i].y - g->y;-
1599 overall.x = qMin(overall.x, x);-
1600 overall.y = qMin(overall.y, y);-
1601 xmax = qMax(xmax, x + g->width);-
1602 ymax = qMax(ymax, y + g->height);-
1603 overall.xoff += g->advance;-
1604 if (!cacheEnabled
!cacheEnabledDescription
TRUEnever evaluated
FALSEevaluated 56297 times by 21 tests
Evaluated by:
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QGroupBox
  • tst_QInputDialog
  • tst_QMdiSubWindow
  • tst_QPrinter
  • tst_QStyleSheetStyle
  • tst_QTextLayout
  • tst_QWizard
  • tst_languageChange
  • tst_qapplication - unknown status
&& g != &emptyGlyph
g != &emptyGlyphDescription
TRUEnever evaluated
FALSEnever evaluated
)
0-56297
1605 delete g;
never executed: delete g;
0
1606 }
executed 56297 times by 21 tests: end of block
Executed by:
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QGroupBox
  • tst_QInputDialog
  • tst_QMdiSubWindow
  • tst_QPrinter
  • tst_QStyleSheetStyle
  • tst_QTextLayout
  • tst_QWizard
  • tst_languageChange
  • tst_qapplication - unknown status
else {
56297
1607 int left = ((face->glyph->metrics.horiBearingX) & -64);-
1608 int right = (((face->glyph->metrics.horiBearingX + face->glyph->metrics.width)+63) & -64);-
1609 int top = (((face->glyph->metrics.horiBearingY)+63) & -64);-
1610 int bottom = ((face->glyph->metrics.horiBearingY - face->glyph->metrics.height) & -64);-
1611-
1612 QFixed x = overall.xoff + glyphs.offsets[i].x - (-((left) >> 6));-
1613 QFixed y = overall.yoff + glyphs.offsets[i].y - ((top) >> 6);-
1614 overall.x = qMin(overall.x, x);-
1615 overall.y = qMin(overall.y, y);-
1616 xmax = qMax(xmax, x + ((right - left) >> 6));-
1617 ymax = qMax(ymax, y + ((top - bottom) >> 6));-
1618 overall.xoff += int((((((face->glyph->advance.x)+32) & -64)) >> 6));-
1619 }
never executed: end of block
0
1620 }-
1621 overall.height = qMax(overall.height, ymax - overall.y);-
1622 overall.width = xmax - overall.x;-
1623-
1624 if (face
faceDescription
TRUEnever evaluated
FALSEevaluated 3606 times by 21 tests
Evaluated by:
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QGroupBox
  • tst_QInputDialog
  • tst_QMdiSubWindow
  • tst_QPrinter
  • tst_QStyleSheetStyle
  • tst_QTextLayout
  • tst_QWizard
  • tst_languageChange
  • tst_qapplication - unknown status
)
0-3606
1625 unlockFace();
never executed: unlockFace();
0
1626-
1627 if (isScalableBitmap()
isScalableBitmap()Description
TRUEnever evaluated
FALSEevaluated 3606 times by 21 tests
Evaluated by:
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QGroupBox
  • tst_QInputDialog
  • tst_QMdiSubWindow
  • tst_QPrinter
  • tst_QStyleSheetStyle
  • tst_QTextLayout
  • tst_QWizard
  • tst_languageChange
  • tst_qapplication - unknown status
)
0-3606
1628 overall = scaledBitmapMetrics(overall);
never executed: overall = scaledBitmapMetrics(overall);
0
1629 return
executed 3606 times by 21 tests: return overall;
Executed by:
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QGroupBox
  • tst_QInputDialog
  • tst_QMdiSubWindow
  • tst_QPrinter
  • tst_QStyleSheetStyle
  • tst_QTextLayout
  • tst_QWizard
  • tst_languageChange
  • tst_qapplication - unknown status
overall;
executed 3606 times by 21 tests: return overall;
Executed by:
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QGroupBox
  • tst_QInputDialog
  • tst_QMdiSubWindow
  • tst_QPrinter
  • tst_QStyleSheetStyle
  • tst_QTextLayout
  • tst_QWizard
  • tst_languageChange
  • tst_qapplication - unknown status
3606
1630}-
1631-
1632glyph_metrics_t QFontEngineFT::boundingBox(glyph_t glyph)-
1633{-
1634 FT_Face face = 0;-
1635 glyph_metrics_t overall;-
1636 Glyph *g = cacheEnabled
cacheEnabledDescription
TRUEevaluated 288672 times by 110 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
FALSEnever evaluated
? defaultGlyphSet.getGlyph(glyph) : 0;
0-288672
1637 if (!g
!gDescription
TRUEevaluated 242 times by 7 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCssParser
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QPainter
  • tst_QTextLayout
FALSEevaluated 288430 times by 110 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
) {
242-288430
1638 face = lockFace();-
1639 g = loadGlyph(cacheEnabled ? &defaultGlyphSet : 0, glyph, 0, Format_None, true);-
1640 }
executed 242 times by 7 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCssParser
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QPainter
  • tst_QTextLayout
242
1641 if (g
gDescription
TRUEevaluated 288672 times by 110 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
FALSEnever evaluated
) {
0-288672
1642 overall.x = g->x;-
1643 overall.y = -g->y;-
1644 overall.width = g->width;-
1645 overall.height = g->height;-
1646 overall.xoff = g->advance;-
1647 if (fontDef.styleStrategy & QFont::ForceIntegerMetrics
fontDef.styleS...IntegerMetricsDescription
TRUEnever evaluated
FALSEevaluated 288672 times by 110 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
)
0-288672
1648 overall.xoff = overall.xoff.round();
never executed: overall.xoff = overall.xoff.round();
0
1649 if (!cacheEnabled
!cacheEnabledDescription
TRUEnever evaluated
FALSEevaluated 288672 times by 110 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
&& g != &emptyGlyph
g != &emptyGlyphDescription
TRUEnever evaluated
FALSEnever evaluated
)
0-288672
1650 delete g;
never executed: delete g;
0
1651 }
executed 288672 times by 110 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
else {
288672
1652 int left = ((face->glyph->metrics.horiBearingX) & -64);-
1653 int right = (((face->glyph->metrics.horiBearingX + face->glyph->metrics.width)+63) & -64);-
1654 int top = (((face->glyph->metrics.horiBearingY)+63) & -64);-
1655 int bottom = ((face->glyph->metrics.horiBearingY - face->glyph->metrics.height) & -64);-
1656-
1657 overall.width = ((right-left) >> 6);-
1658 overall.height = ((top-bottom) >> 6);-
1659 overall.x = ((left) >> 6);-
1660 overall.y = -((top) >> 6);-
1661 overall.xoff = (((((face->glyph->advance.x)+32) & -64)) >> 6);-
1662 }
never executed: end of block
0
1663 if (face
faceDescription
TRUEevaluated 242 times by 7 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCssParser
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QPainter
  • tst_QTextLayout
FALSEevaluated 288430 times by 110 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
)
242-288430
1664 unlockFace();
executed 242 times by 7 tests: unlockFace();
Executed by:
  • tst_QAccessibility
  • tst_QCssParser
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QPainter
  • tst_QTextLayout
242
1665-
1666 if (isScalableBitmap()
isScalableBitmap()Description
TRUEnever evaluated
FALSEevaluated 288672 times by 110 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
)
0-288672
1667 overall = scaledBitmapMetrics(overall);
never executed: overall = scaledBitmapMetrics(overall);
0
1668 return
executed 288672 times by 110 tests: return overall;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
overall;
executed 288672 times by 110 tests: return overall;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
288672
1669}-
1670-
1671glyph_metrics_t QFontEngineFT::boundingBox(glyph_t glyph, const QTransform &matrix)-
1672{-
1673 return
never executed: return alphaMapBoundingBox(glyph, 0, matrix, QFontEngine::Format_None);
alphaMapBoundingBox(glyph, 0, matrix, QFontEngine::Format_None);
never executed: return alphaMapBoundingBox(glyph, 0, matrix, QFontEngine::Format_None);
0
1674}-
1675-
1676glyph_metrics_t QFontEngineFT::alphaMapBoundingBox(glyph_t glyph, QFixed subPixelPosition, const QTransform &matrix, QFontEngine::GlyphFormat format)-
1677{-
1678 Glyph *g = loadGlyphFor(glyph, subPixelPosition, format, matrix, true);-
1679-
1680 glyph_metrics_t overall;-
1681 if (g
gDescription
TRUEevaluated 11 times by 1 test
Evaluated by:
  • tst_QGraphicsView
FALSEnever evaluated
) {
0-11
1682 overall.x = g->x;-
1683 overall.y = -g->y;-
1684 overall.width = g->width;-
1685 overall.height = g->height;-
1686 overall.xoff = g->advance;-
1687 if (!cacheEnabled
!cacheEnabledDescription
TRUEnever evaluated
FALSEevaluated 11 times by 1 test
Evaluated by:
  • tst_QGraphicsView
&& g != &emptyGlyph
g != &emptyGlyphDescription
TRUEnever evaluated
FALSEnever evaluated
)
0-11
1688 delete g;
never executed: delete g;
0
1689 }
executed 11 times by 1 test: end of block
Executed by:
  • tst_QGraphicsView
else {
11
1690 FT_Face face = lockFace();-
1691 int left = ((face->glyph->metrics.horiBearingX) & -64);-
1692 int right = (((face->glyph->metrics.horiBearingX + face->glyph->metrics.width)+63) & -64);-
1693 int top = (((face->glyph->metrics.horiBearingY)+63) & -64);-
1694 int bottom = ((face->glyph->metrics.horiBearingY - face->glyph->metrics.height) & -64);-
1695-
1696 overall.width = ((right-left) >> 6);-
1697 overall.height = ((top-bottom) >> 6);-
1698 overall.x = ((left) >> 6);-
1699 overall.y = -((top) >> 6);-
1700 overall.xoff = (((((face->glyph->advance.x)+32) & -64)) >> 6);-
1701 unlockFace();-
1702 }
never executed: end of block
0
1703-
1704 if (isScalableBitmap()
isScalableBitmap()Description
TRUEnever evaluated
FALSEevaluated 11 times by 1 test
Evaluated by:
  • tst_QGraphicsView
)
0-11
1705 overall = scaledBitmapMetrics(overall);
never executed: overall = scaledBitmapMetrics(overall);
0
1706 return
executed 11 times by 1 test: return overall;
Executed by:
  • tst_QGraphicsView
overall;
executed 11 times by 1 test: return overall;
Executed by:
  • tst_QGraphicsView
11
1707}-
1708-
1709static inline QImage alphaMapFromGlyphData(QFontEngineFT::Glyph *glyph, QFontEngine::GlyphFormat glyphFormat)-
1710{-
1711 if (glyph == nullptr
glyph == nullptrDescription
TRUEnever evaluated
FALSEevaluated 311692 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
|| glyph->height == 0
glyph->height == 0Description
TRUEevaluated 13851 times by 59 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QHeaderView
  • tst_QItemDelegate
  • ...
FALSEevaluated 297841 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
|| glyph->width == 0
glyph->width == 0Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QGraphicsView
FALSEevaluated 297829 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
)
0-311692
1712 return
executed 13863 times by 59 tests: return QImage();
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QHeaderView
  • tst_QItemDelegate
  • ...
QImage();
executed 13863 times by 59 tests: return QImage();
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QHeaderView
  • tst_QItemDelegate
  • ...
13863
1713-
1714 QImage::Format format = QImage::Format_Invalid;-
1715 int bytesPerLine = -1;-
1716 switch (glyphFormat) {-
1717 case
executed 365 times by 3 tests: case QFontEngine::Format_Mono:
Executed by:
  • tst_QPainter
  • tst_QStaticText
  • tst_QWizard
QFontEngine::Format_Mono:
executed 365 times by 3 tests: case QFontEngine::Format_Mono:
Executed by:
  • tst_QPainter
  • tst_QStaticText
  • tst_QWizard
365
1718 format = QImage::Format_Mono;-
1719 bytesPerLine = ((glyph->width + 31) & ~31) >> 3;-
1720 break;
executed 365 times by 3 tests: break;
Executed by:
  • tst_QPainter
  • tst_QStaticText
  • tst_QWizard
365
1721 case
executed 297464 times by 76 tests: case QFontEngine::Format_A8:
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
QFontEngine::Format_A8:
executed 297464 times by 76 tests: case QFontEngine::Format_A8:
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
297464
1722 format = QImage::Format_Alpha8;-
1723 bytesPerLine = (glyph->width + 3) & ~3;-
1724 break;
executed 297464 times by 76 tests: break;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
297464
1725 case
never executed: case QFontEngine::Format_A32:
QFontEngine::Format_A32:
never executed: case QFontEngine::Format_A32:
0
1726 format = QImage::Format_ARGB32;-
1727 bytesPerLine = glyph->width * 4;-
1728 break;
never executed: break;
0
1729 default
never executed: default:
:
never executed: default:
0
1730 do { ((!(false)) ? qt_assert_x("Q_UNREACHABLE()", "Q_UNREACHABLE was reached",__FILE__,1849) : qt_noop()); __builtin_unreachable(); } while (0);-
1731 }
never executed: end of block
;
0
1732-
1733 QImage img(static_cast<const uchar *>(glyph->data), glyph->width, glyph->height, bytesPerLine, format);-
1734 if (format == QImage::Format_Mono
format == QImage::Format_MonoDescription
TRUEevaluated 365 times by 3 tests
Evaluated by:
  • tst_QPainter
  • tst_QStaticText
  • tst_QWizard
FALSEevaluated 297464 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
)
365-297464
1735 img.setColor(1, QColor(Qt::white).rgba());
executed 365 times by 3 tests: img.setColor(1, QColor(Qt::white).rgba());
Executed by:
  • tst_QPainter
  • tst_QStaticText
  • tst_QWizard
365
1736 return
executed 297829 times by 76 tests: return img;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
img;
executed 297829 times by 76 tests: return img;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
297829
1737}-
1738-
1739QImage *QFontEngineFT::lockedAlphaMapForGlyph(glyph_t glyphIndex, QFixed subPixelPosition,-
1740 QFontEngine::GlyphFormat neededFormat,-
1741 const QTransform &t, QPoint *offset)-
1742{-
1743 ((!(currentlyLockedAlphaMap.isNull())) ? qt_assert("currentlyLockedAlphaMap.isNull()",__FILE__,1862) : qt_noop());-
1744-
1745 if (isBitmapFont()
isBitmapFont()Description
TRUEevaluated 388 times by 2 tests
Evaluated by:
  • tst_QStaticText
  • tst_QWizard
FALSEevaluated 311293 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
)
388-311293
1746 neededFormat = Format_Mono;
executed 388 times by 2 tests: neededFormat = Format_Mono;
Executed by:
  • tst_QStaticText
  • tst_QWizard
388
1747 else if (neededFormat == Format_None
neededFormat == Format_NoneDescription
TRUEevaluated 299429 times by 72 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • ...
FALSEevaluated 11864 times by 9 tests
Evaluated by:
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QHeaderView
  • tst_QPainter
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTextDocument
  • tst_QTreeView
  • tst_QTreeWidget
&& defaultFormat != Format_None
defaultFormat != Format_NoneDescription
TRUEevaluated 299429 times by 72 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • ...
FALSEnever evaluated
)
0-299429
1748 neededFormat = defaultFormat;
executed 299429 times by 72 tests: neededFormat = defaultFormat;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • ...
299429
1749 else if (neededFormat == Format_None
neededFormat == Format_NoneDescription
TRUEnever evaluated
FALSEevaluated 11864 times by 9 tests
Evaluated by:
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QHeaderView
  • tst_QPainter
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTextDocument
  • tst_QTreeView
  • tst_QTreeWidget
)
0-11864
1750 neededFormat = Format_A8;
never executed: neededFormat = Format_A8;
0
1751-
1752 Glyph *glyph = loadGlyphFor(glyphIndex, subPixelPosition, neededFormat, t);-
1753-
1754 if (offset != 0
offset != 0Description
TRUEevaluated 311681 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
FALSEnever evaluated
&& glyph != 0
glyph != 0Description
TRUEevaluated 311681 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
FALSEnever evaluated
)
0-311681
1755 *
executed 311681 times by 76 tests: *offset = QPoint(glyph->x, -glyph->y);
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
offset = QPoint(glyph->x, -glyph->y);
executed 311681 times by 76 tests: *offset = QPoint(glyph->x, -glyph->y);
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
311681
1756-
1757 currentlyLockedAlphaMap = alphaMapFromGlyphData(glyph, neededFormat);-
1758-
1759 const bool glyphHasGeometry = glyph != nullptr
glyph != nullptrDescription
TRUEevaluated 311681 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
FALSEnever evaluated
&& glyph->height != 0
glyph->height != 0Description
TRUEevaluated 297830 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
FALSEevaluated 13851 times by 59 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QHeaderView
  • tst_QItemDelegate
  • ...
&& glyph->width != 0
glyph->width != 0Description
TRUEevaluated 297818 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_QGraphicsView
;
0-311681
1760 if (!cacheEnabled
!cacheEnabledDescription
TRUEnever evaluated
FALSEevaluated 311681 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
&& glyph != &emptyGlyph
glyph != &emptyGlyphDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0-311681
1761 currentlyLockedAlphaMap = currentlyLockedAlphaMap.copy();-
1762 delete glyph;-
1763 }
never executed: end of block
0
1764-
1765 if (!glyphHasGeometry
!glyphHasGeometryDescription
TRUEevaluated 13863 times by 59 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QHeaderView
  • tst_QItemDelegate
  • ...
FALSEevaluated 297818 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
)
13863-297818
1766 return
executed 13863 times by 59 tests: return nullptr;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QHeaderView
  • tst_QItemDelegate
  • ...
nullptr;
executed 13863 times by 59 tests: return nullptr;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QHeaderView
  • tst_QItemDelegate
  • ...
13863
1767-
1768 if (currentlyLockedAlphaMap.isNull()
currentlyLocke...haMap.isNull()Description
TRUEnever evaluated
FALSEevaluated 297818 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
)
0-297818
1769 return
never executed: return QFontEngine::lockedAlphaMapForGlyph(glyphIndex, subPixelPosition, neededFormat, t, offset);
QFontEngine::lockedAlphaMapForGlyph(glyphIndex, subPixelPosition, neededFormat, t, offset);
never executed: return QFontEngine::lockedAlphaMapForGlyph(glyphIndex, subPixelPosition, neededFormat, t, offset);
0
1770-
1771 QImageData *data = currentlyLockedAlphaMap.data_ptr();-
1772 data->is_locked = true;-
1773-
1774 return
executed 297818 times by 76 tests: return &currentlyLockedAlphaMap;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
&currentlyLockedAlphaMap;
executed 297818 times by 76 tests: return &currentlyLockedAlphaMap;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
297818
1775}-
1776-
1777void QFontEngineFT::unlockAlphaMapForGlyph()-
1778{-
1779 QFontEngine::unlockAlphaMapForGlyph();-
1780}
executed 297818 times by 76 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
297818
1781-
1782static inline bool is2dRotation(const QTransform &t)-
1783{-
1784 return
executed 2498 times by 7 tests: return qFuzzyCompare(t.m11(), t.m22()) && qFuzzyCompare(t.m12(), -t.m21()) && qFuzzyCompare(t.m11()*t.m22() - t.m12()*t.m21(), qreal(1.0));
Executed by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
qFuzzyCompare(t.m11(), t.m22()) && qFuzzyCompare(t.m12(), -t.m21())
executed 2498 times by 7 tests: return qFuzzyCompare(t.m11(), t.m22()) && qFuzzyCompare(t.m12(), -t.m21()) && qFuzzyCompare(t.m11()*t.m22() - t.m12()*t.m21(), qreal(1.0));
Executed by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
2498
1785 && qFuzzyCompare(t.m11()*t.m22() - t.m12()*t.m21(), qreal(1.0));
executed 2498 times by 7 tests: return qFuzzyCompare(t.m11(), t.m22()) && qFuzzyCompare(t.m12(), -t.m21()) && qFuzzyCompare(t.m11()*t.m22() - t.m12()*t.m21(), qreal(1.0));
Executed by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
2498
1786}-
1787-
1788QFontEngineFT::Glyph *QFontEngineFT::loadGlyphFor(glyph_t g,-
1789 QFixed subPixelPosition,-
1790 GlyphFormat format,-
1791 const QTransform &t,-
1792 bool fetchBoundingBox)-
1793{-
1794 QGlyphSet *glyphSet = loadGlyphSet(t);-
1795 if (glyphSet != 0
glyphSet != 0Description
TRUEevaluated 311703 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
FALSEnever evaluated
&& glyphSet->outline_drawing
glyphSet->outline_drawingDescription
TRUEnever evaluated
FALSEevaluated 311703 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
&& !fetchBoundingBox
!fetchBoundingBoxDescription
TRUEnever evaluated
FALSEnever evaluated
)
0-311703
1796 return
never executed: return 0;
0;
never executed: return 0;
0
1797-
1798 Glyph *glyph = glyphSet != 0
glyphSet != 0Description
TRUEevaluated 311703 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
FALSEnever evaluated
? glyphSet->getGlyph(g, subPixelPosition) : 0;
0-311703
1799 if (!glyph
!glyphDescription
TRUEevaluated 4756 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
FALSEevaluated 306947 times by 75 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • ...
|| glyph->format != format
glyph->format != formatDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QPainter
FALSEevaluated 306946 times by 75 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • ...
|| (!fetchBoundingBox
!fetchBoundingBoxDescription
TRUEevaluated 306935 times by 75 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • ...
FALSEevaluated 11 times by 1 test
Evaluated by:
  • tst_QGraphicsView
&& !glyph->data
!glyph->dataDescription
TRUEevaluated 13664 times by 56 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QLabel
  • ...
FALSEevaluated 293271 times by 75 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • ...
)) {
1-306947
1800 QScopedValueRollback<HintStyle> saved_default_hint_style(default_hint_style);-
1801 if (t.type() >= QTransform::TxScale
t.type() >= QT...sform::TxScaleDescription
TRUEevaluated 2498 times by 7 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
FALSEevaluated 15923 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
&& !is2dRotation(t)
!is2dRotation(t)Description
TRUEevaluated 936 times by 5 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QPrinter
  • tst_QStaticText
FALSEevaluated 1562 times by 4 tests
Evaluated by:
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QStaticText
  • tst_QTabWidget
)
936-15923
1802 default_hint_style = HintNone;
executed 936 times by 5 tests: default_hint_style = HintNone;
Executed by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QPrinter
  • tst_QStaticText
936
1803-
1804 lockFace();-
1805 FT_Matrix m = this->matrix;-
1806 FT_Matrix ftMatrix = glyphSet != 0
glyphSet != 0Description
TRUEevaluated 18421 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
FALSEnever evaluated
? glyphSet->transformationMatrix : QTransformToFTMatrix(t);
0-18421
1807 FT_Matrix_Multiply(&ftMatrix, &m);-
1808 freetype->matrix = m;-
1809 glyph = loadGlyph(glyphSet, g, subPixelPosition, format, false);-
1810 unlockFace();-
1811 }
executed 18421 times by 76 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
18421
1812-
1813 return
executed 311703 times by 76 tests: return glyph;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
glyph;
executed 311703 times by 76 tests: return glyph;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
311703
1814}-
1815-
1816QImage QFontEngineFT::alphaMapForGlyph(glyph_t g, QFixed subPixelPosition)-
1817{-
1818 return
never executed: return alphaMapForGlyph(g, subPixelPosition, QTransform());
alphaMapForGlyph(g, subPixelPosition, QTransform());
never executed: return alphaMapForGlyph(g, subPixelPosition, QTransform());
0
1819}-
1820-
1821QImage QFontEngineFT::alphaMapForGlyph(glyph_t g, QFixed subPixelPosition, const QTransform &t)-
1822{-
1823 const GlyphFormat neededFormat = antialias
antialiasDescription
TRUEevaluated 11 times by 1 test
Evaluated by:
  • tst_QGraphicsView
FALSEnever evaluated
? Format_A8 : Format_Mono;
0-11
1824-
1825 Glyph *glyph = loadGlyphFor(g, subPixelPosition, neededFormat, t);-
1826-
1827 QImage img = alphaMapFromGlyphData(glyph, neededFormat);-
1828 img = img.copy();-
1829-
1830 if (!cacheEnabled
!cacheEnabledDescription
TRUEnever evaluated
FALSEevaluated 11 times by 1 test
Evaluated by:
  • tst_QGraphicsView
&& glyph != &emptyGlyph
glyph != &emptyGlyphDescription
TRUEnever evaluated
FALSEnever evaluated
)
0-11
1831 delete glyph;
never executed: delete glyph;
0
1832-
1833 if (!img.isNull()
!img.isNull()Description
TRUEevaluated 11 times by 1 test
Evaluated by:
  • tst_QGraphicsView
FALSEnever evaluated
)
0-11
1834 return
executed 11 times by 1 test: return img;
Executed by:
  • tst_QGraphicsView
img;
executed 11 times by 1 test: return img;
Executed by:
  • tst_QGraphicsView
11
1835-
1836 return
never executed: return QFontEngine::alphaMapForGlyph(g);
QFontEngine::alphaMapForGlyph(g);
never executed: return QFontEngine::alphaMapForGlyph(g);
0
1837}-
1838-
1839QImage QFontEngineFT::alphaRGBMapForGlyph(glyph_t g, QFixed subPixelPosition, const QTransform &t)-
1840{-
1841 if (t.type() > QTransform::TxRotate
t.type() > QTr...form::TxRotateDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1842 return
never executed: return QFontEngine::alphaRGBMapForGlyph(g, subPixelPosition, t);
QFontEngine::alphaRGBMapForGlyph(g, subPixelPosition, t);
never executed: return QFontEngine::alphaRGBMapForGlyph(g, subPixelPosition, t);
0
1843-
1844 const GlyphFormat neededFormat = Format_A32;-
1845-
1846 Glyph *glyph = loadGlyphFor(g, subPixelPosition, neededFormat, t);-
1847-
1848 QImage img = alphaMapFromGlyphData(glyph, neededFormat);-
1849 img = img.copy();-
1850-
1851 if (!cacheEnabled
!cacheEnabledDescription
TRUEnever evaluated
FALSEnever evaluated
&& glyph != &emptyGlyph
glyph != &emptyGlyphDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1852 delete glyph;
never executed: delete glyph;
0
1853-
1854 if (!img.isNull()
!img.isNull()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1855 return
never executed: return img;
img;
never executed: return img;
0
1856-
1857 return
never executed: return QFontEngine::alphaRGBMapForGlyph(g, subPixelPosition, t);
QFontEngine::alphaRGBMapForGlyph(g, subPixelPosition, t);
never executed: return QFontEngine::alphaRGBMapForGlyph(g, subPixelPosition, t);
0
1858}-
1859-
1860QImage QFontEngineFT::bitmapForGlyph(glyph_t g, QFixed subPixelPosition, const QTransform &t)-
1861{-
1862 Glyph *glyph = loadGlyphFor(g, subPixelPosition, defaultFormat, t);-
1863 if (glyph == nullptr
glyph == nullptrDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1864 return
never executed: return QImage();
QImage();
never executed: return QImage();
0
1865-
1866 QImage img;-
1867 if (defaultFormat == GlyphFormat::Format_ARGB
defaultFormat ...t::Format_ARGBDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1868 img = QImage(glyph->data, glyph->width, glyph->height, QImage::Format_ARGB32_Premultiplied).copy();
never executed: img = QImage(glyph->data, glyph->width, glyph->height, QImage::Format_ARGB32_Premultiplied).copy();
0
1869 else if (defaultFormat == GlyphFormat::Format_Mono
defaultFormat ...t::Format_MonoDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1870 img = QImage(glyph->data, glyph->width, glyph->height, QImage::Format_Mono).copy();
never executed: img = QImage(glyph->data, glyph->width, glyph->height, QImage::Format_Mono).copy();
0
1871-
1872 if (!img.isNull()
!img.isNull()Description
TRUEnever evaluated
FALSEnever evaluated
&& (!t.isIdentity()
!t.isIdentity()Description
TRUEnever evaluated
FALSEnever evaluated
|| scalableBitmapScaleFactor != 1
scalableBitmapScaleFactor != 1Description
TRUEnever evaluated
FALSEnever evaluated
)) {
0
1873 QTransform trans(t);-
1874 const qreal scaleFactor = scalableBitmapScaleFactor.toReal();-
1875 trans.scale(scaleFactor, scaleFactor);-
1876 img = img.transformed(trans, Qt::SmoothTransformation);-
1877 }
never executed: end of block
0
1878-
1879 if (!cacheEnabled
!cacheEnabledDescription
TRUEnever evaluated
FALSEnever evaluated
&& glyph != &emptyGlyph
glyph != &emptyGlyphDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1880 delete glyph;
never executed: delete glyph;
0
1881-
1882 return
never executed: return img;
img;
never executed: return img;
0
1883}-
1884-
1885void QFontEngineFT::removeGlyphFromCache(glyph_t glyph)-
1886{-
1887 defaultGlyphSet.removeGlyphFromCache(glyph, 0);-
1888}
never executed: end of block
0
1889-
1890int QFontEngineFT::glyphCount() const-
1891{-
1892 int count = 0;-
1893 FT_Face face = lockFace();-
1894 if (face
faceDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
1895 count = face->num_glyphs;-
1896 unlockFace();-
1897 }
never executed: end of block
0
1898 return
never executed: return count;
count;
never executed: return count;
0
1899}-
1900-
1901FT_Face QFontEngineFT::lockFace(Scaling scale) const-
1902{-
1903 freetype->lock();-
1904 FT_Face face = freetype->face;-
1905 if (scale == Unscaled
scale == UnscaledDescription
TRUEevaluated 21 times by 6 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
FALSEevaluated 28130 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
) {
21-28130
1906 if (FT_Set_Char_Size(face, face->units_per_EM << 6, face->units_per_EM << 6, 0, 0) == 0
FT_Set_Char_Si... 6, 0, 0) == 0Description
TRUEevaluated 21 times by 6 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
FALSEnever evaluated
) {
0-21
1907 freetype->xsize = face->units_per_EM << 6;-
1908 freetype->ysize = face->units_per_EM << 6;-
1909 }
executed 21 times by 6 tests: end of block
Executed by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
21
1910 }
executed 21 times by 6 tests: end of block
Executed by:
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QPicture
  • tst_QStaticText
  • tst_QTextTable
else if (freetype->xsize != xsize
freetype->xsize != xsizeDescription
TRUEevaluated 2053 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
FALSEevaluated 26077 times by 115 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
|| freetype->ysize != ysize
freetype->ysize != ysizeDescription
TRUEnever evaluated
FALSEevaluated 26077 times by 115 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
) {
0-26077
1911 FT_Set_Char_Size(face, xsize, ysize, 0, 0);-
1912 freetype->xsize = xsize;-
1913 freetype->ysize = ysize;-
1914 }
executed 2053 times by 123 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
2053
1915 if (freetype->matrix.xx != matrix.xx
freetype->matr...x != matrix.xxDescription
TRUEevaluated 2496 times by 7 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
FALSEevaluated 25655 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
||
2496-25655
1916 freetype->matrix.yy != matrix.yy
freetype->matr...y != matrix.yyDescription
TRUEnever evaluated
FALSEevaluated 25655 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
||
0-25655
1917 freetype->matrix.xy != matrix.xy
freetype->matr...y != matrix.xyDescription
TRUEnever evaluated
FALSEevaluated 25655 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
||
0-25655
1918 freetype->matrix.yx != matrix.yx
freetype->matr...x != matrix.yxDescription
TRUEnever evaluated
FALSEevaluated 25655 times by 123 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
) {
0-25655
1919 freetype->matrix = matrix;-
1920 FT_Set_Transform(face, &freetype->matrix, 0);-
1921 }
executed 2496 times by 7 tests: end of block
Executed by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QStaticText
  • tst_QTabWidget
2496
1922-
1923 return
executed 28151 times by 123 tests: return face;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
face;
executed 28151 times by 123 tests: return face;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
28151
1924}-
1925-
1926void QFontEngineFT::unlockFace() const-
1927{-
1928 freetype->unlock();-
1929}
executed 28151 times by 123 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
28151
1930-
1931FT_Face QFontEngineFT::non_locked_face() const-
1932{-
1933 return
never executed: return freetype->face;
freetype->face;
never executed: return freetype->face;
0
1934}-
1935-
1936-
1937QFontEngineFT::QGlyphSet::QGlyphSet()-
1938 : outline_drawing(false)-
1939{-
1940 transformationMatrix.xx = 0x10000;-
1941 transformationMatrix.yy = 0x10000;-
1942 transformationMatrix.xy = 0;-
1943 transformationMatrix.yx = 0;-
1944 memset(fast_glyph_data, 0, sizeof(fast_glyph_data));-
1945 fast_glyph_count = 0;-
1946}
executed 2180 times by 123 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
2180
1947-
1948QFontEngineFT::QGlyphSet::~QGlyphSet()-
1949{-
1950 clear();-
1951}
executed 2309 times by 199 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontCache
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QFormLayout
  • ...
2309
1952-
1953void QFontEngineFT::QGlyphSet::clear()-
1954{-
1955 if (fast_glyph_count > 0
fast_glyph_count > 0Description
TRUEevaluated 682 times by 120 tests
Evaluated by:
  • tst_QApplication
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QRawFont
  • tst_QTextLayout
  • tst_languagechange - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • ...
FALSEevaluated 1889 times by 99 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontCache
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QFormLayout
  • ...
) {
682-1889
1956 for (int i = 0; i < 256
i < 256Description
TRUEevaluated 174592 times by 120 tests
Evaluated by:
  • tst_QApplication
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QRawFont
  • tst_QTextLayout
  • tst_languagechange - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • ...
FALSEevaluated 682 times by 120 tests
Evaluated by:
  • tst_QApplication
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QRawFont
  • tst_QTextLayout
  • tst_languagechange - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • ...
; ++i) {
682-174592
1957 if (fast_glyph_data[i]
fast_glyph_data[i]Description
TRUEevaluated 11455 times by 120 tests
Evaluated by:
  • tst_QApplication
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QRawFont
  • tst_QTextLayout
  • tst_languagechange - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • ...
FALSEevaluated 163137 times by 120 tests
Evaluated by:
  • tst_QApplication
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QRawFont
  • tst_QTextLayout
  • tst_languagechange - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • ...
) {
11455-163137
1958 delete fast_glyph_data[i];-
1959 fast_glyph_data[i] = 0;-
1960 }
executed 11455 times by 120 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QRawFont
  • tst_QTextLayout
  • tst_languagechange - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • ...
11455
1961 }
executed 174592 times by 120 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QRawFont
  • tst_QTextLayout
  • tst_languagechange - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • ...
174592
1962 fast_glyph_count = 0;-
1963 }
executed 682 times by 120 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsView
  • tst_QPainter
  • tst_QRawFont
  • tst_QTextLayout
  • tst_languagechange - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • ...
682
1964 qDeleteAll(glyph_data);-
1965 glyph_data.clear();-
1966}
executed 2571 times by 199 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontCache
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QFormLayout
  • ...
2571
1967-
1968void QFontEngineFT::QGlyphSet::removeGlyphFromCache(glyph_t index, QFixed subPixelPosition)-
1969{-
1970 if (useFastGlyphData(index, subPixelPosition)
useFastGlyphDa...PixelPosition)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1971 if (fast_glyph_data[index]
fast_glyph_data[index]Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1972 delete fast_glyph_data[index];-
1973 fast_glyph_data[index] = 0;-
1974 if (fast_glyph_count > 0
fast_glyph_count > 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1975 --
never executed: --fast_glyph_count;
fast_glyph_count;
never executed: --fast_glyph_count;
0
1976 }
never executed: end of block
0
1977 }
never executed: end of block
else {
0
1978 delete glyph_data.take(GlyphAndSubPixelPosition(index, subPixelPosition));-
1979 }
never executed: end of block
0
1980}-
1981-
1982void QFontEngineFT::QGlyphSet::setGlyph(glyph_t index, QFixed subPixelPosition, Glyph *glyph)-
1983{-
1984 if (useFastGlyphData(index, subPixelPosition)
useFastGlyphDa...PixelPosition)Description
TRUEevaluated 25565 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
FALSEevaluated 343 times by 34 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColorDialog
  • tst_QComplexText
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QLineEdit
  • tst_QListView
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QPainter
  • tst_QPlainTextEdit
  • tst_QRawFont
  • tst_QStackedLayout
  • tst_QStaticText
  • tst_QTableView
  • tst_QTextCursor
  • tst_QTextDocument
  • ...
) {
343-25565
1985 if (!fast_glyph_data[index]
!fast_glyph_data[index]Description
TRUEevaluated 11900 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
FALSEevaluated 13665 times by 57 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QLabel
  • ...
)
11900-13665
1986 ++
executed 11900 times by 114 tests: ++fast_glyph_count;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
fast_glyph_count;
executed 11900 times by 114 tests: ++fast_glyph_count;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
11900
1987 fast_glyph_data[index] = glyph;-
1988 }
executed 25565 times by 114 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
else {
25565
1989 glyph_data.insert(GlyphAndSubPixelPosition(index, subPixelPosition), glyph);-
1990 }
executed 343 times by 34 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColorDialog
  • tst_QComplexText
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QLineEdit
  • tst_QListView
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QPainter
  • tst_QPlainTextEdit
  • tst_QRawFont
  • tst_QStackedLayout
  • tst_QStaticText
  • tst_QTableView
  • tst_QTextCursor
  • tst_QTextDocument
  • ...
343
1991}-
1992-
1993int QFontEngineFT::getPointInOutline(glyph_t glyph, int flags, quint32 point, QFixed *xpos, QFixed *ypos, quint32 *nPoints)-
1994{-
1995 lockFace();-
1996 bool hsubpixel = true;-
1997 int vfactor = 1;-
1998 int load_flags = loadFlags(0, Format_A8, flags, hsubpixel, vfactor);-
1999 int result = freetype->getPointInOutline(glyph, load_flags, point, xpos, ypos, nPoints);-
2000 unlockFace();-
2001 return
never executed: return result;
result;
never executed: return result;
0
2002}-
2003-
2004bool QFontEngineFT::initFromFontEngine(const QFontEngineFT *fe)-
2005{-
2006 if (!init(fe->faceId(), fe->antialias, fe->defaultFormat, fe->freetype)
!init(fe->face... fe->freetype)Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QRawFont
)
0-4
2007 return
never executed: return false;
false;
never executed: return false;
0
2008-
2009-
2010-
2011 freetype->ref.ref();-
2012-
2013 default_load_flags = fe->default_load_flags;-
2014 default_hint_style = fe->default_hint_style;-
2015 antialias = fe->antialias;-
2016 transform = fe->transform;-
2017 embolden = fe->embolden;-
2018 obliquen = fe->obliquen;-
2019 subpixelType = fe->subpixelType;-
2020 lcdFilterType = fe->lcdFilterType;-
2021 embeddedbitmap = fe->embeddedbitmap;-
2022-
2023 return
executed 4 times by 1 test: return true;
Executed by:
  • tst_QRawFont
true;
executed 4 times by 1 test: return true;
Executed by:
  • tst_QRawFont
4
2024}-
2025-
2026QFontEngine *QFontEngineFT::cloneWithSize(qreal pixelSize) const-
2027{-
2028 QFontDef fontDef(this->fontDef);-
2029 fontDef.pixelSize = pixelSize;-
2030 QFontEngineFT *fe = new QFontEngineFT(fontDef);-
2031 if (!fe->initFromFontEngine(this)
!fe->initFromFontEngine(this)Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QRawFont
) {
0-4
2032 delete fe;-
2033 return
never executed: return 0;
0;
never executed: return 0;
0
2034 } else {-
2035 return
executed 4 times by 1 test: return fe;
Executed by:
  • tst_QRawFont
fe;
executed 4 times by 1 test: return fe;
Executed by:
  • tst_QRawFont
4
2036 }-
2037}-
2038-
2039Qt::HANDLE QFontEngineFT::handle() const-
2040{-
2041 return
never executed: return non_locked_face();
non_locked_face();
never executed: return non_locked_face();
0
2042}-
2043-
2044-
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial 4.3.0-BETA-master-30-08-2018-4cb69e9