Codebase list fcitx-qt5 / d02b13b
New upstream version 1.2.2 Boyuan Yang 6 years ago
1 changed file(s) with 11 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
1818 */
1919
2020 #include <QDBusConnection>
21 #include <QDebug>
2122 #include <QGuiApplication>
2223 #include <QInputMethod>
2324 #include <QKeyEvent>
6364 return locale;
6465 }
6566
66 struct xkb_context *_xkb_context_new_helper() {
67 struct xkb_context *context = xkb_context_new(XKB_CONTEXT_NO_FLAGS);
68 if (context) {
69 xkb_context_set_log_level(context, XKB_LOG_LEVEL_CRITICAL);
70 }
71
72 return context;
73 }
74
7567 static bool objectAcceptsInputMethod() {
7668 bool enabled = false;
7769 QObject *object = qApp->focusObject();
8274 }
8375
8476 return enabled;
77 }
78
79 struct xkb_context *_xkb_context_new_helper() {
80 struct xkb_context *context = xkb_context_new(XKB_CONTEXT_NO_FLAGS);
81 if (context) {
82 xkb_context_set_log_level(context, XKB_LOG_LEVEL_CRITICAL);
83 }
84
85 return context;
8586 }
8687
8788 QFcitxPlatformInputContext::QFcitxPlatformInputContext()
704705
705706 if (!proxy->processKeyEventResult(*watcher)) {
706707 filtered =
707 filterEventFallback(sym, code, state, type == QEvent::KeyPress);
708 filterEventFallback(sym, code, state, type == QEvent::KeyRelease);
708709 } else {
709710 filtered = true;
710711 }