Absolute File Name: | /home/qt/qt5_coco/qt5/qtbase/src/gui/kernel/qplatforminputcontext.cpp |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||
---|---|---|---|---|---|---|---|---|
1 | - | |||||||
2 | - | |||||||
3 | QPlatformInputContext::QPlatformInputContext() | - | ||||||
4 | : QObject(*(new QPlatformInputContextPrivate)) | - | ||||||
5 | { | - | ||||||
6 | } never executed: end of block | 0 | ||||||
7 | - | |||||||
8 | - | |||||||
9 | - | |||||||
10 | - | |||||||
11 | QPlatformInputContext::~QPlatformInputContext() | - | ||||||
12 | { | - | ||||||
13 | } | - | ||||||
14 | - | |||||||
15 | - | |||||||
16 | - | |||||||
17 | - | |||||||
18 | bool QPlatformInputContext::isValid() const | - | ||||||
19 | { | - | ||||||
20 | return never executed: false;return false; never executed: return false; | 0 | ||||||
21 | } | - | ||||||
22 | - | |||||||
23 | - | |||||||
24 | - | |||||||
25 | - | |||||||
26 | - | |||||||
27 | - | |||||||
28 | bool QPlatformInputContext::hasCapability(Capability capability) const | - | ||||||
29 | { | - | ||||||
30 | (void)capability; | - | ||||||
31 | return never executed: true;return true; never executed: return true; | 0 | ||||||
32 | } | - | ||||||
33 | - | |||||||
34 | - | |||||||
35 | - | |||||||
36 | - | |||||||
37 | - | |||||||
38 | void QPlatformInputContext::reset() | - | ||||||
39 | { | - | ||||||
40 | } | - | ||||||
41 | - | |||||||
42 | void QPlatformInputContext::commit() | - | ||||||
43 | { | - | ||||||
44 | } | - | ||||||
45 | - | |||||||
46 | - | |||||||
47 | - | |||||||
48 | - | |||||||
49 | void QPlatformInputContext::update(Qt::InputMethodQueries) | - | ||||||
50 | { | - | ||||||
51 | } | - | ||||||
52 | - | |||||||
53 | - | |||||||
54 | - | |||||||
55 | - | |||||||
56 | - | |||||||
57 | - | |||||||
58 | void QPlatformInputContext::invokeAction(QInputMethod::Action action, int cursorPosition) | - | ||||||
59 | { | - | ||||||
60 | (void)cursorPosition; | - | ||||||
61 | - | |||||||
62 | - | |||||||
63 | if (action == QInputMethod::Click
| 0 | ||||||
64 | reset(); never executed: reset(); | 0 | ||||||
65 | } never executed: end of block | 0 | ||||||
66 | - | |||||||
67 | - | |||||||
68 | - | |||||||
69 | - | |||||||
70 | - | |||||||
71 | - | |||||||
72 | - | |||||||
73 | bool QPlatformInputContext::filterEvent(const QEvent *event) | - | ||||||
74 | { | - | ||||||
75 | (void)event; | - | ||||||
76 | return never executed: false;return false; never executed: return false; | 0 | ||||||
77 | } | - | ||||||
78 | - | |||||||
79 | - | |||||||
80 | - | |||||||
81 | - | |||||||
82 | - | |||||||
83 | QRectF QPlatformInputContext::keyboardRect() const | - | ||||||
84 | { | - | ||||||
85 | return never executed: QRectF();return QRectF(); never executed: return QRectF(); | 0 | ||||||
86 | } | - | ||||||
87 | - | |||||||
88 | - | |||||||
89 | - | |||||||
90 | - | |||||||
91 | - | |||||||
92 | - | |||||||
93 | void QPlatformInputContext::emitKeyboardRectChanged() | - | ||||||
94 | { | - | ||||||
95 | QGuiApplication::inputMethod()->keyboardRectangleChanged(); | - | ||||||
96 | } never executed: end of block | 0 | ||||||
97 | - | |||||||
98 | - | |||||||
99 | - | |||||||
100 | - | |||||||
101 | - | |||||||
102 | bool QPlatformInputContext::isAnimating() const | - | ||||||
103 | { | - | ||||||
104 | return never executed: false;return false; never executed: return false; | 0 | ||||||
105 | } | - | ||||||
106 | - | |||||||
107 | - | |||||||
108 | - | |||||||
109 | - | |||||||
110 | - | |||||||
111 | - | |||||||
112 | void QPlatformInputContext::emitAnimatingChanged() | - | ||||||
113 | { | - | ||||||
114 | QGuiApplication::inputMethod()->animatingChanged(); | - | ||||||
115 | } never executed: end of block | 0 | ||||||
116 | - | |||||||
117 | - | |||||||
118 | - | |||||||
119 | - | |||||||
120 | void QPlatformInputContext::showInputPanel() | - | ||||||
121 | { | - | ||||||
122 | } | - | ||||||
123 | - | |||||||
124 | - | |||||||
125 | - | |||||||
126 | - | |||||||
127 | void QPlatformInputContext::hideInputPanel() | - | ||||||
128 | { | - | ||||||
129 | } | - | ||||||
130 | - | |||||||
131 | - | |||||||
132 | - | |||||||
133 | - | |||||||
134 | bool QPlatformInputContext::isInputPanelVisible() const | - | ||||||
135 | { | - | ||||||
136 | return never executed: false;return false; never executed: return false; | 0 | ||||||
137 | } | - | ||||||
138 | - | |||||||
139 | - | |||||||
140 | - | |||||||
141 | - | |||||||
142 | - | |||||||
143 | - | |||||||
144 | void QPlatformInputContext::emitInputPanelVisibleChanged() | - | ||||||
145 | { | - | ||||||
146 | QGuiApplication::inputMethod()->visibleChanged(); | - | ||||||
147 | } never executed: end of block | 0 | ||||||
148 | - | |||||||
149 | QLocale QPlatformInputContext::locale() const | - | ||||||
150 | { | - | ||||||
151 | return never executed: qt_keymapper_private()->keyboardInputLocale;return qt_keymapper_private()->keyboardInputLocale; never executed: return qt_keymapper_private()->keyboardInputLocale; | 0 | ||||||
152 | } | - | ||||||
153 | - | |||||||
154 | void QPlatformInputContext::emitLocaleChanged() | - | ||||||
155 | { | - | ||||||
156 | QGuiApplication::inputMethod()->localeChanged(); | - | ||||||
157 | } never executed: end of block | 0 | ||||||
158 | - | |||||||
159 | Qt::LayoutDirection QPlatformInputContext::inputDirection() const | - | ||||||
160 | { | - | ||||||
161 | return never executed: qt_keymapper_private()->keyboardInputDirection;return qt_keymapper_private()->keyboardInputDirection; never executed: return qt_keymapper_private()->keyboardInputDirection; | 0 | ||||||
162 | } | - | ||||||
163 | - | |||||||
164 | void QPlatformInputContext::emitInputDirectionChanged(Qt::LayoutDirection newDirection) | - | ||||||
165 | { | - | ||||||
166 | QGuiApplication::inputMethod()->inputDirectionChanged(newDirection); | - | ||||||
167 | } never executed: end of block | 0 | ||||||
168 | - | |||||||
169 | - | |||||||
170 | - | |||||||
171 | - | |||||||
172 | - | |||||||
173 | void QPlatformInputContext::setFocusObject(QObject *object) | - | ||||||
174 | { | - | ||||||
175 | (void)object; | - | ||||||
176 | } never executed: end of block | 0 | ||||||
177 | - | |||||||
178 | - | |||||||
179 | - | |||||||
180 | - | |||||||
181 | bool QPlatformInputContext::inputMethodAccepted() const | - | ||||||
182 | { | - | ||||||
183 | return never executed: QPlatformInputContextPrivate::s_inputMethodAccepted;return QPlatformInputContextPrivate::s_inputMethodAccepted; never executed: return QPlatformInputContextPrivate::s_inputMethodAccepted; | 0 | ||||||
184 | } | - | ||||||
185 | - | |||||||
186 | bool QPlatformInputContextPrivate::s_inputMethodAccepted = false; | - | ||||||
187 | - | |||||||
188 | void QPlatformInputContextPrivate::setInputMethodAccepted(bool accepted) | - | ||||||
189 | { | - | ||||||
190 | QPlatformInputContextPrivate::s_inputMethodAccepted = accepted; | - | ||||||
191 | } never executed: end of block | 0 | ||||||
192 | - | |||||||
193 | - | |||||||
194 | - | |||||||
Switch to Source code | Preprocessed file |