kernel/qplatformintegration.cpp

Switch to Source codePreprocessed file
LineSource CodeCoverage
1 -
2 -
3 -
4QPlatformFontDatabase *QPlatformIntegration::fontDatabase() const -
5{ -
6 static QPlatformFontDatabase *db = 0; -
7 if (!db) {
never evaluated: !db
0
8 db = new QPlatformFontDatabase; -
9 }
never executed: }
0
10 return db;
never executed: return db;
0
11} -
12QPlatformClipboard *QPlatformIntegration::clipboard() const -
13{ -
14 static QPlatformClipboard *clipboard = 0; -
15 if (!clipboard) {
never evaluated: !clipboard
0
16 clipboard = new QPlatformClipboard; -
17 }
never executed: }
0
18 return clipboard;
never executed: return clipboard;
0
19} -
20QPlatformDrag *QPlatformIntegration::drag() const -
21{ -
22 return 0;
never executed: return 0;
0
23} -
24 -
25 -
26QPlatformNativeInterface * QPlatformIntegration::nativeInterface() const -
27{ -
28 return 0;
never executed: return 0;
0
29} -
30 -
31QPlatformServices *QPlatformIntegration::services() const -
32{ -
33 return 0;
never executed: return 0;
0
34} -
35bool QPlatformIntegration::hasCapability(Capability cap) const -
36{ -
37 (void)cap;; -
38 return false;
never executed: return false;
0
39} -
40 -
41QPlatformPixmap *QPlatformIntegration::createPlatformPixmap(QPlatformPixmap::PixelType type) const -
42{ -
43 return new QRasterPlatformPixmap(type);
executed: return new QRasterPlatformPixmap(type);
Execution Count:4952
4952
44} -
45 -
46 -
47QPlatformOpenGLContext *QPlatformIntegration::createPlatformOpenGLContext(QOpenGLContext *context) const -
48{ -
49 (void)context;; -
50 QMessageLogger("kernel/qplatformintegration.cpp", 232, __PRETTY_FUNCTION__).warning("This plugin does not support createPlatformOpenGLContext!"); -
51 return 0;
never executed: return 0;
0
52} -
53 -
54 -
55 -
56 -
57 -
58 -
59QPlatformSharedGraphicsCache *QPlatformIntegration::createPlatformSharedGraphicsCache(const char *cacheId) const -
60{ -
61 QMessageLogger("kernel/qplatformintegration.cpp", 243, __PRETTY_FUNCTION__).warning("This plugin does not support createPlatformSharedGraphicsBuffer for cacheId: %s!", -
62 cacheId); -
63 return 0;
never executed: return 0;
0
64} -
65 -
66 -
67 -
68 -
69 -
70QPaintEngine *QPlatformIntegration::createImagePaintEngine(QPaintDevice *paintDevice) const -
71{ -
72 (void)paintDevice; -
73 return 0;
executed: return 0;
Execution Count:5525
5525
74} -
75 -
76 -
77 -
78 -
79 -
80 -
81QPlatformInputContext *QPlatformIntegration::inputContext() const -
82{ -
83 return 0;
never executed: return 0;
0
84} -
85QPlatformAccessibility *QPlatformIntegration::accessibility() const -
86{ -
87 return 0;
never executed: return 0;
0
88} -
89 -
90 -
91 -
92QVariant QPlatformIntegration::styleHint(StyleHint hint) const -
93{ -
94 switch (hint) { -
95 case CursorFlashTime: -
96 return QPlatformTheme::defaultThemeHint(QPlatformTheme::CursorFlashTime);
never executed: return QPlatformTheme::defaultThemeHint(QPlatformTheme::CursorFlashTime);
0
97 case KeyboardInputInterval: -
98 return QPlatformTheme::defaultThemeHint(QPlatformTheme::KeyboardInputInterval);
never executed: return QPlatformTheme::defaultThemeHint(QPlatformTheme::KeyboardInputInterval);
0
99 case KeyboardAutoRepeatRate: -
100 return QPlatformTheme::defaultThemeHint(QPlatformTheme::KeyboardAutoRepeatRate);
never executed: return QPlatformTheme::defaultThemeHint(QPlatformTheme::KeyboardAutoRepeatRate);
0
101 case MouseDoubleClickInterval: -
102 return QPlatformTheme::defaultThemeHint(QPlatformTheme::MouseDoubleClickInterval);
never executed: return QPlatformTheme::defaultThemeHint(QPlatformTheme::MouseDoubleClickInterval);
0
103 case StartDragDistance: -
104 return QPlatformTheme::defaultThemeHint(QPlatformTheme::StartDragDistance);
never executed: return QPlatformTheme::defaultThemeHint(QPlatformTheme::StartDragDistance);
0
105 case StartDragTime: -
106 return QPlatformTheme::defaultThemeHint(QPlatformTheme::StartDragTime);
never executed: return QPlatformTheme::defaultThemeHint(QPlatformTheme::StartDragTime);
0
107 case ShowIsFullScreen: -
108 return false;
executed: return false;
Execution Count:2867
2867
109 case PasswordMaskDelay: -
110 return QPlatformTheme::defaultThemeHint(QPlatformTheme::PasswordMaskDelay);
never executed: return QPlatformTheme::defaultThemeHint(QPlatformTheme::PasswordMaskDelay);
0
111 case FontSmoothingGamma: -
112 return qreal(1.7);
executed: return qreal(1.7);
Execution Count:289
289
113 case StartDragVelocity: -
114 return QPlatformTheme::defaultThemeHint(QPlatformTheme::StartDragVelocity);
never executed: return QPlatformTheme::defaultThemeHint(QPlatformTheme::StartDragVelocity);
0
115 case UseRtlExtensions: -
116 return QVariant(false);
executed: return QVariant(false);
Execution Count:2
2
117 case SynthesizeMouseFromTouchEvents: -
118 return true;
executed: return true;
Execution Count:22
22
119 } -
120 -
121 return 0;
never executed: return 0;
0
122} -
123 -
124Qt::KeyboardModifiers QPlatformIntegration::queryKeyboardModifiers() const -
125{ -
126 return QGuiApplication::keyboardModifiers();
never executed: return QGuiApplication::keyboardModifiers();
0
127} -
128QList<int> QPlatformIntegration::possibleKeys(const QKeyEvent *) const -
129{ -
130 return QList<int>();
never executed: return QList<int>();
0
131} -
132void QPlatformIntegration::screenAdded(QPlatformScreen *ps) -
133{ -
134 QScreen *screen = new QScreen(ps); -
135 ps->d_func()->screen = screen; -
136 QGuiApplicationPrivate::screen_list << screen; -
137 (static_cast<QGuiApplication *>(QCoreApplication::instance()))->screenAdded(screen); -
138}
executed: }
Execution Count:289
289
139 -
140QStringList QPlatformIntegration::themeNames() const -
141{ -
142 return QStringList();
never executed: return QStringList();
0
143} -
144 -
145class QPlatformTheme *QPlatformIntegration::createPlatformTheme(const QString &name) const -
146{ -
147 (void)name; -
148 return new QPlatformTheme;
never executed: return new QPlatformTheme;
0
149} -
150 -
151 -
152 -
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial