qxcbintegration.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/plugins/platforms/xcb/qxcbintegration.cpp
Source codeSwitch to Preprocessed file
LineSourceCount
1/****************************************************************************-
2**-
3** Copyright (C) 2015 The Qt Company Ltd.-
4** Contact: http://www.qt.io/licensing/-
5**-
6** This file is part of the plugins of the Qt Toolkit.-
7**-
8** $QT_BEGIN_LICENSE:LGPL21$-
9** Commercial License Usage-
10** Licensees holding valid commercial Qt licenses may use this file in-
11** accordance with the commercial license agreement provided with the-
12** Software or, alternatively, in accordance with the terms contained in-
13** a written agreement between you and The Qt Company. For licensing terms-
14** and conditions see http://www.qt.io/terms-conditions. For further-
15** information use the contact form at http://www.qt.io/contact-us.-
16**-
17** GNU Lesser General Public License Usage-
18** Alternatively, this file may be used under the terms of the GNU Lesser-
19** General Public License version 2.1 or version 3 as published by the Free-
20** Software Foundation and appearing in the file LICENSE.LGPLv21 and-
21** LICENSE.LGPLv3 included in the packaging of this file. Please review the-
22** following information to ensure the GNU Lesser General Public License-
23** requirements will be met: https://www.gnu.org/licenses/lgpl.html and-
24** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.-
25**-
26** As a special exception, The Qt Company gives you certain additional-
27** rights. These rights are described in The Qt Company LGPL Exception-
28** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.-
29**-
30** $QT_END_LICENSE$-
31**-
32****************************************************************************/-
33-
34#include "qxcbintegration.h"-
35#include "qxcbconnection.h"-
36#include "qxcbscreen.h"-
37#include "qxcbwindow.h"-
38#include "qxcbcursor.h"-
39#include "qxcbkeyboard.h"-
40#include "qxcbbackingstore.h"-
41#include "qxcbnativeinterface.h"-
42#include "qxcbclipboard.h"-
43#include "qxcbdrag.h"-
44#include "qxcbglintegration.h"-
45-
46#ifndef QT_NO_SESSIONMANAGER-
47#include "qxcbsessionmanager.h"-
48#endif-
49-
50#include <xcb/xcb.h>-
51-
52#include <QtPlatformSupport/private/qgenericunixeventdispatcher_p.h>-
53#include <QtPlatformSupport/private/qgenericunixfontdatabase_p.h>-
54#include <QtPlatformSupport/private/qgenericunixservices_p.h>-
55-
56#include <stdio.h>-
57-
58//this has to be included before egl, since egl pulls in X headers-
59#include <QtGui/private/qguiapplication_p.h>-
60-
61#ifdef XCB_USE_EGL-
62#include <EGL/egl.h>-
63#endif-
64-
65#ifdef XCB_USE_XLIB-
66#include <X11/Xlib.h>-
67#endif-
68-
69#include <qpa/qplatforminputcontextfactory_p.h>-
70#include <private/qgenericunixthemes_p.h>-
71#include <qpa/qplatforminputcontext.h>-
72-
73#include <QtGui/QOpenGLContext>-
74#include <QtGui/QScreen>-
75#include <QtGui/QOffscreenSurface>-
76#ifndef QT_NO_ACCESSIBILITY-
77#include <qpa/qplatformaccessibility.h>-
78#ifndef QT_NO_ACCESSIBILITY_ATSPI_BRIDGE-
79#include "../../../platformsupport/linuxaccessibility/bridge_p.h"-
80#endif-
81#endif-
82-
83#include <QtCore/QFileInfo>-
84-
85QT_BEGIN_NAMESPACE-
86-
87// Find out if our parent process is gdb by looking at the 'exe' symlink under /proc,.-
88// or, for older Linuxes, read out 'cmdline'.-
89static bool runningUnderDebugger()-
90{-
91#if defined(QT_DEBUG) && defined(Q_OS_LINUX)-
92 const QString parentProc = QLatin1String("/proc/") + QString::number(getppid());-
93 const QFileInfo parentProcExe(parentProc + QLatin1String("/exe"));-
94 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
95 return 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
96 QFile f(parentProc + QLatin1String("/cmdline"));-
97 if (!f.open(QIODevice::ReadOnly))
!f.open(QIODevice::ReadOnly)Description
TRUEnever evaluated
FALSEnever evaluated
0
98 return false;
never executed: return false;
0
99 QByteArray s;-
100 char c;-
101 while (f.getChar(&c) && c) {
f.getChar(&c)Description
TRUEnever evaluated
FALSEnever evaluated
cDescription
TRUEnever evaluated
FALSEnever evaluated
0
102 if (c == '/')
c == '/'Description
TRUEnever evaluated
FALSEnever evaluated
0
103 s.clear();
never executed: s.clear();
0
104 else-
105 s += c;
never executed: s += c;
0
106 }-
107 return s == "gdb";
never executed: return s == "gdb";
0
108#else-
109 return false;-
110#endif-
111}-
112-
113QXcbIntegration *QXcbIntegration::m_instance = Q_NULLPTR;-
114-
115QXcbIntegration::QXcbIntegration(const QStringList &parameters, int &argc, char **argv)-
116 : m_services(new QGenericUnixServices)-
117 , m_instanceName(0)-
118 , m_canGrab(true)-
119 , m_defaultVisualId(UINT_MAX)-
120{-
121 m_instance = this;-
122-
123 qRegisterMetaType<QXcbWindow*>();-
124#ifdef XCB_USE_XLIB-
125 XInitThreads();-
126#endif-
127 m_nativeInterface.reset(new QXcbNativeInterface);-
128-
129 // Parse arguments-
130 const char *displayName = 0;-
131 bool noGrabArg = false;-
132 bool doGrabArg = false;-
133 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
134 int j = 1;-
135 for (int i = 1; i < argc; i++) {
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
57-64
136 QByteArray arg(argv[i]);-
137 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
138 arg.remove(0, 1);
never executed: arg.remove(0, 1);
0
139 if (arg == "-display" && i < argc - 1)
arg == "-display"Description
TRUEnever evaluated
FALSEevaluated 64 times by 3 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_selftests - unknown status
i < argc - 1Description
TRUEnever evaluated
FALSEnever evaluated
0-64
140 displayName = argv[++i];
never executed: displayName = argv[++i];
0
141 else if (arg == "-name" && i < argc - 1)
arg == "-name"Description
TRUEnever evaluated
FALSEevaluated 64 times by 3 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_selftests - unknown status
i < argc - 1Description
TRUEnever evaluated
FALSEnever evaluated
0-64
142 m_instanceName = argv[++i];
never executed: m_instanceName = argv[++i];
0
143 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
144 noGrabArg = true;
never executed: noGrabArg = true;
0
145 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
146 doGrabArg = true;
never executed: doGrabArg = true;
0
147 else if (arg == "-visual" && i < argc - 1) {
arg == "-visual"Description
TRUEnever evaluated
FALSEevaluated 64 times by 3 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_selftests - unknown status
i < argc - 1Description
TRUEnever evaluated
FALSEnever evaluated
0-64
148 bool ok = false;-
149 m_defaultVisualId = QByteArray(argv[++i]).toUInt(&ok, 0);-
150 if (!ok)
!okDescription
TRUEnever evaluated
FALSEnever evaluated
0
151 m_defaultVisualId = UINT_MAX;
never executed: m_defaultVisualId = (2147483647 * 2U + 1U);
0
152 }
never executed: end of block
0
153 else-
154 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
155 }-
156 argc = j;-
157 } // argc
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
158-
159 bool underDebugger = runningUnderDebugger();-
160 if (noGrabArg && doGrabArg && underDebugger) {
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
doGrabArgDescription
TRUEnever evaluated
FALSEnever evaluated
underDebuggerDescription
TRUEnever evaluated
FALSEnever evaluated
0-129
161 qWarning() << "Both -nograb and -dograb command line arguments specified. Please pick one. -nograb takes prcedence";-
162 doGrabArg = false;-
163 }
never executed: end of block
0
164-
165#if defined(QT_DEBUG)-
166 if (!noGrabArg && !doGrabArg && underDebugger) {
!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
!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
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
167 qDebug("Qt: gdb: -nograb added to command-line options.\n"-
168 "\t Use the -dograb option to enforce grabbing.");-
169 }
never executed: end of block
0
170#endif-
171 m_canGrab = (!underDebugger && !noGrabArg) || (underDebugger && doGrabArg);
!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
!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
underDebuggerDescription
TRUEnever evaluated
FALSEnever evaluated
doGrabArgDescription
TRUEnever evaluated
FALSEnever evaluated
0-129
172-
173 static bool canNotGrabEnv = qEnvironmentVariableIsSet("QT_XCB_NO_GRAB_SERVER");-
174 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
175 m_canGrab = false;
never executed: m_canGrab = false;
0
176-
177 const int numParameters = parameters.size();-
178 m_connections.reserve(1 + numParameters / 2);-
179 m_connections << new QXcbConnection(m_nativeInterface.data(), m_canGrab, m_defaultVisualId, displayName);-
180-
181 for (int i = 0; i < numParameters - 1; i += 2) {
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
0-129
182 qCDebug(lcQpaScreen) << "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);
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
0
183 QString display = parameters.at(i) + QLatin1Char(':') + parameters.at(i+1);-
184 m_connections << new QXcbConnection(m_nativeInterface.data(), m_canGrab, m_defaultVisualId, display.toLatin1().constData());-
185 }
never executed: end of block
0
186-
187 m_fontDatabase.reset(new QGenericUnixFontDatabase());-
188}
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
189-
190QXcbIntegration::~QXcbIntegration()-
191{-
192 qDeleteAll(m_connections);-
193 m_instance = Q_NULLPTR;-
194}
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
195-
196QPlatformWindow *QXcbIntegration::createPlatformWindow(QWindow *window) const-
197{-
198 QXcbScreen *screen = static_cast<QXcbScreen *>(window->screen()->handle());-
199 QXcbGlIntegration *glIntegration = screen->connection()->glIntegration();-
200 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
201 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
202 QXcbWindow *xcbWindow = glIntegration->createWindow(window);-
203 xcbWindow->create();-
204 return 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
205 }-
206 }
never executed: end of block
0
207-
208 Q_ASSERT(window->type() == Qt::Desktop || !window->supportsOpenGL()-
209 || (!glIntegration && window->surfaceType() == QSurface::RasterGLSurface)); // for VNC-
210 QXcbWindow *xcbWindow = new QXcbWindow(window);-
211 xcbWindow->create();-
212 return 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
213}-
214-
215#ifndef QT_NO_OPENGL-
216QPlatformOpenGLContext *QXcbIntegration::createPlatformOpenGLContext(QOpenGLContext *context) const-
217{-
218 QXcbScreen *screen = static_cast<QXcbScreen *>(context->screen()->handle());-
219 QXcbGlIntegration *glIntegration = screen->connection()->glIntegration();-
220 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
221 qWarning("QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled");-
222 return Q_NULLPTR;
never executed: return nullptr;
0
223 }-
224 return 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
225}-
226#endif-
227-
228QPlatformBackingStore *QXcbIntegration::createPlatformBackingStore(QWindow *window) const-
229{-
230 return 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
231}-
232-
233QPlatformOffscreenSurface *QXcbIntegration::createPlatformOffscreenSurface(QOffscreenSurface *surface) const-
234{-
235 QXcbScreen *screen = static_cast<QXcbScreen *>(surface->screen()->handle());-
236 QXcbGlIntegration *glIntegration = screen->connection()->glIntegration();-
237 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
238 qWarning("QXcbIntegration: Cannot create platform offscreen surface, neither GLX nor EGL are enabled");-
239 return Q_NULLPTR;
never executed: return nullptr;
0
240 }-
241 return 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
242}-
243-
244bool QXcbIntegration::hasCapability(QPlatformIntegration::Capability cap) const-
245{-
246 switch (cap) {-
247 case ThreadedPixmaps: return true;
executed 2 times by 2 tests: return true;
Executed by:
  • tst_QOpenGlConfig
  • tst_QPixmap
executed 2 times by 2 tests: case ThreadedPixmaps:
Executed by:
  • tst_QOpenGlConfig
  • tst_QPixmap
2
248 case OpenGL: return 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
  • ...
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
  • ...
4061
249 case ThreadedOpenGL: return m_connections.at(0)->threadedEventHandling()
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
executed 11 times by 2 tests: case ThreadedOpenGL:
Executed by:
  • tst_QGLThreads
  • tst_QOpenGlConfig
m_connections....ventHandling()Description
TRUEevaluated 11 times by 2 tests
Evaluated by:
  • tst_QGLThreads
  • tst_QOpenGlConfig
FALSEnever evaluated
0-11
250 && m_connections.at(0)->glIntegration()
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....lIntegration()Description
TRUEevaluated 11 times by 2 tests
Evaluated by:
  • tst_QGLThreads
  • tst_QOpenGlConfig
FALSEnever evaluated
0-11
251 && m_connections.at(0)->glIntegration()->supportsThreadedOpenGL();
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....readedOpenGL()Description
TRUEnever evaluated
FALSEevaluated 11 times by 2 tests
Evaluated by:
  • tst_QGLThreads
  • tst_QOpenGlConfig
0-11
252 case WindowMasks: return true;
executed 2 times by 2 tests: return true;
Executed by:
  • tst_QOpenGlConfig
  • tst_QWidget
executed 2 times by 2 tests: case WindowMasks:
Executed by:
  • tst_QOpenGlConfig
  • tst_QWidget
2
253 case MultipleWindows: return true;
executed 2 times by 1 test: return true;
Executed by:
  • tst_QWidget
executed 2 times by 1 test: case MultipleWindows:
Executed by:
  • tst_QWidget
2
254 case ForeignWindows: return true;
never executed: return true;
never executed: case ForeignWindows:
0
255 case SyncState: return true;
executed 9 times by 3 tests: return true;
Executed by:
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindow
executed 9 times by 3 tests: case SyncState:
Executed by:
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindow
9
256 case RasterGLSurface: return 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
  • ...
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
  • ...
4358
257 case SwitchableWidgetComposition: return m_connections.at(0)->glIntegration()
executed 1 time by 1 test: return m_connections.at(0)->glIntegration() && m_connections.at(0)->glIntegration()->supportsSwitchableWidgetComposition();
Executed by:
  • tst_QOpenGLWidget
executed 1 time by 1 test: case SwitchableWidgetComposition:
Executed by:
  • tst_QOpenGLWidget
m_connections....lIntegration()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QOpenGLWidget
FALSEnever evaluated
0-1
258 && m_connections.at(0)->glIntegration()->supportsSwitchableWidgetComposition();
executed 1 time by 1 test: return m_connections.at(0)->glIntegration() && m_connections.at(0)->glIntegration()->supportsSwitchableWidgetComposition();
Executed by:
  • tst_QOpenGLWidget
m_connections....tComposition()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QOpenGLWidget
FALSEnever evaluated
0-1
259 default: return 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
  • ...
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
  • ...
12103
260 }-
261}-
262-
263QAbstractEventDispatcher *QXcbIntegration::createEventDispatcher() const-
264{-
265 QAbstractEventDispatcher *dispatcher = createUnixEventDispatcher();-
266 for (int i = 0; i < m_connections.size(); i++)
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
129
267 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
268 return 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
269}-
270-
271void QXcbIntegration::initialize()-
272{-
273 // Perform everything that may potentially need the event dispatcher (timers, socket-
274 // notifiers) here instead of the constructor.-
275 QString icStr = QPlatformInputContextFactory::requested();-
276 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
277 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
278 m_inputContext.reset(QPlatformInputContextFactory::create(icStr));-
279}
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
280-
281void QXcbIntegration::moveToScreen(QWindow *window, int screen)-
282{-
283 Q_UNUSED(window);-
284 Q_UNUSED(screen);-
285}
never executed: end of block
0
286-
287QPlatformFontDatabase *QXcbIntegration::fontDatabase() const-
288{-
289 return 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
290}-
291-
292QPlatformNativeInterface * QXcbIntegration::nativeInterface() const-
293{-
294 return 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
295}-
296-
297#ifndef QT_NO_CLIPBOARD-
298QPlatformClipboard *QXcbIntegration::clipboard() const-
299{-
300 return 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
301}-
302#endif-
303-
304#ifndef QT_NO_DRAGANDDROP-
305QPlatformDrag *QXcbIntegration::drag() const-
306{-
307 return 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
308}-
309#endif-
310-
311QPlatformInputContext *QXcbIntegration::inputContext() const-
312{-
313 return 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
314}-
315-
316#ifndef QT_NO_ACCESSIBILITY-
317QPlatformAccessibility *QXcbIntegration::accessibility() const-
318{-
319#if !defined(QT_NO_ACCESSIBILITY_ATSPI_BRIDGE)-
320 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
321 Q_ASSERT_X(QCoreApplication::eventDispatcher(), "QXcbIntegration",-
322 "Initializing accessibility without event-dispatcher!");-
323 m_accessibility.reset(new QSpiAccessibleBridge());-
324 }
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
325#endif-
326-
327 return 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
328}-
329#endif-
330-
331QPlatformServices *QXcbIntegration::services() const-
332{-
333 return 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
334}-
335-
336Qt::KeyboardModifiers QXcbIntegration::queryKeyboardModifiers() const-
337{-
338 int keybMask = 0;-
339 QXcbConnection *conn = m_connections.at(0);-
340 QXcbCursor::queryPointer(conn, 0, 0, &keybMask);-
341 return conn->keyboard()->translateModifiers(keybMask);
never executed: return conn->keyboard()->translateModifiers(keybMask);
0
342}-
343-
344QList<int> QXcbIntegration::possibleKeys(const QKeyEvent *e) const-
345{-
346 return m_connections.at(0)->keyboard()->possibleKeys(e);
never executed: return m_connections.at(0)->keyboard()->possibleKeys(e);
0
347}-
348-
349QStringList QXcbIntegration::themeNames() const-
350{-
351 return 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
352}-
353-
354QPlatformTheme *QXcbIntegration::createPlatformTheme(const QString &name) const-
355{-
356 return 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
357}-
358-
359QVariant QXcbIntegration::styleHint(QPlatformIntegration::StyleHint hint) const-
360{-
361 switch (hint) {-
362 case 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
363 case 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
364 case 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
365 case QPlatformIntegration::StartDragTime:
never executed: case QPlatformIntegration::StartDragTime:
0
366 case QPlatformIntegration::KeyboardAutoRepeatRate:
never executed: case QPlatformIntegration::KeyboardAutoRepeatRate:
0
367 case 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
368 case QPlatformIntegration::StartDragVelocity:
never executed: case QPlatformIntegration::StartDragVelocity:
0
369 case QPlatformIntegration::UseRtlExtensions:
executed 5 times by 4 tests: case QPlatformIntegration::UseRtlExtensions:
Executed by:
  • tst_QLineEdit
  • tst_QPlainTextEdit
  • tst_QStyleSheetStyle
  • tst_QTextEdit
5
370 case 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
371 // TODO using various xcb, gnome or KDE settings-
372 break; // Not implemented, use defaults
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
373 case 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
374 // Match Qt 4.8 text rendering, and rendering of other X11 toolkits.-
375 return 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
376 case QPlatformIntegration::StartDragDistance: {
executed 73 times by 3 tests: case QPlatformIntegration::StartDragDistance:
Executed by:
  • tst_QGraphicsView
  • tst_QMainWindow
  • tst_QMenu
73
377 // The default (in QPlatformTheme::defaultThemeHint) is 10 pixels, but-
378 // on a high-resolution screen it makes sense to increase it.-
379 qreal dpi = 100.0;-
380 if (const 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
381 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
382 dpi = screen->logicalDpi().first;
never executed: dpi = screen->logicalDpi().first;
0
383 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
384 dpi = screen->logicalDpi().second;
never executed: dpi = screen->logicalDpi().second;
0
385 }
executed 73 times by 3 tests: end of block
Executed by:
  • tst_QGraphicsView
  • tst_QMainWindow
  • tst_QMenu
73
386 return 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
387 }-
388 case 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
389 // X11 always has support for windows, but the-
390 // window manager could prevent it (e.g. matchbox)-
391 return 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
392 case QPlatformIntegration::ReplayMousePressOutsidePopup:
never executed: case QPlatformIntegration::ReplayMousePressOutsidePopup:
0
393 return false;
never executed: return false;
0
394 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
  • ...
26789
395 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
396 }-
397 return 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
398}-
399-
400static QString argv0BaseName()-
401{-
402 QString result;-
403 const QStringList arguments = QCoreApplication::arguments();-
404 if (!arguments.isEmpty() && !arguments.front().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()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
405 result = arguments.front();-
406 const int lastSlashPos = result.lastIndexOf(QLatin1Char('/'));-
407 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
408 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
409 }
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
410 return 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
411}-
412-
413static const char resourceNameVar[] = "RESOURCE_NAME";-
414-
415QByteArray QXcbIntegration::wmClass() const-
416{-
417 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
418 // Instance name according to ICCCM 4.1.2.5-
419 QString name;-
420 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
421 name = QString::fromLocal8Bit(m_instanceName);
never executed: name = QString::fromLocal8Bit(m_instanceName);
0
422 if (name.isEmpty() && qEnvironmentVariableIsSet(resourceNameVar))
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
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
423 name = QString::fromLocal8Bit(qgetenv(resourceNameVar));
never executed: name = QString::fromLocal8Bit(qgetenv(resourceNameVar));
0
424 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
425 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
426-
427 // Note: QCoreApplication::applicationName() cannot be called from the QGuiApplication constructor,-
428 // hence this delayed initialization.-
429 QString className = QCoreApplication::applicationName();-
430 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
431 className = argv0BaseName();-
432 if (!className.isEmpty() && className.at(0).isLower())
!className.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 51 times by 2 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
className.at(0).isLower()Description
TRUEnever evaluated
FALSEnever evaluated
0-51
433 className[0] = className.at(0).toUpper();
never executed: className[0] = className.at(0).toUpper();
0
434 }
executed 51 times by 2 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
51
435-
436 if (!name.isEmpty() && !className.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()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
437 m_wmClass = name.toLocal8Bit();-
438 m_wmClass.append('\0');-
439 m_wmClass.append(className.toLocal8Bit());-
440 m_wmClass.append('\0');-
441 }
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
442 }
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
443 return 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
444}-
445-
446#if !defined(QT_NO_SESSIONMANAGER) && defined(XCB_USE_SM)-
447QPlatformSessionManager *QXcbIntegration::createPlatformSessionManager(const QString &id, const QString &key) const-
448{-
449 return 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
450}-
451#endif-
452-
453void QXcbIntegration::sync()-
454{-
455 for (int i = 0; i < m_connections.size(); i++) {
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
9
456 m_connections.at(i)->sync();-
457 }
executed 9 times by 3 tests: end of block
Executed by:
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindow
9
458}
executed 9 times by 3 tests: end of block
Executed by:
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindow
9
459-
460QT_END_NAMESPACE-
Source codeSwitch to Preprocessed file

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