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