aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cerence/xt9/xt9common/xt9kdbarea.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/cerence/xt9/xt9common/xt9kdbarea.cpp')
-rw-r--r--src/plugins/cerence/xt9/xt9common/xt9kdbarea.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/plugins/cerence/xt9/xt9common/xt9kdbarea.cpp b/src/plugins/cerence/xt9/xt9common/xt9kdbarea.cpp
new file mode 100644
index 00000000..a0157c4c
--- /dev/null
+++ b/src/plugins/cerence/xt9/xt9common/xt9kdbarea.cpp
@@ -0,0 +1,21 @@
+// Copyright (C) 2021 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
+
+#include "xt9kdbarea.h"
+
+QT_BEGIN_NAMESPACE
+namespace QtVirtualKeyboard {
+
+void Xt9KdbArea::serialize(QXmlStreamWriter &writer) const
+{
+ writer.writeStartElement(QStringLiteral("area"));
+ if (!conditionValue.isEmpty())
+ writer.writeAttribute(QStringLiteral("conditionValue"), conditionValue);
+ for (const Xt9KdbKey &key : keys) {
+ key.serialize(writer);
+ }
+ writer.writeEndElement();
+}
+
+} // namespace QtVirtualKeyboard
+QT_END_NAMESPACE