kernel/qstylehints.cpp

Switch to Source codePreprocessed file
LineSource CodeCoverage
1 -
2 -
3 -
4static inline QVariant hint(QPlatformIntegration::StyleHint h) -
5{ -
6 return QGuiApplicationPrivate::platformIntegration()->styleHint(h);
executed: return QGuiApplicationPrivate::platformIntegration()->styleHint(h);
Execution Count:2869
2869
7} -
8 -
9static inline QVariant themeableHint(QPlatformTheme::ThemeHint th, -
10 QPlatformIntegration::StyleHint ih) -
11{ -
12 if (const QPlatformTheme *theme = QGuiApplicationPrivate::platformTheme()) {
partially evaluated: const QPlatformTheme *theme = QGuiApplicationPrivate::platformTheme()
TRUEFALSE
yes
Evaluation Count:5015
no
Evaluation Count:0
0-5015
13 const QVariant themeHint = theme->themeHint(th); -
14 if (themeHint.isValid())
partially evaluated: themeHint.isValid()
TRUEFALSE
yes
Evaluation Count:5015
no
Evaluation Count:0
0-5015
15 return themeHint;
executed: return themeHint;
Execution Count:5015
5015
16 }
never executed: }
0
17 return QGuiApplicationPrivate::platformIntegration()->styleHint(ih);
never executed: return QGuiApplicationPrivate::platformIntegration()->styleHint(ih);
0
18} -
19QStyleHints::QStyleHints() -
20 : QObject() -
21{ -
22}
executed: }
Execution Count:117
117
23 -
24 -
25 -
26 -
27 -
28int QStyleHints::mouseDoubleClickInterval() const -
29{ -
30 return themeableHint(QPlatformTheme::MouseDoubleClickInterval, QPlatformIntegration::MouseDoubleClickInterval).toInt();
executed: return themeableHint(QPlatformTheme::MouseDoubleClickInterval, QPlatformIntegration::MouseDoubleClickInterval).toInt();
Execution Count:785
785
31} -
32int QStyleHints::startDragDistance() const -
33{ -
34 return themeableHint(QPlatformTheme::StartDragDistance, QPlatformIntegration::StartDragDistance).toInt();
executed: return themeableHint(QPlatformTheme::StartDragDistance, QPlatformIntegration::StartDragDistance).toInt();
Execution Count:9
9
35} -
36int QStyleHints::startDragTime() const -
37{ -
38 return themeableHint(QPlatformTheme::StartDragTime, QPlatformIntegration::StartDragTime).toInt();
never executed: return themeableHint(QPlatformTheme::StartDragTime, QPlatformIntegration::StartDragTime).toInt();
0
39} -
40int QStyleHints::startDragVelocity() const -
41{ -
42 return themeableHint(QPlatformTheme::StartDragVelocity, QPlatformIntegration::StartDragVelocity).toInt();
never executed: return themeableHint(QPlatformTheme::StartDragVelocity, QPlatformIntegration::StartDragVelocity).toInt();
0
43} -
44 -
45 -
46 -
47 -
48 -
49int QStyleHints::keyboardInputInterval() const -
50{ -
51 return themeableHint(QPlatformTheme::KeyboardInputInterval, QPlatformIntegration::KeyboardInputInterval).toInt();
executed: return themeableHint(QPlatformTheme::KeyboardInputInterval, QPlatformIntegration::KeyboardInputInterval).toInt();
Execution Count:19
19
52} -
53 -
54 -
55 -
56 -
57 -
58int QStyleHints::keyboardAutoRepeatRate() const -
59{ -
60 return themeableHint(QPlatformTheme::KeyboardAutoRepeatRate, QPlatformIntegration::KeyboardAutoRepeatRate).toInt();
never executed: return themeableHint(QPlatformTheme::KeyboardAutoRepeatRate, QPlatformIntegration::KeyboardAutoRepeatRate).toInt();
0
61} -
62int QStyleHints::cursorFlashTime() const -
63{ -
64 return themeableHint(QPlatformTheme::CursorFlashTime, QPlatformIntegration::CursorFlashTime).toInt();
executed: return themeableHint(QPlatformTheme::CursorFlashTime, QPlatformIntegration::CursorFlashTime).toInt();
Execution Count:4198
4198
65} -
66 -
67 -
68 -
69 -
70 -
71 -
72 -
73bool QStyleHints::showIsFullScreen() const -
74{ -
75 return hint(QPlatformIntegration::ShowIsFullScreen).toBool();
executed: return hint(QPlatformIntegration::ShowIsFullScreen).toBool();
Execution Count:2867
2867
76} -
77 -
78 -
79 -
80 -
81 -
82int QStyleHints::passwordMaskDelay() const -
83{ -
84 return themeableHint(QPlatformTheme::PasswordMaskDelay, QPlatformIntegration::PasswordMaskDelay).toInt();
executed: return themeableHint(QPlatformTheme::PasswordMaskDelay, QPlatformIntegration::PasswordMaskDelay).toInt();
Execution Count:4
4
85} -
86 -
87 -
88 -
89 -
90qreal QStyleHints::fontSmoothingGamma() const -
91{ -
92 return hint(QPlatformIntegration::FontSmoothingGamma).toReal();
never executed: return hint(QPlatformIntegration::FontSmoothingGamma).toReal();
0
93} -
94 -
95 -
96 -
97 -
98 -
99bool QStyleHints::useRtlExtensions() const -
100{ -
101 return hint(QPlatformIntegration::UseRtlExtensions).toBool();
executed: return hint(QPlatformIntegration::UseRtlExtensions).toBool();
Execution Count:2
2
102} -
103 -
104 -
105 -
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial