| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | | - |
| 7 | | - |
| 8 | | - |
| 9 | | - |
| 10 | | - |
| 11 | | - |
| 12 | | - |
| 13 | | - |
| 14 | | - |
| 15 | | - |
| 16 | | - |
| 17 | | - |
| 18 | | - |
| 19 | | - |
| 20 | | - |
| 21 | | - |
| 22 | | - |
| 23 | | - |
| 24 | | - |
| 25 | | - |
| 26 | | - |
| 27 | | - |
| 28 | | - |
| 29 | | - |
| 30 | | - |
| 31 | | - |
| 32 | | - |
| 33 | | - |
| 34 | #include "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 | | - |
| 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 | | - |
| 85 | QT_BEGIN_NAMESPACE | - |
| 86 | | - |
| 87 | | - |
| 88 | | - |
| 89 | static 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())| TRUE | evaluated 129 times by 5 testsEvaluated by:- tst_QApplication
- tst_QGuiApplication
- tst_qapplication - unknown status
- tst_qprocess - unknown status
- tst_selftests - unknown status
| | FALSE | never 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))| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 98 | return false; never executed: return false; | 0 |
| 99 | QByteArray s; | - |
| 100 | char c; | - |
| 101 | while (f.getChar(&c) && c) {| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 102 | if (c == '/')| TRUE | never evaluated | | FALSE | never 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 | | - |
| 113 | QXcbIntegration *QXcbIntegration::m_instance = Q_NULLPTR; | - |
| 114 | | - |
| 115 | QXcbIntegration::QXcbIntegration(const QStringList ¶meters, 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 | | - |
| 130 | const char *displayName = 0; | - |
| 131 | bool noGrabArg = false; | - |
| 132 | bool doGrabArg = false; | - |
| 133 | if (argc) {| TRUE | evaluated 57 times by 5 testsEvaluated by:- tst_QApplication
- tst_QGuiApplication
- tst_qapplication - unknown status
- tst_qprocess - unknown status
- tst_selftests - unknown status
| | FALSE | evaluated 72 times by 2 testsEvaluated by:- tst_QApplication
- tst_QGuiApplication
|
| 57-72 |
| 134 | int j = 1; | - |
| 135 | for (int i = 1; i < argc; i++) {| TRUE | evaluated 64 times by 3 testsEvaluated by:- tst_QApplication
- tst_QGuiApplication
- tst_selftests - unknown status
| | FALSE | evaluated 57 times by 5 testsEvaluated 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("--"))| TRUE | never evaluated | | FALSE | evaluated 64 times by 3 testsEvaluated 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)| TRUE | never evaluated | | FALSE | evaluated 64 times by 3 testsEvaluated by:- tst_QApplication
- tst_QGuiApplication
- tst_selftests - unknown status
|
| TRUE | never evaluated | | FALSE | never evaluated |
| 0-64 |
| 140 | displayName = argv[++i]; never executed: displayName = argv[++i]; | 0 |
| 141 | else if (arg == "-name" && i < argc - 1)| TRUE | never evaluated | | FALSE | evaluated 64 times by 3 testsEvaluated by:- tst_QApplication
- tst_QGuiApplication
- tst_selftests - unknown status
|
| TRUE | never evaluated | | FALSE | never evaluated |
| 0-64 |
| 142 | m_instanceName = argv[++i]; never executed: m_instanceName = argv[++i]; | 0 |
| 143 | else if (arg == "-nograb")| TRUE | never evaluated | | FALSE | evaluated 64 times by 3 testsEvaluated by:- tst_QApplication
- tst_QGuiApplication
- tst_selftests - unknown status
|
| 0-64 |
| 144 | noGrabArg = true; never executed: noGrabArg = true; | 0 |
| 145 | else if (arg == "-dograb")| TRUE | never evaluated | | FALSE | evaluated 64 times by 3 testsEvaluated 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) {| TRUE | never evaluated | | FALSE | evaluated 64 times by 3 testsEvaluated by:- tst_QApplication
- tst_QGuiApplication
- tst_selftests - unknown status
|
| TRUE | never evaluated | | FALSE | never evaluated |
| 0-64 |
| 148 | bool ok = false; | - |
| 149 | m_defaultVisualId = QByteArray(argv[++i]).toUInt(&ok, 0); | - |
| 150 | if (!ok)| TRUE | never evaluated | | FALSE | never 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 | } executed 57 times by 5 tests: end of blockExecuted 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) {| TRUE | never evaluated | | FALSE | evaluated 129 times by 5 testsEvaluated by:- tst_QApplication
- tst_QGuiApplication
- tst_qapplication - unknown status
- tst_qprocess - unknown status
- tst_selftests - unknown status
|
| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never 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) {| TRUE | evaluated 129 times by 5 testsEvaluated by:- tst_QApplication
- tst_QGuiApplication
- tst_qapplication - unknown status
- tst_qprocess - unknown status
- tst_selftests - unknown status
| | FALSE | never evaluated |
| TRUE | evaluated 129 times by 5 testsEvaluated by:- tst_QApplication
- tst_QGuiApplication
- tst_qapplication - unknown status
- tst_qprocess - unknown status
- tst_selftests - unknown status
| | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | evaluated 129 times by 5 testsEvaluated 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);| TRUE | evaluated 129 times by 5 testsEvaluated by:- tst_QApplication
- tst_QGuiApplication
- tst_qapplication - unknown status
- tst_qprocess - unknown status
- tst_selftests - unknown status
| | FALSE | never evaluated |
| TRUE | evaluated 129 times by 5 testsEvaluated by:- tst_QApplication
- tst_QGuiApplication
- tst_qapplication - unknown status
- tst_qprocess - unknown status
- tst_selftests - unknown status
| | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0-129 |
| 172 | | - |
| 173 | static bool canNotGrabEnv = qEnvironmentVariableIsSet("QT_XCB_NO_GRAB_SERVER"); | - |
| 174 | if (canNotGrabEnv)| TRUE | never evaluated | | FALSE | evaluated 129 times by 5 testsEvaluated 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) {| TRUE | never evaluated | | FALSE | evaluated 129 times by 5 testsEvaluated 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); | TRUE | never evaluated | | FALSE | never 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 blockExecuted by:- tst_QApplication
- tst_QGuiApplication
- tst_qapplication - unknown status
- tst_qprocess - unknown status
- tst_selftests - unknown status
| 129 |
| 189 | | - |
| 190 | QXcbIntegration::~QXcbIntegration() | - |
| 191 | { | - |
| 192 | qDeleteAll(m_connections); | - |
| 193 | m_instance = Q_NULLPTR; | - |
| 194 | }executed 341 times by 220 tests: end of blockExecuted 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 | | - |
| 196 | QPlatformWindow *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) {| TRUE | evaluated 4166 times by 125 testsEvaluated 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
- ...
| | FALSE | evaluated 294 times by 117 testsEvaluated by:- tst_Gestures
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- ...
|
| 294-4166 |
| 201 | if (glIntegration) {| TRUE | evaluated 4166 times by 125 testsEvaluated 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
- ...
| | FALSE | never 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)); | - |
| 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 | - |
| 216 | QPlatformOpenGLContext *QXcbIntegration::createPlatformOpenGLContext(QOpenGLContext *context) const | - |
| 217 | { | - |
| 218 | QXcbScreen *screen = static_cast<QXcbScreen *>(context->screen()->handle()); | - |
| 219 | QXcbGlIntegration *glIntegration = screen->connection()->glIntegration(); | - |
| 220 | if (!glIntegration) {| TRUE | never evaluated | | FALSE | evaluated 57 times by 9 testsEvaluated 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 | | - |
| 228 | QPlatformBackingStore *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 | | - |
| 233 | QPlatformOffscreenSurface *QXcbIntegration::createPlatformOffscreenSurface(QOffscreenSurface *surface) const | - |
| 234 | { | - |
| 235 | QXcbScreen *screen = static_cast<QXcbScreen *>(surface->screen()->handle()); | - |
| 236 | QXcbGlIntegration *glIntegration = screen->connection()->glIntegration(); | - |
| 237 | if (!glIntegration) {| TRUE | never evaluated | | FALSE | evaluated 26 times by 5 testsEvaluated 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 | | - |
| 244 | bool 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
| TRUE | evaluated 11 times by 2 testsEvaluated by:- tst_QGLThreads
- tst_QOpenGlConfig
| | FALSE | never 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
| TRUE | evaluated 11 times by 2 testsEvaluated by:- tst_QGLThreads
- tst_QOpenGlConfig
| | FALSE | never 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
| TRUE | never evaluated | | FALSE | evaluated 11 times by 2 testsEvaluated 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 2 times by 1 test: case MultipleWindows: | 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 1 time by 1 test: case SwitchableWidgetComposition: | TRUE | evaluated 1 time by 1 test | | FALSE | never 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(); | TRUE | evaluated 1 time by 1 test | | FALSE | never 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 | | - |
| 263 | QAbstractEventDispatcher *QXcbIntegration::createEventDispatcher() const | - |
| 264 | { | - |
| 265 | QAbstractEventDispatcher *dispatcher = createUnixEventDispatcher(); | - |
| 266 | for (int i = 0; i < m_connections.size(); i++)| TRUE | evaluated 129 times by 5 testsEvaluated by:- tst_QApplication
- tst_QGuiApplication
- tst_qapplication - unknown status
- tst_qprocess - unknown status
- tst_selftests - unknown status
| | FALSE | evaluated 129 times by 5 testsEvaluated 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 | | - |
| 271 | void QXcbIntegration::initialize() | - |
| 272 | { | - |
| 273 | | - |
| 274 | | - |
| 275 | QString icStr = QPlatformInputContextFactory::requested(); | - |
| 276 | if (icStr.isNull())| TRUE | evaluated 129 times by 5 testsEvaluated by:- tst_QApplication
- tst_QGuiApplication
- tst_qapplication - unknown status
- tst_qprocess - unknown status
- tst_selftests - unknown status
| | FALSE | never 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 blockExecuted by:- tst_QApplication
- tst_QGuiApplication
- tst_qapplication - unknown status
- tst_qprocess - unknown status
- tst_selftests - unknown status
| 129 |
| 280 | | - |
| 281 | void QXcbIntegration::moveToScreen(QWindow *window, int screen) | - |
| 282 | { | - |
| 283 | Q_UNUSED(window); | - |
| 284 | Q_UNUSED(screen); | - |
| 285 | } never executed: end of block | 0 |
| 286 | | - |
| 287 | QPlatformFontDatabase *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 | | - |
| 292 | QPlatformNativeInterface * 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 | - |
| 298 | QPlatformClipboard *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 | - |
| 305 | QPlatformDrag *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 | | - |
| 311 | QPlatformInputContext *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 | - |
| 317 | QPlatformAccessibility *QXcbIntegration::accessibility() const | - |
| 318 | { | - |
| 319 | #if !defined(QT_NO_ACCESSIBILITY_ATSPI_BRIDGE) | - |
| 320 | if (!m_accessibility) {| TRUE | evaluated 179 times by 128 testsEvaluated 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
- ...
| | FALSE | evaluated 524343 times by 129 testsEvaluated 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 blockExecuted 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 | | - |
| 331 | QPlatformServices *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 | | - |
| 336 | Qt::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 | | - |
| 344 | QList<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 | | - |
| 349 | QStringList 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 | | - |
| 354 | QPlatformTheme *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 | | - |
| 359 | QVariant 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 | | - |
| 372 | 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 |
| 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 | | - |
| 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 | | - |
| 378 | | - |
| 379 | qreal dpi = 100.0; | - |
| 380 | if (const QXcbScreen *screen = defaultConnection()->primaryScreen()) {| TRUE | evaluated 73 times by 3 testsEvaluated by:- tst_QGraphicsView
- tst_QMainWindow
- tst_QMenu
| | FALSE | never evaluated |
| 0-73 |
| 381 | if (screen->logicalDpi().first > dpi)| TRUE | never evaluated | | FALSE | evaluated 73 times by 3 testsEvaluated 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)| TRUE | never evaluated | | FALSE | evaluated 73 times by 3 testsEvaluated 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 blockExecuted 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 | | - |
| 390 | | - |
| 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 | | - |
| 400 | static QString argv0BaseName() | - |
| 401 | { | - |
| 402 | QString result; | - |
| 403 | const QStringList arguments = QCoreApplication::arguments(); | - |
| 404 | if (!arguments.isEmpty() && !arguments.front().isEmpty()) {| TRUE | evaluated 132 times by 125 testsEvaluated 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
- ...
| | FALSE | evaluated 102 times by 2 testsEvaluated by:- tst_QApplication
- tst_QGuiApplication
|
| TRUE | evaluated 132 times by 125 testsEvaluated 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
- ...
| | FALSE | never evaluated |
| 0-132 |
| 405 | result = arguments.front(); | - |
| 406 | const int lastSlashPos = result.lastIndexOf(QLatin1Char('/')); | - |
| 407 | if (lastSlashPos != -1)| TRUE | evaluated 130 times by 124 testsEvaluated 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
- ...
| | FALSE | evaluated 2 times by 1 test |
| 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 blockExecuted 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 | | - |
| 413 | static const char resourceNameVar[] = "RESOURCE_NAME"; | - |
| 414 | | - |
| 415 | QByteArray QXcbIntegration::wmClass() const | - |
| 416 | { | - |
| 417 | if (m_wmClass.isEmpty()) {| TRUE | evaluated 183 times by 125 testsEvaluated 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
- ...
| | FALSE | evaluated 3983 times by 106 testsEvaluated by:- tst_Gestures
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
|
| 183-3983 |
| 418 | | - |
| 419 | QString name; | - |
| 420 | if (m_instanceName)| TRUE | never evaluated | | FALSE | evaluated 183 times by 125 testsEvaluated 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))| TRUE | evaluated 183 times by 125 testsEvaluated 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
- ...
| | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | evaluated 183 times by 125 testsEvaluated 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())| TRUE | evaluated 183 times by 125 testsEvaluated 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
- ...
| | FALSE | never 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 | | - |
| 428 | | - |
| 429 | QString className = QCoreApplication::applicationName(); | - |
| 430 | if (className.isEmpty()) {| TRUE | evaluated 51 times by 2 testsEvaluated by:- tst_QApplication
- tst_QGuiApplication
| | FALSE | evaluated 132 times by 125 testsEvaluated 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())| TRUE | never evaluated | | FALSE | evaluated 51 times by 2 testsEvaluated by:- tst_QApplication
- tst_QGuiApplication
|
| TRUE | never evaluated | | FALSE | never 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 blockExecuted by:- tst_QApplication
- tst_QGuiApplication
| 51 |
| 435 | | - |
| 436 | if (!name.isEmpty() && !className.isEmpty()) {| TRUE | evaluated 132 times by 125 testsEvaluated 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
- ...
| | FALSE | evaluated 51 times by 2 testsEvaluated by:- tst_QApplication
- tst_QGuiApplication
|
| TRUE | evaluated 132 times by 125 testsEvaluated 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
- ...
| | FALSE | never 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 blockExecuted 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 blockExecuted 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) | - |
| 447 | QPlatformSessionManager *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 | | - |
| 453 | void QXcbIntegration::sync() | - |
| 454 | { | - |
| 455 | for (int i = 0; i < m_connections.size(); i++) {| TRUE | evaluated 9 times by 3 testsEvaluated by:- tst_QWidget
- tst_QWidget_window
- tst_QWindow
| | FALSE | evaluated 9 times by 3 testsEvaluated by:- tst_QWidget
- tst_QWidget_window
- tst_QWindow
|
| 9 |
| 456 | m_connections.at(i)->sync(); | - |
| 457 | }executed 9 times by 3 tests: end of blockExecuted by:- tst_QWidget
- tst_QWidget_window
- tst_QWindow
| 9 |
| 458 | }executed 9 times by 3 tests: end of blockExecuted by:- tst_QWidget
- tst_QWidget_window
- tst_QWindow
| 9 |
| 459 | | - |
| 460 | QT_END_NAMESPACE | - |
| | |