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 | | - |
35 | | - |
36 | | - |
37 | | - |
38 | | - |
39 | | - |
40 | | - |
41 | | - |
42 | #include <QtCore/QByteArray> | - |
43 | #include <QtCore/QScopedPointer> | - |
44 | | - |
45 | #include "qglxconvenience_p.h" | - |
46 | | - |
47 | #include <QtCore/QVector> | - |
48 | #include <QtCore/QVarLengthArray> | - |
49 | | - |
50 | #ifndef QT_NO_XRENDER | - |
51 | #include <X11/extensions/Xrender.h> | - |
52 | #endif | - |
53 | | - |
54 | #include <GL/glxext.h> | - |
55 | | - |
56 | enum { | - |
57 | XFocusOut = FocusOut, | - |
58 | XFocusIn = FocusIn, | - |
59 | XKeyPress = KeyPress, | - |
60 | XKeyRelease = KeyRelease, | - |
61 | XNone = None, | - |
62 | XRevertToParent = RevertToParent, | - |
63 | XGrayScale = GrayScale, | - |
64 | XCursorShape = CursorShape | - |
65 | }; | - |
66 | #undef FocusOut | - |
67 | #undef FocusIn | - |
68 | #undef KeyPress | - |
69 | #undef KeyRelease | - |
70 | #undef None | - |
71 | #undef RevertToParent | - |
72 | #undef GrayScale | - |
73 | #undef CursorShape | - |
74 | | - |
75 | #ifdef FontChange | - |
76 | #undef FontChange | - |
77 | #endif | - |
78 | | - |
79 | QVector<int> qglx_buildSpec(const QSurfaceFormat &format, int drawableBit) | - |
80 | { | - |
81 | QVector<int> spec(48); | - |
| int i = 0; | |
82 | | - |
83 | spec [i++] =<< GLX_LEVEL | - |
84 | ; | - |
| spec[i++] =<< 0 | |
85 | | - |
86 | ; | - |
| spec[i++] = GLX_DRAWABLE_TYPE; spec[i++] = drawableBit; | |
| | |
| spec[i++] =<< GLX_RENDER_TYPE | |
87 | ; spec[i++] =<< GLX_RGBA_BIT | - |
88 | | - |
89 | ; | - |
| | |
| spec[i++] =<< GLX_RED_SIZE | |
90 | ; spec[i++] =<< qMax(format.redBufferSize() == -1) ?1:, format.redBufferSize(); | - |
| spec[i++] =()) | |
91 | | - |
92 | << GLX_GREEN_SIZE | - |
93 | ; spec[i++] =<< qMax(format.greenBufferSize() == -1) ?1:, format.greenBufferSize(); | - |
| spec[i++] =()) | |
94 | | - |
95 | << GLX_BLUE_SIZE | - |
96 | ; spec[i++] =<< qMax(format.blueBufferSize() == -1) ?1:, format.blueBufferSize(); | - |
| if (format.hasAlpha()) | |
97 | | - |
98 | { | - |
| spec[i++] =<< GLX_ALPHA_SIZE | |
99 | ; spec[i++] =<< qMax(0, format.alphaBufferSize(); | - |
| } | |
| | |
| spec[i++] = GLX_DOUBLEBUFFER; spec[i++] =()); | |
100 | | - |
101 | if (TRUE | evaluated 4057 times by 120 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| FALSE | never evaluated |
format.swapBehavior() != QSurfaceFormat::SingleBuffer? True : False;)TRUE | evaluated 4057 times by 120 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| FALSE | never evaluated |
| 0-4057 |
102 | spec [i++] = GLX_STEREO<< GLX_DOUBLEBUFFERexecuted 4057 times by 120 tests: spec << 5 << 1; Executed by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| 4057 |
103 | << Trueexecuted 4057 times by 120 tests: spec << 5 << 1; Executed by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
;executed 4057 times by 120 tests: spec << 5 << 1; Executed by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| 4057 |
104 | | - |
105 | spec[i++] =if (format.stereo() ?())TRUE | never evaluated | FALSE | evaluated 4057 times by 120 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
|
| 0-4057 |
106 | spec << GLX_STEREO never executed: spec << 6 << 1; | 0 |
107 | << never executed: spec << 6 << 1; True: False;never executed: spec << 6 << 1; | 0 |
108 | | - |
109 | if (format.depthBufferSize() > 0!= -1)TRUE | evaluated 64 times by 7 testsEvaluated by:- tst_QGLBuffer
- tst_QGLFunctions
- tst_QGraphicsView
- tst_QMdiArea
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QOpenGlConfig
| FALSE | evaluated 3993 times by 118 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
|
| 64-3993 |
110 | {spec [i++] =<< GLX_DEPTH_SIZEexecuted 64 times by 7 tests: spec << 12 << format.depthBufferSize(); Executed by:- tst_QGLBuffer
- tst_QGLFunctions
- tst_QGraphicsView
- tst_QMdiArea
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QOpenGlConfig
| 64 |
111 | ; spec[i++] =<< format.depthBufferSize();executed 64 times by 7 tests: spec << 12 << format.depthBufferSize(); Executed by:- tst_QGLBuffer
- tst_QGLFunctions
- tst_QGraphicsView
- tst_QMdiArea
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QOpenGlConfig
| 64 |
112 | | - |
113 | }if (format.stencilBufferSize() > 0) {TRUE | evaluated 64 times by 7 testsEvaluated by:- tst_QGLBuffer
- tst_QGLFunctions
- tst_QGraphicsView
- tst_QMdiArea
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QOpenGlConfig
| FALSE | evaluated 3993 times by 118 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
|
| 64-3993 |
| spec[i++] = GLX_STENCIL_SIZE; spec[i++] =TRUE | evaluated 64 times by 7 testsEvaluated by:- tst_QGLBuffer
- tst_QGLFunctions
- tst_QGraphicsView
- tst_QMdiArea
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QOpenGlConfig
| FALSE | evaluated 3993 times by 118 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
|
(format.stencilBufferSize() ==!= -1)TRUE | evaluated 64 times by 7 testsEvaluated by:- tst_QGLBuffer
- tst_QGLFunctions
- tst_QGraphicsView
- tst_QMdiArea
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QOpenGlConfig
| FALSE | evaluated 3993 times by 118 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
|
| |
114 | ? 1 :spec << GLX_STENCIL_SIZEexecuted 64 times by 7 tests: spec << 13 << format.stencilBufferSize(); Executed by:- tst_QGLBuffer
- tst_QGLFunctions
- tst_QGraphicsView
- tst_QMdiArea
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QOpenGlConfig
| 64 |
115 | <<executed 64 times by 7 tests: spec << 13 << format.stencilBufferSize(); Executed by:- tst_QGLBuffer
- tst_QGLFunctions
- tst_QGraphicsView
- tst_QMdiArea
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QOpenGlConfig
format.stencilBufferSize();executed 64 times by 7 tests: spec << 13 << format.stencilBufferSize(); Executed by:- tst_QGLBuffer
- tst_QGLFunctions
- tst_QGraphicsView
- tst_QMdiArea
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QOpenGlConfig
| 64 |
116 | | - |
117 | }if (format.samples() > 1)TRUE | never evaluated | FALSE | evaluated 4057 times by 120 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
|
| 0-4057 |
118 | {spec [i++] =<< GLX_SAMPLE_BUFFERS_ARB never executed: spec << 100000 << 1 << 100001 << format.samples(); | 0 |
119 | ; never executed: spec << 100000 << 1 << 100001 << format.samples(); | 0 |
| spec[i++] = never executed: spec << 100000 << 1 << 100001 << format.samples(); << 1never executed: spec << 100000 << 1 << 100001 << format.samples(); | |
120 | ; never executed: spec << 100000 << 1 << 100001 << format.samples(); | 0 |
| spec[i++] = never executed: spec << 100000 << 1 << 100001 << format.samples(); << GLX_SAMPLES_ARBnever executed: spec << 100000 << 1 << 100001 << format.samples(); | |
121 | ; never executed: spec << 100000 << 1 << 100001 << format.samples(); | 0 |
| spec[i++] = never executed: spec << 100000 << 1 << 100001 << format.samples(); << format.samples();never executed: spec << 100000 << 1 << 100001 << format.samples(); | |
122 | | - |
123 | }spec [i++] =<< GLX_DRAWABLE_TYPE | - |
124 | << drawableBit | - |
125 | | - |
126 | << XNone; | - |
127 | | - |
128 | return spec;executed 4057 times by 120 tests: return spec; Executed by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| 4057 |
129 | } | - |
130 | | - |
| GLXFBConfig qglx_findConfig(Display *display, int screen , const QSurfaceFormat &format, int drawableBit)namespace { | |
132 | struct QXcbSoftwareOpenGLEnforcer { | - |
133 | QXcbSoftwareOpenGLEnforcer() { | - |
134 | | - |
135 | | - |
136 | | - |
137 | | - |
138 | | - |
139 | static bool checkedForceSoftwareOpenGL = false;TRUE | evaluated 124 times by 120 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| FALSE | evaluated 3933 times by 105 testsEvaluated by:- tst_Gestures
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
|
| 124-3933 |
| static bool forceSoftwareOpenGL = false;TRUE | evaluated 124 times by 120 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| FALSE | evaluated 3933 times by 105 testsEvaluated by:- tst_Gestures
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
|
if (!checkedForceSoftwareOpenGL) {TRUE | evaluated 124 times by 120 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| FALSE | evaluated 3933 times by 105 testsEvaluated by:- tst_Gestures
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
|
| |
140 | | - |
141 | | - |
142 | | - |
143 | | - |
144 | if (!qEnvironmentVariableIsEmpty("QT_XCB_FORCE_SOFTWARE_OPENGL")TRUE | never evaluated | FALSE | evaluated 124 times by 120 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
|
| 0-124 |
145 | && !qEnvironmentVariableIsSet("LIBGL_ALWAYS_SOFTWARE"))TRUE | never evaluated | FALSE | never evaluated |
| 0 |
146 | forceSoftwareOpenGL = true; never executed: forceSoftwareOpenGL = true; | 0 |
147 | | - |
148 | checkedForceSoftwareOpenGL = true; | - |
149 | }executed 124 times by 120 tests: end of block Executed by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| 124 |
150 | | - |
151 | if (forceSoftwareOpenGL)TRUE | never evaluated | FALSE | evaluated 4057 times by 120 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
|
| 0-4057 |
152 | qputenv("LIBGL_ALWAYS_SOFTWARE", QByteArrayLiteral("1")); never executed: qputenv("LIBGL_ALWAYS_SOFTWARE", ([]() -> QByteArray { enum { Size = sizeof("1") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "1" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return ba; }())); never executed: return ba; | 0 |
153 | }executed 4057 times by 120 tests: end of block Executed by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| 4057 |
154 | | - |
155 | ~QXcbSoftwareOpenGLEnforcer() { | - |
156 | | - |
157 | if (forceSoftwareOpenGL)TRUE | never evaluated | FALSE | evaluated 4057 times by 120 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
|
| 0-4057 |
158 | qunsetenv("LIBGL_ALWAYS_SOFTWARE"); never executed: qunsetenv("LIBGL_ALWAYS_SOFTWARE"); | 0 |
159 | }executed 4057 times by 120 tests: end of block Executed by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| 4057 |
160 | | - |
161 | static bool reducedcheckedForceSoftwareOpenGL; | - |
162 | static bool forceSoftwareOpenGL; | - |
163 | }; | - |
164 | | - |
165 | bool QXcbSoftwareOpenGLEnforcer::checkedForceSoftwareOpenGL = truefalse; | - |
| GLXFBConfig chosenConfigbool QXcbSoftwareOpenGLEnforcer::forceSoftwareOpenGL = 0false; | |
167 | | - |
| QSurfaceFormat reducedFormattemplate <class T> | |
169 | struct QXlibScopedPointerDeleter { | - |
170 | static inline void cleanup(T *pointer) { | - |
171 | XFree(pointer); | - |
172 | }executed 8166 times by 120 tests: end of block Executed by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| 8166 |
173 | }; | - |
174 | | - |
175 | template <class T> | - |
176 | using QXlibPointer = QScopedPointer<T, QXlibScopedPointerDeleter<T>>; | - |
177 | | - |
178 | template <class T> | - |
179 | using QXlibArrayPointer = QScopedArrayPointer<T, QXlibScopedPointerDeleter<T>>; | - |
180 | } | - |
181 | | - |
182 | GLXFBConfig qglx_findConfig(Display *display, int screen , QSurfaceFormat format; | - |
| while (!chosenConfig && reduced, bool highestPixelFormat, int drawableBit) | |
183 | { | - |
184 | QXcbSoftwareOpenGLEnforcer softwareOpenGLEnforcer; | - |
185 | | - |
186 | GLXFBConfig config = 0; | - |
187 | | - |
188 | do { | - |
189 | const QVector<int> spec = qglx_buildSpec(reducedFormatformat, drawableBit); | - |
190 | | - |
191 | int confcount = 0; | - |
192 | QXlibArrayPointer<GLXFBConfig*configs;> configs=(glXChooseFBConfig(display, screen, spec.constData(), &confcount);)); | - |
193 | | - |
194 | if ((!config && confcount > 0) {TRUE | evaluated 4057 times by 120 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| FALSE | never evaluated |
TRUE | evaluated 4057 times by 120 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| FALSE | never evaluated |
| 0-4057 |
195 | config = configs[0]; | - |
196 | if (highestPixelFormat && !format.hasAlpha())TRUE | never evaluated | FALSE | evaluated 4057 times by 120 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
|
TRUE | never evaluated | FALSE | never evaluated |
| 0-4057 |
197 | break; never executed: break; | 0 |
198 | }executed 4057 times by 120 tests: end of block Executed by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| 4057 |
199 | | - |
200 | const int requestedRed = qMax(0, format.redBufferSize()); | - |
201 | const int requestedGreen = qMax(0, format.greenBufferSize()); | - |
202 | const int requestedBlue = qMax(0, format.blueBufferSize()); | - |
203 | const int requestedAlpha = qMax(0, format.alphaBufferSize()); | - |
204 | | - |
205 | for (int i = 0; i < confcount; i++) {TRUE | evaluated 4109 times by 120 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| FALSE | never evaluated |
| 0-4109 |
206 | chosenConfigGLXFBConfig candidate = configs[i]; | - |
207 | | - |
208 | if (reducedFormat.hasAlpha()) { | - |
| int alphaSize; | |
| glXGetFBConfigAttrib(display,configs[i],GLX_ALPHA_SIZE,&alphaSize); | |
| if (alphaSize > 0) {QXlibPointer<XVisualInfo*> visual=(glXGetVisualFromFBConfig(display, chosenConfig); | |
| bool hasAlphacandidate)); | |
209 | | - |
210 | const int actualRed = false; | - |
| | |
| #if !definedqPopulationCount(QT_NO_XRENDER) | |
| XRenderPictFormat *pictFormatvisual->red_mask); | |
211 | const int actualGreen = XRenderFindVisualFormatqPopulationCount(display,visual->visualgreen_mask); | - |
212 | hasAlphaconst int actualBlue = pictFormatqPopulationCount(visual->direct.alphaMask > 0; | - |
| #else | |
| hasAlphablue_mask); | |
213 | const int actualAlpha = visual->depth == 32- actualRed - actualGreen - actualBlue; | - |
214 | | - |
215 | #endifTRUE | evaluated 4109 times by 120 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| FALSE | never evaluated |
TRUE | never evaluated | FALSE | evaluated 4109 times by 120 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
|
| 0-4109 |
| | |
| XFree(visual);TRUE | evaluated 4109 times by 120 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| FALSE | never evaluated |
TRUE | never evaluated | FALSE | evaluated 4109 times by 120 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
|
if (hasAlpharequestedRed && actualRed != requestedRed)TRUE | evaluated 4109 times by 120 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| FALSE | never evaluated |
TRUE | never evaluated | FALSE | evaluated 4109 times by 120 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
|
| |
216 | break; never executed: continue; | 0 |
| } never executed: continue; | |
| } else { never executed: continue; | |
| break never executed: continue; continue;never executed: continue; | |
217 | }TRUE | evaluated 4109 times by 120 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| FALSE | never evaluated |
TRUE | never evaluated | FALSE | evaluated 4109 times by 120 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
|
| 0-4109 |
| }TRUE | evaluated 4109 times by 120 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| FALSE | never evaluated |
TRUE | never evaluated | FALSE | evaluated 4109 times by 120 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
|
| |
| | |
| XFree(configs);TRUE | evaluated 4109 times by 120 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| FALSE | never evaluated |
TRUE | never evaluated | FALSE | evaluated 4109 times by 120 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
|
| |
| }TRUE | evaluated 4109 times by 120 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| FALSE | never evaluated |
TRUE | never evaluated | FALSE | evaluated 4109 times by 120 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
|
if (!chosenConfig(requestedGreen && actualGreen != requestedGreen)TRUE | evaluated 4109 times by 120 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| FALSE | never evaluated |
TRUE | never evaluated | FALSE | evaluated 4109 times by 120 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
|
| |
218 | reducedFormat = qglx_reduceSurfaceFormatcontinue; never executed: continue; | 0 |
219 | ifTRUE | evaluated 4109 times by 120 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| FALSE | never evaluated |
TRUE | never evaluated | FALSE | evaluated 4109 times by 120 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
|
(reducedFormat,&reduced);TRUE | evaluated 4109 times by 120 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| FALSE | never evaluated |
TRUE | never evaluated | FALSE | evaluated 4109 times by 120 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
|
| 0-4109 |
| }TRUE | evaluated 4109 times by 120 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| FALSE | never evaluated |
TRUE | never evaluated | FALSE | evaluated 4109 times by 120 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
|
| |
| | |
| TRUE | evaluated 4109 times by 120 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| FALSE | never evaluated |
TRUE | never evaluated | FALSE | evaluated 4109 times by 120 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
|
requestedBlue && actualBlue != requestedBlue)TRUE | evaluated 4109 times by 120 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| FALSE | never evaluated |
TRUE | never evaluated | FALSE | evaluated 4109 times by 120 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
|
| |
220 | continue; never executed: continue; | 0 |
221 | if (forceSoftwareOpenGLrequestedAlpha && actualAlpha != requestedAlpha)TRUE | evaluated 56 times by 2 testsEvaluated by:- tst_QSystemTrayIcon
- tst_QWidget
| FALSE | evaluated 4053 times by 120 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
|
TRUE | evaluated 52 times by 2 testsEvaluated by:- tst_QSystemTrayIcon
- tst_QWidget
| FALSE | evaluated 4 times by 2 testsEvaluated by:- tst_QSystemTrayIcon
- tst_QWidget
|
| 4-4053 |
222 | qunsetenvcontinue;executed 52 times by 2 tests: continue; Executed by:- tst_QSystemTrayIcon
- tst_QWidget
| 52 |
223 | | - |
224 | return candidate;executed 4057 times by 120 tests: return candidate; Executed by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| 4057 |
225 | } | - |
226 | } while never executed: end of block TRUE | never evaluated | FALSE | never evaluated |
("LIBGL_ALWAYS_SOFTWARE");qglx_reduceFormat(&format));never executed: end of block TRUE | never evaluated | FALSE | never evaluated |
| 0 |
227 | | - |
228 | return chosenConfigconfig; never executed: return config; | 0 |
229 | } | - |
230 | | - |
231 | XVisualInfo *qglx_findVisualInfo(Display *display, int screen, QSurfaceFormat *format, int drawableBit) | - |
232 | { | - |
233 | Q_ASSERT(format); | - |
234 | | - |
235 | XVisualInfo *visualInfo = 0; | - |
236 | | - |
237 | GLXFBConfig config = qglx_findConfig(display, screen,*, *format, false, drawableBit); | - |
238 | if (config)TRUE | evaluated 3974 times by 118 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| FALSE | never evaluated |
| 0-3974 |
239 | {visualInfo = glXGetVisualFromFBConfig(display, config);executed 3974 times by 118 tests: visualInfo = glXGetVisualFromFBConfig(display, config); Executed by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| 3974 |
240 | | - |
241 | if (visualInfo) {TRUE | evaluated 3974 times by 118 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| FALSE | never evaluated |
| 0-3974 |
242 | qglx_surfaceFormatFromGLXFBConfig(format, display, config); | - |
243 | return visualInfo;executed 3974 times by 118 tests: return visualInfo; Executed by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
| 3974 |
244 | } | - |
245 | | - |
246 | | - |
247 | bool reduced = true; | - |
| QSurfaceFormat reducedFormat = *format; | |
| while (!visualInfo && reduced)do { | |
248 | QVarLengthArrayQVector<int, 13> attribs; | - |
| attribs.append(GLX_RGBA); | |
| | |
| if (reducedFormat.redBufferSize() > 0) { | |
| attribs.append(GLX_RED_SIZE); | |
| attribs.append(reducedFormat.redBufferSize()); | |
| } | |
| | |
| if (reducedFormat.greenBufferSize() > 0) { | |
| attribs.append(GLX_GREEN_SIZE); | |
| attribs.append(reducedFormat.greenBufferSize()); | |
| } | |
| | |
| if (reducedFormat.blueBufferSize() > 0) { | |
| attribs.append(GLX_BLUE_SIZE); | |
| attribs.append(reducedFormat.blueBufferSize()); | |
| } | |
| | |
| if (reducedFormat.stencilBufferSize() > 0) { | |
| attribs.append(GLX_STENCIL_SIZE); | |
| attribs.append(reducedFormat.stencilBufferSize()); | |
| } | |
| | |
| if (reducedFormat.depthBufferSize()> 0) { | |
| attribs.append(GLX_DEPTH_SIZE); | |
| attribs.append(reducedFormat.depthBufferSize()); | |
| } | |
| | |
| if (reducedFormat.swapBehavior() != QSurfaceFormat::SingleBuffer) | |
| attribs.append(GLX_DOUBLEBUFFER);attribs .append(XNone= qglx_buildSpec(*format, drawableBit); | |
249 | visualInfo = glXChooseVisual(display, screen, attribs.data()); | - |
250 | | - |
251 | if (visualInfo) *format = reducedFormat;TRUE | never evaluated | FALSE | never evaluated |
| 0 |
| | |
| reducedFormat = qglx_reduceSurfaceFormatTRUE | never evaluated | FALSE | never evaluated |
{TRUE | never evaluated | FALSE | never evaluated |
| |
252 | qglx_surfaceFormatFromVisualInfo(reducedFormatformat, &reduceddisplay, visualInfo); | - |
253 | return visualInfo; never executed: return visualInfo; | 0 |
254 | } | - |
255 | } while (qglx_reduceFormat(format)); never executed: end of block TRUE | never evaluated | FALSE | never evaluated |
| 0 |
256 | | - |
257 | return visualInfo; never executed: return visualInfo; | 0 |
258 | } | - |
259 | | - |
260 | void qglx_surfaceFormatFromGLXFBConfig(QSurfaceFormat *format, Display *display, GLXFBConfig config) | - |
261 | { | - |
262 | int redSize = 0; | - |
263 | int greenSize = 0; | - |
264 | int blueSize = 0; | - |
265 | int alphaSize = 0; | - |
266 | int depthSize = 0; | - |
267 | int stencilSize = 0; | - |
268 | int sampleBuffers = 0; | - |
269 | int sampleCount = 0; | - |
270 | int stereo = 0; | - |
271 | | - |
272 | glXGetFBConfigAttrib(display, config, GLX_RED_SIZE, &redSize); | - |
273 | glXGetFBConfigAttrib(display, config, GLX_GREEN_SIZE, &greenSize); | - |
274 | glXGetFBConfigAttrib(display, config, GLX_BLUE_SIZE, &blueSize); | - |
275 | glXGetFBConfigAttrib(display, config, GLX_ALPHA_SIZE, &alphaSize); | - |
276 | glXGetFBConfigAttrib(display, config, GLX_DEPTH_SIZE, &depthSize); | - |
277 | glXGetFBConfigAttrib(display, config, GLX_STENCIL_SIZE, &stencilSize); | - |
278 | glXGetFBConfigAttrib(display, config, GLX_SAMPLES_ARB, &sampleBuffers); | - |
279 | glXGetFBConfigAttrib(display, config, GLX_STEREO, &stereo); | - |
280 | | - |
281 | format->setRedBufferSize(redSize); | - |
282 | format->setGreenBufferSize(greenSize); | - |
283 | format->setBlueBufferSize(blueSize); | - |
284 | format->setAlphaBufferSize(alphaSize); | - |
285 | format->setDepthBufferSize(depthSize); | - |
286 | format->setStencilBufferSize(stencilSize); | - |
287 | if (sampleBuffers) { | - |
288 | glXGetFBConfigAttrib(display, config, GLX_SAMPLES_ARB, &sampleCount); | - |
289 | format->setSamples(sampleCount); | - |
290 | } | - |
291 | | - |
292 | format->setStereo(stereo); | - |
293 | } | - |
294 | | - |
295 | void qglx_surfaceFormatFromVisualInfo(QSurfaceFormat *format, Display *display, XVisualInfo *visualInfo) | - |
296 | { | - |
297 | int redSize = 0; | - |
298 | int greenSize = 0; | - |
299 | int blueSize = 0; | - |
300 | int alphaSize = 0; | - |
301 | int depthSize = 0; | - |
302 | int stencilSize = 0; | - |
303 | int sampleBuffers = 0; | - |
304 | int sampleCount = 0; | - |
305 | int stereo = 0; | - |
306 | | - |
307 | glXGetConfig(display, visualInfo, GLX_RED_SIZE, &redSize); | - |
308 | glXGetConfig(display, visualInfo, GLX_GREEN_SIZE, &greenSize); | - |
309 | glXGetConfig(display, visualInfo, GLX_BLUE_SIZE, &blueSize); | - |
310 | glXGetConfig(display, visualInfo, GLX_ALPHA_SIZE, &alphaSize); | - |
311 | glXGetConfig(display, visualInfo, GLX_DEPTH_SIZE, &depthSize); | - |
312 | glXGetConfig(display, visualInfo, GLX_STENCIL_SIZE, &stencilSize); | - |
313 | glXGetConfig(display, visualInfo, GLX_SAMPLES_ARB, &sampleBuffers); | - |
314 | glXGetConfig(display, visualInfo, GLX_STEREO, &stereo); | - |
315 | | - |
316 | format->setRedBufferSize(redSize); | - |
317 | format->setGreenBufferSize(greenSize); | - |
318 | format->setBlueBufferSize(blueSize); | - |
319 | format->setAlphaBufferSize(alphaSize); | - |
320 | format->setDepthBufferSize(depthSize); | - |
321 | format->setStencilBufferSize(stencilSize); | - |
322 | if (sampleBuffers) { | - |
323 | glXGetConfig(display, visualInfo, GLX_SAMPLES_ARB, &sampleCount); | - |
324 | format->setSamples(sampleCount); | - |
325 | } | - |
326 | | - |
327 | format->setStereo(stereo); | - |
328 | } | - |
329 | | - |
| QSurfaceFormat qglx_reduceSurfaceFormatbool qglx_reduceFormat(constQSurfaceFormat &format, bool*reducedformat) | |
331 | { | - |
332 | QSurfaceFormat retFormat =Q_ASSERT(format; | - |
| *reduced = true;); | |
333 | | - |
334 | if (retFormat.format->redBufferSize() > 1) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
335 | retFormat.format->setRedBufferSize(1); | - |
336 | return true; never executed: return true; | 0 |
337 | } | - |
338 | | - |
339 | elseif (retFormat.format->greenBufferSize() > 1) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
340 | retFormat.format->setGreenBufferSize(1); | - |
341 | return true; never executed: return true; | 0 |
342 | } | - |
343 | | - |
344 | elseif (retFormat.format->blueBufferSize() > 1) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
345 | retFormat.format->setBlueBufferSize(1); | - |
346 | return true; never executed: return true; | 0 |
347 | } | - |
348 | | - |
349 | elseif (retFormat.format->swapBehavior() != QSurfaceFormat::SingleBuffer){TRUE | never evaluated | FALSE | never evaluated |
| 0 |
350 | format->setSwapBehavior(QSurfaceFormat::SingleBuffer); | - |
351 | return true; never executed: return true; | 0 |
352 | } | - |
353 | | - |
354 | if (format->TRUE | never evaluated | FALSE | never evaluated |
samples() > 1) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
355 | retFormat.format->setSamples(qMin(retFormat.16, format->samples() / 2, 16)); | - |
356 | return true; never executed: return true; | 0 |
357 | } | - |
358 | | - |
359 | elseif (retFormat.stereo())format->depthBufferSize() >= 32) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
360 | retFormat.setStereoformat->setDepthBufferSize(false24); | - |
361 | return true; never executed: return true; | 0 |
362 | } | - |
363 | | - |
364 | elseif (retFormat.stencilBufferSizeformat->depthBufferSize() > 1) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
365 | format->setDepthBufferSize(1); | - |
366 | return true; never executed: return true; | 0 |
367 | } | - |
368 | | - |
369 | if (format->depthBufferSizeTRUE | never evaluated | FALSE | never evaluated |
() > 0) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
370 | retFormat.setStencilBufferSizeformat->setDepthBufferSize(0); | - |
371 | return true; never executed: return true; | 0 |
372 | } | - |
373 | | - |
374 | elseif (retFormat.format->hasAlpha()) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
375 | retFormat.format->setAlphaBufferSize(0); | - |
376 | return true; never executed: return true; | 0 |
377 | } | - |
378 | | - |
379 | elseif (retFormat.depthBufferSizeformat->stencilBufferSize() > 01) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
380 | retFormat.setDepthBufferSizeformat->setStencilBufferSize(01); | - |
381 | return true; never executed: return true; | 0 |
382 | } | - |
383 | | - |
384 | elseif (retFormat.swapBehaviorformat->stencilBufferSize() != QSurfaceFormat::SingleBuffer> 0) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
385 | retFormat.setSwapBehaviorformat->setStencilBufferSize(QSurfaceFormat::SingleBuffer0); | - |
386 | return true; never executed: return true; | 0 |
387 | } | - |
388 | | - |
389 | elseif (format->stereo()) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
390 | *reduced =format->setStereo(false); | - |
391 | return true never executed: return true; ;never executed: return true; | 0 |
392 | } | - |
393 | | - |
394 | return retFormatfalse; never executed: return false; | 0 |
395 | } | - |
| | |