qxcbintegration.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/plugins/platforms/xcb/qxcbintegration.cpp
Switch to Source codePreprocessed file
LineSourceCount
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-
30static bool runningUnderDebugger()-
31{-
32-
33 const QString parentProc = QLatin1String("/proc/") + QString::number(getppid());-
34 const QFileInfo parentProcExe(parentProc + QLatin1String("/exe"));-
35 if (parentProcExe.isSymLink()
parentProcExe.isSymLink()Description
TRUEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
FALSEnever evaluated
)
0-129
36 return
executed 129 times by 5 tests: return parentProcExe.symLinkTarget().endsWith(QLatin1String("/gdb"));
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
parentProcExe.symLinkTarget().endsWith(QLatin1String("/gdb"));
executed 129 times by 5 tests: return parentProcExe.symLinkTarget().endsWith(QLatin1String("/gdb"));
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129
37 QFile f(parentProc + QLatin1String("/cmdline"));-
38 if (!f.open(QIODevice::ReadOnly)
!f.open(QIODevice::ReadOnly)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
39 return
never executed: return false;
false;
never executed: return false;
0
40 QByteArray s;-
41 char c;-
42 while (f.getChar(&c)
f.getChar(&c)Description
TRUEnever evaluated
FALSEnever evaluated
&& c
cDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
43 if (c == '/'
c == '/'Description
TRUEnever evaluated
FALSEnever evaluated
)
0
44 s.clear();
never executed: s.clear();
0
45 else-
46 s += c;
never executed: s += c;
0
47 }-
48 return
never executed: return s == "gdb";
s == "gdb";
never executed: return s == "gdb";
0
49-
50-
51-
52}-
53-
54QXcbIntegration *QXcbIntegration::m_instance = nullptr;-
55-
56QXcbIntegration::QXcbIntegration(const QStringList &parameters, int &argc, char **argv)-
57 : m_services(new QGenericUnixServices)-
58 , m_instanceName(0)-
59 , m_canGrab(true)-
60 , m_defaultVisualId((2147483647 * 2U + 1U))-
61{-
62 m_instance = this;-
63-
64 qRegisterMetaType<QXcbWindow*>();-
65-
66 XInitThreads();-
67-
68 m_nativeInterface.reset(new QXcbNativeInterface);-
69-
70-
71 const char *displayName = 0;-
72 bool noGrabArg = false;-
73 bool doGrabArg = false;-
74 if (argc
argcDescription
TRUEevaluated 57 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
FALSEevaluated 72 times by 2 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
) {
57-72
75 int j = 1;-
76 for (int i = 1; i < argc
i < argcDescription
TRUEevaluated 64 times by 3 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_selftests - unknown status
FALSEevaluated 57 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
; i++) {
57-64
77 QByteArray arg(argv[i]);-
78 if (arg.startsWith("--")
arg.startsWith("--")Description
TRUEnever evaluated
FALSEevaluated 64 times by 3 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_selftests - unknown status
)
0-64
79 arg.remove(0, 1);
never executed: arg.remove(0, 1);
0
80 if (arg == "-display"
arg == "-display"Description
TRUEnever evaluated
FALSEevaluated 64 times by 3 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_selftests - unknown status
&& i < argc - 1
i < argc - 1Description
TRUEnever evaluated
FALSEnever evaluated
)
0-64
81 displayName = argv[++i];
never executed: displayName = argv[++i];
0
82 else if (arg == "-name"
arg == "-name"Description
TRUEnever evaluated
FALSEevaluated 64 times by 3 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_selftests - unknown status
&& i < argc - 1
i < argc - 1Description
TRUEnever evaluated
FALSEnever evaluated
)
0-64
83 m_instanceName = argv[++i];
never executed: m_instanceName = argv[++i];
0
84 else if (arg == "-nograb"
arg == "-nograb"Description
TRUEnever evaluated
FALSEevaluated 64 times by 3 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_selftests - unknown status
)
0-64
85 noGrabArg = true;
never executed: noGrabArg = true;
0
86 else if (arg == "-dograb"
arg == "-dograb"Description
TRUEnever evaluated
FALSEevaluated 64 times by 3 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_selftests - unknown status
)
0-64
87 doGrabArg = true;
never executed: doGrabArg = true;
0
88 else if (arg == "-visual"
arg == "-visual"Description
TRUEnever evaluated
FALSEevaluated 64 times by 3 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_selftests - unknown status
&& i < argc - 1
i < argc - 1Description
TRUEnever evaluated
FALSEnever evaluated
) {
0-64
89 bool ok = false;-
90 m_defaultVisualId = QByteArray(argv[++i]).toUInt(&ok, 0);-
91 if (!ok
!okDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
92 m_defaultVisualId = (2147483647 * 2U + 1U);
never executed: m_defaultVisualId = (2147483647 * 2U + 1U);
0
93 }
never executed: end of block
0
94 else-
95 argv[j++] = argv[i];
executed 64 times by 3 tests: argv[j++] = argv[i];
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_selftests - unknown status
64
96 }-
97 argc = j;-
98 }
executed 57 times by 5 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
57
99-
100 bool underDebugger = runningUnderDebugger();-
101 if (noGrabArg
noGrabArgDescription
TRUEnever evaluated
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
&& doGrabArg
doGrabArgDescription
TRUEnever evaluated
FALSEnever evaluated
&& underDebugger
underDebuggerDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0-129
102 QMessageLogger(__FILE__, 161, __PRETTY_FUNCTION__).warning() << "Both -nograb and -dograb command line arguments specified. Please pick one. -nograb takes prcedence";-
103 doGrabArg = false;-
104 }
never executed: end of block
0
105-
106-
107 if (!noGrabArg
!noGrabArgDescription
TRUEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
FALSEnever evaluated
&& !doGrabArg
!doGrabArgDescription
TRUEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
FALSEnever evaluated
&& underDebugger
underDebuggerDescription
TRUEnever evaluated
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
) {
0-129
108 QMessageLogger(__FILE__, 167, __PRETTY_FUNCTION__).debug("Qt: gdb: -nograb added to command-line options.\n"-
109 "\t Use the -dograb option to enforce grabbing.");-
110 }
never executed: end of block
0
111-
112 m_canGrab = (!underDebugger
!underDebuggerDescription
TRUEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
FALSEnever evaluated
&& !noGrabArg
!noGrabArgDescription
TRUEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
FALSEnever evaluated
) || (underDebugger
underDebuggerDescription
TRUEnever evaluated
FALSEnever evaluated
&& doGrabArg
doGrabArgDescription
TRUEnever evaluated
FALSEnever evaluated
);
0-129
113-
114 static bool canNotGrabEnv = qEnvironmentVariableIsSet("QT_XCB_NO_GRAB_SERVER");-
115 if (canNotGrabEnv
canNotGrabEnvDescription
TRUEnever evaluated
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
)
0-129
116 m_canGrab = false;
never executed: m_canGrab = false;
0
117-
118 const int numParameters = parameters.size();-
119 m_connections.reserve(1 + numParameters / 2);-
120 m_connections << new QXcbConnection(m_nativeInterface.data(), m_canGrab, m_defaultVisualId, displayName);-
121-
122 for (int i = 0; i < numParameters - 1
i < numParameters - 1Description
TRUEnever evaluated
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
; i += 2) {
0-129
123 for (bool qt_category_enabled = lcQpaScreen().isDebugEnabled(); qt_category_enabled
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
; qt_category_enabled = false) QMessageLogger(__FILE__, 182, __PRETTY_FUNCTION__, lcQpaScreen().categoryName()).debug() << "connecting to additional display: " << parameters.at(i) << parameters.at(i+1);
never executed: QMessageLogger(__FILE__, 182, __PRETTY_FUNCTION__, lcQpaScreen().categoryName()).debug() << "connecting to additional display: " << parameters.at(i) << parameters.at(i+1);
0
124 QString display = parameters.at(i) + QLatin1Char(':') + parameters.at(i+1);-
125 m_connections << new QXcbConnection(m_nativeInterface.data(), m_canGrab, m_defaultVisualId, display.toLatin1().constData());-
126 }
never executed: end of block
0
127-
128 m_fontDatabase.reset(new QGenericUnixFontDatabase());-
129}
executed 129 times by 5 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129
130-
131QXcbIntegration::~QXcbIntegration()-
132{-
133 qDeleteAll(m_connections);-
134 m_instance = nullptr;-
135}
executed 341 times by 220 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qbackingstore - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbrush - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qclipboard - unknown status
  • ...
341
136-
137QPlatformWindow *QXcbIntegration::createPlatformWindow(QWindow *window) const-
138{-
139 QXcbScreen *screen = static_cast<QXcbScreen *>(window->screen()->handle());-
140 QXcbGlIntegration *glIntegration = screen->connection()->glIntegration();-
141 if (window->type() != Qt::Desktop
window->type() != Qt::DesktopDescription
TRUEevaluated 4166 times by 125 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • 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
  • ...
FALSEevaluated 294 times by 117 tests
Evaluated 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
  • ...
) {
294-4166
142 if (glIntegration
glIntegrationDescription
TRUEevaluated 4166 times by 125 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • 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
  • ...
FALSEnever evaluated
) {
0-4166
143 QXcbWindow *xcbWindow = glIntegration->createWindow(window);-
144 xcbWindow->create();-
145 return
executed 4166 times by 125 tests: return xcbWindow;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • 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
  • ...
xcbWindow;
executed 4166 times by 125 tests: return xcbWindow;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • 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
  • ...
4166
146 }-
147 }
never executed: end of block
0
148-
149 ((!(window->type() == Qt::Desktop || !window->supportsOpenGL() || (!glIntegration && window->surfaceType() == QSurface::RasterGLSurface))) ? qt_assert("window->type() == Qt::Desktop || !window->supportsOpenGL() || (!glIntegration && window->surfaceType() == QSurface::RasterGLSurface)",-
150 __FILE__-
151 ,-
152 209-
153 ) : qt_noop())-
154 ;-
155 QXcbWindow *xcbWindow = new QXcbWindow(window);-
156 xcbWindow->create();-
157 return
executed 294 times by 117 tests: return xcbWindow;
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
  • ...
xcbWindow;
executed 294 times by 117 tests: return xcbWindow;
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
  • ...
294
158}-
159-
160-
161QPlatformOpenGLContext *QXcbIntegration::createPlatformOpenGLContext(QOpenGLContext *context) const-
162{-
163 QXcbScreen *screen = static_cast<QXcbScreen *>(context->screen()->handle());-
164 QXcbGlIntegration *glIntegration = screen->connection()->glIntegration();-
165 if (!glIntegration
!glIntegrationDescription
TRUEnever evaluated
FALSEevaluated 57 times by 9 tests
Evaluated by:
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGraphicsView
  • tst_QGuiApplication
  • tst_QMdiArea
  • tst_QOpenGLWidget
  • tst_QOpenGLWindow
  • tst_QOpenGlConfig
) {
0-57
166 QMessageLogger(__FILE__, 221, __PRETTY_FUNCTION__).warning("QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled");-
167 return
never executed: return nullptr;
nullptr;
never executed: return nullptr;
0
168 }-
169 return
executed 57 times by 9 tests: return glIntegration->createPlatformOpenGLContext(context);
Executed by:
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGraphicsView
  • tst_QGuiApplication
  • tst_QMdiArea
  • tst_QOpenGLWidget
  • tst_QOpenGLWindow
  • tst_QOpenGlConfig
glIntegration->createPlatformOpenGLContext(context);
executed 57 times by 9 tests: return glIntegration->createPlatformOpenGLContext(context);
Executed by:
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGraphicsView
  • tst_QGuiApplication
  • tst_QMdiArea
  • tst_QOpenGLWidget
  • tst_QOpenGLWindow
  • tst_QOpenGlConfig
57
170}-
171-
172-
173QPlatformBackingStore *QXcbIntegration::createPlatformBackingStore(QWindow *window) const-
174{-
175 return
executed 3960 times by 116 tests: return new QXcbBackingStore(window);
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • 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
  • ...
new QXcbBackingStore(window);
executed 3960 times by 116 tests: return new QXcbBackingStore(window);
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • 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
  • ...
3960
176}-
177-
178QPlatformOffscreenSurface *QXcbIntegration::createPlatformOffscreenSurface(QOffscreenSurface *surface) const-
179{-
180 QXcbScreen *screen = static_cast<QXcbScreen *>(surface->screen()->handle());-
181 QXcbGlIntegration *glIntegration = screen->connection()->glIntegration();-
182 if (!glIntegration
!glIntegrationDescription
TRUEnever evaluated
FALSEevaluated 26 times by 5 tests
Evaluated by:
  • tst_QGLThreads
  • tst_QGraphicsView
  • tst_QOpenGLWidget
  • tst_QOpenGLWindow
  • tst_QOpenGlConfig
) {
0-26
183 QMessageLogger(__FILE__, 238, __PRETTY_FUNCTION__).warning("QXcbIntegration: Cannot create platform offscreen surface, neither GLX nor EGL are enabled");-
184 return
never executed: return nullptr;
nullptr;
never executed: return nullptr;
0
185 }-
186 return
executed 26 times by 5 tests: return glIntegration->createPlatformOffscreenSurface(surface);
Executed by:
  • tst_QGLThreads
  • tst_QGraphicsView
  • tst_QOpenGLWidget
  • tst_QOpenGLWindow
  • tst_QOpenGlConfig
glIntegration->createPlatformOffscreenSurface(surface);
executed 26 times by 5 tests: return glIntegration->createPlatformOffscreenSurface(surface);
Executed by:
  • tst_QGLThreads
  • tst_QGraphicsView
  • tst_QOpenGLWidget
  • tst_QOpenGLWindow
  • tst_QOpenGlConfig
26
187}-
188-
189bool QXcbIntegration::hasCapability(QPlatformIntegration::Capability cap) const-
190{-
191 switch (cap) {-
192 case
executed 2 times by 2 tests: case ThreadedPixmaps:
Executed by:
  • tst_QOpenGlConfig
  • tst_QPixmap
ThreadedPixmaps:
executed 2 times by 2 tests: case ThreadedPixmaps:
Executed by:
  • tst_QOpenGlConfig
  • tst_QPixmap
return
executed 2 times by 2 tests: return true;
Executed by:
  • tst_QOpenGlConfig
  • tst_QPixmap
true;
executed 2 times by 2 tests: return true;
Executed by:
  • tst_QOpenGlConfig
  • tst_QPixmap
2
193 case
executed 4061 times by 118 tests: case OpenGL:
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
  • ...
OpenGL:
executed 4061 times by 118 tests: case OpenGL:
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
  • ...
return
executed 4061 times by 118 tests: return m_connections.first()->glIntegration();
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
  • ...
m_connections.first()->glIntegration();
executed 4061 times by 118 tests: return m_connections.first()->glIntegration();
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
  • ...
4061
194 case
executed 11 times by 2 tests: case ThreadedOpenGL:
Executed by:
  • tst_QGLThreads
  • tst_QOpenGlConfig
ThreadedOpenGL:
executed 11 times by 2 tests: case ThreadedOpenGL:
Executed by:
  • tst_QGLThreads
  • tst_QOpenGlConfig
return
executed 11 times by 2 tests: return m_connections.at(0)->threadedEventHandling() && m_connections.at(0)->glIntegration() && m_connections.at(0)->glIntegration()->supportsThreadedOpenGL();
Executed by:
  • tst_QGLThreads
  • tst_QOpenGlConfig
m_connections.at(0)->threadedEventHandling()
m_connections....ventHandling()Description
TRUEevaluated 11 times by 2 tests
Evaluated by:
  • tst_QGLThreads
  • tst_QOpenGlConfig
FALSEnever evaluated
executed 11 times by 2 tests: return m_connections.at(0)->threadedEventHandling() && m_connections.at(0)->glIntegration() && m_connections.at(0)->glIntegration()->supportsThreadedOpenGL();
Executed by:
  • tst_QGLThreads
  • tst_QOpenGlConfig
0-11
195 && m_connections.at(0)->glIntegration()
m_connections....lIntegration()Description
TRUEevaluated 11 times by 2 tests
Evaluated by:
  • tst_QGLThreads
  • tst_QOpenGlConfig
FALSEnever evaluated
executed 11 times by 2 tests: return m_connections.at(0)->threadedEventHandling() && m_connections.at(0)->glIntegration() && m_connections.at(0)->glIntegration()->supportsThreadedOpenGL();
Executed by:
  • tst_QGLThreads
  • tst_QOpenGlConfig
0-11
196 && m_connections.at(0)->glIntegration()->supportsThreadedOpenGL()
m_connections....readedOpenGL()Description
TRUEnever evaluated
FALSEevaluated 11 times by 2 tests
Evaluated by:
  • tst_QGLThreads
  • tst_QOpenGlConfig
;
executed 11 times by 2 tests: return m_connections.at(0)->threadedEventHandling() && m_connections.at(0)->glIntegration() && m_connections.at(0)->glIntegration()->supportsThreadedOpenGL();
Executed by:
  • tst_QGLThreads
  • tst_QOpenGlConfig
0-11
197 case
executed 2 times by 2 tests: case WindowMasks:
Executed by:
  • tst_QOpenGlConfig
  • tst_QWidget
WindowMasks:
executed 2 times by 2 tests: case WindowMasks:
Executed by:
  • tst_QOpenGlConfig
  • tst_QWidget
return
executed 2 times by 2 tests: return true;
Executed by:
  • tst_QOpenGlConfig
  • tst_QWidget
true;
executed 2 times by 2 tests: return true;
Executed by:
  • tst_QOpenGlConfig
  • tst_QWidget
2
198 case
executed 2 times by 1 test: case MultipleWindows:
Executed by:
  • tst_QWidget
MultipleWindows:
executed 2 times by 1 test: case MultipleWindows:
Executed by:
  • tst_QWidget
return
executed 2 times by 1 test: return true;
Executed by:
  • tst_QWidget
true;
executed 2 times by 1 test: return true;
Executed by:
  • tst_QWidget
2
199 case
never executed: case ForeignWindows:
ForeignWindows:
never executed: case ForeignWindows:
return
never executed: return true;
true;
never executed: return true;
0
200 case
executed 9 times by 3 tests: case SyncState:
Executed by:
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindow
SyncState:
executed 9 times by 3 tests: case SyncState:
Executed by:
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindow
return
executed 9 times by 3 tests: return true;
Executed by:
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindow
true;
executed 9 times by 3 tests: return true;
Executed by:
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindow
9
201 case
executed 4358 times by 120 tests: case RasterGLSurface:
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
  • ...
RasterGLSurface:
executed 4358 times by 120 tests: case RasterGLSurface:
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
  • ...
return
executed 4358 times by 120 tests: return true;
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
  • ...
true;
executed 4358 times by 120 tests: return true;
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
  • ...
4358
202 case
executed 1 time by 1 test: case SwitchableWidgetComposition:
Executed by:
  • tst_QOpenGLWidget
SwitchableWidgetComposition:
executed 1 time by 1 test: case SwitchableWidgetComposition:
Executed by:
  • tst_QOpenGLWidget
return
executed 1 time by 1 test: return m_connections.at(0)->glIntegration() && m_connections.at(0)->glIntegration()->supportsSwitchableWidgetComposition();
Executed by:
  • tst_QOpenGLWidget
m_connections.at(0)->glIntegration()
m_connections....lIntegration()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QOpenGLWidget
FALSEnever evaluated
executed 1 time by 1 test: return m_connections.at(0)->glIntegration() && m_connections.at(0)->glIntegration()->supportsSwitchableWidgetComposition();
Executed by:
  • tst_QOpenGLWidget
0-1
203 && m_connections.at(0)->glIntegration()->supportsSwitchableWidgetComposition()
m_connections....tComposition()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QOpenGLWidget
FALSEnever evaluated
;
executed 1 time by 1 test: return m_connections.at(0)->glIntegration() && m_connections.at(0)->glIntegration()->supportsSwitchableWidgetComposition();
Executed by:
  • tst_QOpenGLWidget
0-1
204 default
executed 12103 times by 127 tests: default:
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • 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
  • ...
:
executed 12103 times by 127 tests: default:
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • 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
  • ...
return
executed 12103 times by 127 tests: return QPlatformIntegration::hasCapability(cap);
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • 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
  • ...
QPlatformIntegration::hasCapability(cap);
executed 12103 times by 127 tests: return QPlatformIntegration::hasCapability(cap);
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • 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
  • ...
12103
205 }-
206}-
207-
208QAbstractEventDispatcher *QXcbIntegration::createEventDispatcher() const-
209{-
210 QAbstractEventDispatcher *dispatcher = createUnixEventDispatcher();-
211 for (int i = 0; i < m_connections.size()
i < m_connections.size()Description
TRUEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
FALSEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
; i++)
129
212 m_connections[i]->eventReader()->registerEventDispatcher(dispatcher);
executed 129 times by 5 tests: m_connections[i]->eventReader()->registerEventDispatcher(dispatcher);
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129
213 return
executed 129 times by 5 tests: return dispatcher;
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
dispatcher;
executed 129 times by 5 tests: return dispatcher;
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129
214}-
215-
216void QXcbIntegration::initialize()-
217{-
218-
219-
220 QString icStr = QPlatformInputContextFactory::requested();-
221 if (icStr.isNull()
icStr.isNull()Description
TRUEevaluated 129 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
FALSEnever evaluated
)
0-129
222 icStr = QLatin1String("compose");
executed 129 times by 5 tests: icStr = QLatin1String("compose");
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129
223 m_inputContext.reset(QPlatformInputContextFactory::create(icStr));-
224}
executed 129 times by 5 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129
225-
226void QXcbIntegration::moveToScreen(QWindow *window, int screen)-
227{-
228 (void)window;;-
229 (void)screen;;-
230}
never executed: end of block
0
231-
232QPlatformFontDatabase *QXcbIntegration::fontDatabase() const-
233{-
234 return
executed 33483 times by 243 tests: return m_fontDatabase.data();
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
  • ...
m_fontDatabase.data();
executed 33483 times by 243 tests: return m_fontDatabase.data();
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
  • ...
33483
235}-
236-
237QPlatformNativeInterface * QXcbIntegration::nativeInterface() const-
238{-
239 return
executed 9689 times by 132 tests: return m_nativeInterface.data();
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • 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
  • ...
m_nativeInterface.data();
executed 9689 times by 132 tests: return m_nativeInterface.data();
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • 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
  • ...
9689
240}-
241-
242-
243QPlatformClipboard *QXcbIntegration::clipboard() const-
244{-
245 return
executed 181 times by 7 tests: return m_connections.at(0)->clipboard();
Executed by:
  • tst_QApplication
  • tst_QClipboard
  • tst_QGraphicsProxyWidget
  • tst_QLineEdit
  • tst_QPlainTextEdit
  • tst_QStyleSheetStyle
  • tst_QTextEdit
m_connections.at(0)->clipboard();
executed 181 times by 7 tests: return m_connections.at(0)->clipboard();
Executed by:
  • tst_QApplication
  • tst_QClipboard
  • tst_QGraphicsProxyWidget
  • tst_QLineEdit
  • tst_QPlainTextEdit
  • tst_QStyleSheetStyle
  • tst_QTextEdit
181
246}-
247-
248-
249-
250QPlatformDrag *QXcbIntegration::drag() const-
251{-
252 return
executed 110 times by 9 tests: return m_connections.at(0)->drag();
Executed by:
  • tst_QAbstractItemView
  • tst_QDataWidgetMapper
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QListWidget
  • tst_QTreeView
  • tst_QWidget_window
m_connections.at(0)->drag();
executed 110 times by 9 tests: return m_connections.at(0)->drag();
Executed by:
  • tst_QAbstractItemView
  • tst_QDataWidgetMapper
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QListWidget
  • tst_QTreeView
  • tst_QWidget_window
110
253}-
254-
255-
256QPlatformInputContext *QXcbIntegration::inputContext() const-
257{-
258 return
executed 27572 times by 104 tests: return m_inputContext.data();
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • 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_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • ...
m_inputContext.data();
executed 27572 times by 104 tests: return m_inputContext.data();
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • 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_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • ...
27572
259}-
260-
261-
262QPlatformAccessibility *QXcbIntegration::accessibility() const-
263{-
264-
265 if (!m_accessibility
!m_accessibilityDescription
TRUEevaluated 179 times by 128 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • ...
FALSEevaluated 524343 times by 129 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • 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
  • ...
) {
179-524343
266 ((!(QCoreApplication::eventDispatcher())) ? qt_assert_x("QXcbIntegration", "Initializing accessibility without event-dispatcher!",-
267 __FILE__-
268 ,-
269 322-
270 ) : qt_noop())-
271 ;-
272 m_accessibility.reset(new QSpiAccessibleBridge());-
273 }
executed 178 times by 128 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • ...
178
274-
275-
276 return
executed 524521 times by 129 tests: return m_accessibility.data();
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • 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
  • ...
m_accessibility.data();
executed 524521 times by 129 tests: return m_accessibility.data();
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • 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
  • ...
524521
277}-
278-
279-
280QPlatformServices *QXcbIntegration::services() const-
281{-
282 return
executed 8417 times by 126 tests: return m_services.data();
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
  • ...
m_services.data();
executed 8417 times by 126 tests: return m_services.data();
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
  • ...
8417
283}-
284-
285Qt::KeyboardModifiers QXcbIntegration::queryKeyboardModifiers() const-
286{-
287 int keybMask = 0;-
288 QXcbConnection *conn = m_connections.at(0);-
289 QXcbCursor::queryPointer(conn, 0, 0, &keybMask);-
290 return
never executed: return conn->keyboard()->translateModifiers(keybMask);
conn->keyboard()->translateModifiers(keybMask);
never executed: return conn->keyboard()->translateModifiers(keybMask);
0
291}-
292-
293QList<int> QXcbIntegration::possibleKeys(const QKeyEvent *e) const-
294{-
295 return
never executed: return m_connections.at(0)->keyboard()->possibleKeys(e);
m_connections.at(0)->keyboard()->possibleKeys(e);
never executed: return m_connections.at(0)->keyboard()->possibleKeys(e);
0
296}-
297-
298QStringList QXcbIntegration::themeNames() const-
299{-
300 return
executed 129 times by 5 tests: return QGenericUnixTheme::themeNames();
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
QGenericUnixTheme::themeNames();
executed 129 times by 5 tests: return QGenericUnixTheme::themeNames();
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129
301}-
302-
303QPlatformTheme *QXcbIntegration::createPlatformTheme(const QString &name) const-
304{-
305 return
executed 129 times by 5 tests: return QGenericUnixTheme::createUnixTheme(name);
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
QGenericUnixTheme::createUnixTheme(name);
executed 129 times by 5 tests: return QGenericUnixTheme::createUnixTheme(name);
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129
306}-
307-
308QVariant QXcbIntegration::styleHint(QPlatformIntegration::StyleHint hint) const-
309{-
310 switch (hint) {-
311 case
executed 6207 times by 49 tests: case QPlatformIntegration::CursorFlashTime:
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • tst_QGroupBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QLabel
  • ...
QPlatformIntegration::CursorFlashTime:
executed 6207 times by 49 tests: case QPlatformIntegration::CursorFlashTime:
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • tst_QGroupBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QLabel
  • ...
6207
312 case
executed 126 times by 6 tests: case QPlatformIntegration::KeyboardInputInterval:
Executed by:
  • tst_QAbstractItemView
  • tst_QComboBox
  • tst_QListView
  • tst_QMdiArea
  • tst_QTableView
  • tst_QTreeView
QPlatformIntegration::KeyboardInputInterval:
executed 126 times by 6 tests: case QPlatformIntegration::KeyboardInputInterval:
Executed by:
  • tst_QAbstractItemView
  • tst_QComboBox
  • tst_QListView
  • tst_QMdiArea
  • tst_QTableView
  • tst_QTreeView
126
313 case
executed 884 times by 25 tests: case QPlatformIntegration::MouseDoubleClickInterval:
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QGestureRecognizer
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMouseEvent
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTextEdit
  • tst_QTouchEvent
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QWidget
  • tst_QWindow
QPlatformIntegration::MouseDoubleClickInterval:
executed 884 times by 25 tests: case QPlatformIntegration::MouseDoubleClickInterval:
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QGestureRecognizer
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMouseEvent
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTextEdit
  • tst_QTouchEvent
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QWidget
  • tst_QWindow
884
314 case
never executed: case QPlatformIntegration::StartDragTime:
QPlatformIntegration::StartDragTime:
never executed: case QPlatformIntegration::StartDragTime:
0
315 case
never executed: case QPlatformIntegration::KeyboardAutoRepeatRate:
QPlatformIntegration::KeyboardAutoRepeatRate:
never executed: case QPlatformIntegration::KeyboardAutoRepeatRate:
0
316 case
executed 3612 times by 54 tests: case QPlatformIntegration::PasswordMaskDelay:
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsWidget
  • ...
QPlatformIntegration::PasswordMaskDelay:
executed 3612 times by 54 tests: case QPlatformIntegration::PasswordMaskDelay:
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsWidget
  • ...
3612
317 case
never executed: case QPlatformIntegration::StartDragVelocity:
QPlatformIntegration::StartDragVelocity:
never executed: case QPlatformIntegration::StartDragVelocity:
0
318 case
executed 5 times by 4 tests: case QPlatformIntegration::UseRtlExtensions:
Executed by:
  • tst_QLineEdit
  • tst_QPlainTextEdit
  • tst_QStyleSheetStyle
  • tst_QTextEdit
QPlatformIntegration::UseRtlExtensions:
executed 5 times by 4 tests: case QPlatformIntegration::UseRtlExtensions:
Executed by:
  • tst_QLineEdit
  • tst_QPlainTextEdit
  • tst_QStyleSheetStyle
  • tst_QTextEdit
5
319 case
executed 1853 times by 54 tests: case QPlatformIntegration::PasswordMaskCharacter:
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsWidget
  • ...
QPlatformIntegration::PasswordMaskCharacter:
executed 1853 times by 54 tests: case QPlatformIntegration::PasswordMaskCharacter:
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsWidget
  • ...
1853
320-
321 break;
executed 12687 times by 71 tests: break;
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGestureRecognizer
  • tst_QGraphicsItem
  • ...
12687
322 case
executed 129 times by 5 tests: case QPlatformIntegration::FontSmoothingGamma:
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
QPlatformIntegration::FontSmoothingGamma:
executed 129 times by 5 tests: case QPlatformIntegration::FontSmoothingGamma:
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129
323-
324 return
executed 129 times by 5 tests: return qreal(1.0);
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
qreal(1.0);
executed 129 times by 5 tests: return qreal(1.0);
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129
325 case
executed 73 times by 3 tests: case QPlatformIntegration::StartDragDistance:
Executed by:
  • tst_QGraphicsView
  • tst_QMainWindow
  • tst_QMenu
QPlatformIntegration::StartDragDistance:
executed 73 times by 3 tests: case QPlatformIntegration::StartDragDistance:
Executed by:
  • tst_QGraphicsView
  • tst_QMainWindow
  • tst_QMenu
{
73
326-
327-
328 qreal dpi = 100.0;-
329 if (const
const QXcbScre...rimaryScreen()Description
TRUEevaluated 73 times by 3 tests
Evaluated by:
  • tst_QGraphicsView
  • tst_QMainWindow
  • tst_QMenu
FALSEnever evaluated
QXcbScreen *screen = defaultConnection()->primaryScreen()
const QXcbScre...rimaryScreen()Description
TRUEevaluated 73 times by 3 tests
Evaluated by:
  • tst_QGraphicsView
  • tst_QMainWindow
  • tst_QMenu
FALSEnever evaluated
) {
0-73
330 if (screen->logicalDpi().first > dpi
screen->logica...().first > dpiDescription
TRUEnever evaluated
FALSEevaluated 73 times by 3 tests
Evaluated by:
  • tst_QGraphicsView
  • tst_QMainWindow
  • tst_QMenu
)
0-73
331 dpi = screen->logicalDpi().first;
never executed: dpi = screen->logicalDpi().first;
0
332 if (screen->logicalDpi().second > dpi
screen->logica...).second > dpiDescription
TRUEnever evaluated
FALSEevaluated 73 times by 3 tests
Evaluated by:
  • tst_QGraphicsView
  • tst_QMainWindow
  • tst_QMenu
)
0-73
333 dpi = screen->logicalDpi().second;
never executed: dpi = screen->logicalDpi().second;
0
334 }
executed 73 times by 3 tests: end of block
Executed by:
  • tst_QGraphicsView
  • tst_QMainWindow
  • tst_QMenu
73
335 return
executed 73 times by 3 tests: return 10.0 * dpi / 100.0;
Executed by:
  • tst_QGraphicsView
  • tst_QMainWindow
  • tst_QMenu
10.0 * dpi / 100.0;
executed 73 times by 3 tests: return 10.0 * dpi / 100.0;
Executed by:
  • tst_QGraphicsView
  • tst_QMainWindow
  • tst_QMenu
73
336 }-
337 case
executed 20372 times by 121 tests: case QPlatformIntegration::ShowIsFullScreen:
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
  • ...
QPlatformIntegration::ShowIsFullScreen:
executed 20372 times by 121 tests: case QPlatformIntegration::ShowIsFullScreen:
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
  • ...
20372
338-
339-
340 return
executed 20372 times by 121 tests: return false;
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
  • ...
false;
executed 20372 times by 121 tests: return false;
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
  • ...
20372
341 case
never executed: case QPlatformIntegration::ReplayMousePressOutsidePopup:
QPlatformIntegration::ReplayMousePressOutsidePopup:
never executed: case QPlatformIntegration::ReplayMousePressOutsidePopup:
0
342 return
never executed: return false;
false;
never executed: return false;
0
343 default
executed 26789 times by 122 tests: default:
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 26789 times by 122 tests: default:
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
  • ...
26789
344 break;
executed 26789 times by 122 tests: break;
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
  • ...
26789
345 }-
346 return
executed 39476 times by 125 tests: return QPlatformIntegration::styleHint(hint);
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
  • ...
QPlatformIntegration::styleHint(hint);
executed 39476 times by 125 tests: return QPlatformIntegration::styleHint(hint);
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
  • ...
39476
347}-
348-
349static QString argv0BaseName()-
350{-
351 QString result;-
352 const QStringList arguments = QCoreApplication::arguments();-
353 if (!arguments.isEmpty()
!arguments.isEmpty()Description
TRUEevaluated 132 times by 125 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • 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
  • ...
FALSEevaluated 102 times by 2 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
&& !arguments.front().isEmpty()
!arguments.front().isEmpty()Description
TRUEevaluated 132 times by 125 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • 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
  • ...
FALSEnever evaluated
) {
0-132
354 result = arguments.front();-
355 const int lastSlashPos = result.lastIndexOf(QLatin1Char('/'));-
356 if (lastSlashPos != -1
lastSlashPos != -1Description
TRUEevaluated 130 times by 124 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • 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
  • ...
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QGuiApplication
)
2-130
357 result.remove(0, lastSlashPos + 1);
executed 130 times by 124 tests: result.remove(0, lastSlashPos + 1);
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • 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
  • ...
130
358 }
executed 132 times by 125 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_QBackingStore
  • 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
  • ...
132
359 return
executed 234 times by 125 tests: return result;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • 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
  • ...
result;
executed 234 times by 125 tests: return result;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • 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
  • ...
234
360}-
361-
362static const char resourceNameVar[] = "RESOURCE_NAME";-
363-
364QByteArray QXcbIntegration::wmClass() const-
365{-
366 if (m_wmClass.isEmpty()
m_wmClass.isEmpty()Description
TRUEevaluated 183 times by 125 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • 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
  • ...
FALSEevaluated 3983 times by 106 tests
Evaluated 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
  • ...
) {
183-3983
367-
368 QString name;-
369 if (m_instanceName
m_instanceNameDescription
TRUEnever evaluated
FALSEevaluated 183 times by 125 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • 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
  • ...
)
0-183
370 name = QString::fromLocal8Bit(m_instanceName);
never executed: name = QString::fromLocal8Bit(m_instanceName);
0
371 if (name.isEmpty()
name.isEmpty()Description
TRUEevaluated 183 times by 125 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • 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
  • ...
FALSEnever evaluated
&& qEnvironmentVariableIsSet(resourceNameVar)
qEnvironmentVa...sourceNameVar)Description
TRUEnever evaluated
FALSEevaluated 183 times by 125 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • 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
  • ...
)
0-183
372 name = QString::fromLocal8Bit(qgetenv(resourceNameVar));
never executed: name = QString::fromLocal8Bit(qgetenv(resourceNameVar));
0
373 if (name.isEmpty()
name.isEmpty()Description
TRUEevaluated 183 times by 125 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • 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
  • ...
FALSEnever evaluated
)
0-183
374 name = argv0BaseName();
executed 183 times by 125 tests: name = argv0BaseName();
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • 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
  • ...
183
375-
376-
377-
378 QString className = QCoreApplication::applicationName();-
379 if (className.isEmpty()
className.isEmpty()Description
TRUEevaluated 51 times by 2 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
FALSEevaluated 132 times by 125 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • 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
  • ...
) {
51-132
380 className = argv0BaseName();-
381 if (!className.isEmpty()
!className.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 51 times by 2 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
&& className.at(0).isLower()
className.at(0).isLower()Description
TRUEnever evaluated
FALSEnever evaluated
)
0-51
382 className[0] = className.at(0).toUpper();
never executed: className[0] = className.at(0).toUpper();
0
383 }
executed 51 times by 2 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
51
384-
385 if (!name.isEmpty()
!name.isEmpty()Description
TRUEevaluated 132 times by 125 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • 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
  • ...
FALSEevaluated 51 times by 2 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
&& !className.isEmpty()
!className.isEmpty()Description
TRUEevaluated 132 times by 125 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • 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
  • ...
FALSEnever evaluated
) {
0-132
386 m_wmClass = name.toLocal8Bit();-
387 m_wmClass.append('\0');-
388 m_wmClass.append(className.toLocal8Bit());-
389 m_wmClass.append('\0');-
390 }
executed 132 times by 125 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_QBackingStore
  • 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
  • ...
132
391 }
executed 183 times by 125 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_QBackingStore
  • 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
  • ...
183
392 return
executed 4166 times by 125 tests: return m_wmClass;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • 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
  • ...
m_wmClass;
executed 4166 times by 125 tests: return m_wmClass;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • 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
  • ...
4166
393}-
394-
395-
396QPlatformSessionManager *QXcbIntegration::createPlatformSessionManager(const QString &id, const QString &key) const-
397{-
398 return
executed 129 times by 5 tests: return new QXcbSessionManager(id, key);
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
new QXcbSessionManager(id, key);
executed 129 times by 5 tests: return new QXcbSessionManager(id, key);
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
129
399}-
400-
401-
402void QXcbIntegration::sync()-
403{-
404 for (int i = 0; i < m_connections.size()
i < m_connections.size()Description
TRUEevaluated 9 times by 3 tests
Evaluated by:
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindow
FALSEevaluated 9 times by 3 tests
Evaluated by:
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindow
; i++) {
9
405 m_connections.at(i)->sync();-
406 }
executed 9 times by 3 tests: end of block
Executed by:
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindow
9
407}
executed 9 times by 3 tests: end of block
Executed by:
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindow
9
408-
409-
Switch to Source codePreprocessed file

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