summaryrefslogtreecommitdiff
path: root/src/client/qwaylandtextinputv4.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2023-02-01 14:35:30 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2023-02-13 09:06:23 +0100
commit6ec8ce9a06e5ccb16f5fc3a5f857425f3db87c80 (patch)
tree0ec19f3e7387bae896cbb8ed98f32cf27c4c95d6 /src/client/qwaylandtextinputv4.cpp
parent948fbd1cd64f9d5e129deade61ecd3dbc5f9b60f (diff)
downloadqtwayland-6ec8ce9a06e5ccb16f5fc3a5f857425f3db87c80.tar.gz
Disambiguate input method constants
They cause clashes in CMake Unity (Jumbo) builds. Pick-to: 6.5 Task-number: QTBUG-109394 Change-Id: I13b33c894818d8aebce763eaf6c961d806961a63 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> Reviewed-by: Amir Masoud Abdol <amir.abdol@qt.io>
Diffstat (limited to 'src/client/qwaylandtextinputv4.cpp')
-rw-r--r--src/client/qwaylandtextinputv4.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/qwaylandtextinputv4.cpp b/src/client/qwaylandtextinputv4.cpp
index 4b3e6eb5..6cf01613 100644
--- a/src/client/qwaylandtextinputv4.cpp
+++ b/src/client/qwaylandtextinputv4.cpp
@@ -31,7 +31,7 @@ QWaylandTextInputv4::~QWaylandTextInputv4()
}
namespace {
-const Qt::InputMethodQueries supportedQueries = Qt::ImEnabled |
+const Qt::InputMethodQueries supportedQueries4 = Qt::ImEnabled |
Qt::ImSurroundingText |
Qt::ImCursorPosition |
Qt::ImAnchorPosition |
@@ -51,7 +51,7 @@ void QWaylandTextInputv4::zwp_text_input_v4_enter(struct ::wl_surface *surface)
m_pendingDeleteAfterText = 0;
enable();
- updateState(supportedQueries, update_state_enter);
+ updateState(supportedQueries4, update_state_enter);
}
void QWaylandTextInputv4::zwp_text_input_v4_leave(struct ::wl_surface *surface)
@@ -177,7 +177,7 @@ void QWaylandTextInputv4::zwp_text_input_v4_done(uint32_t serial)
QCoreApplication::sendEvent(focusObject, &event);
if (serial == m_currentSerial)
- updateState(supportedQueries, update_state_full);
+ updateState(supportedQueries4, update_state_full);
}
void QWaylandTextInputv4::reset()
@@ -225,7 +225,7 @@ void QWaylandTextInputv4::updateState(Qt::InputMethodQueries queries, uint32_t f
if (!surface || (surface != m_surface))
return;
- queries &= supportedQueries;
+ queries &= supportedQueries4;
bool needsCommit = false;
QInputMethodQueryEvent event(queries);