File: 0001_src-imports-Drop-Lomiri.Keyboard-QML-module.patch

package info (click to toggle)
lomiri-keyboard 1.0.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 133,064 kB
  • sloc: cpp: 13,755; python: 1,562; perl: 492; javascript: 399; sh: 99; xml: 96; makefile: 42
file content (433 lines) | stat: -rw-r--r-- 15,167 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
From 3467f8aea9bf6cd7942f6788476cb529317c83cc Mon Sep 17 00:00:00 2001
From: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Date: Fri, 11 Oct 2024 10:59:19 +0200
Subject: [PATCH] src/imports: Drop Lomiri.Keyboard QML module.

Signed-off-by: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
---
 src/imports/Lomiri/Keyboard/Keyboard.pro      |  29 -----
 .../Lomiri/Keyboard/inputmethodextensions.cpp | 123 ------------------
 .../Lomiri/Keyboard/inputmethodextensions.h   |  74 -----------
 src/imports/Lomiri/Keyboard/plugin.cpp        |  50 -------
 src/imports/Lomiri/Keyboard/plugin.h          |  50 -------
 src/imports/Lomiri/Keyboard/qmldir            |   2 -
 src/imports/Lomiri/Lomiri.pro                 |   7 -
 src/imports/imports.pro                       |   9 --
 src/src.pro                                   |   1 -
 9 files changed, 345 deletions(-)
 delete mode 100644 src/imports/Lomiri/Keyboard/Keyboard.pro
 delete mode 100644 src/imports/Lomiri/Keyboard/inputmethodextensions.cpp
 delete mode 100644 src/imports/Lomiri/Keyboard/inputmethodextensions.h
 delete mode 100644 src/imports/Lomiri/Keyboard/plugin.cpp
 delete mode 100644 src/imports/Lomiri/Keyboard/plugin.h
 delete mode 100644 src/imports/Lomiri/Keyboard/qmldir
 delete mode 100644 src/imports/Lomiri/Lomiri.pro
 delete mode 100644 src/imports/imports.pro

diff --git a/src/imports/Lomiri/Keyboard/Keyboard.pro b/src/imports/Lomiri/Keyboard/Keyboard.pro
deleted file mode 100644
index 39de9225..00000000
--- a/src/imports/Lomiri/Keyboard/Keyboard.pro
+++ /dev/null
@@ -1,29 +0,0 @@
-TEMPLATE = lib
-QT += qml quick gui
-CONFIG += qt plugin no_keywords
-TARGET = lomiri-keyboard-qml
-
-HEADERS += \
-    plugin.h \
-    inputmethodextensions.h \
-
-SOURCES += \
-    plugin.cpp \
-    inputmethodextensions.cpp \
-
-QMLDIR_FILE = qmldir
-
-# deployment rules for the plugin
-installPath = $$[QT_INSTALL_QML]/$$replace(uri, \\., /)Lomiri/Keyboard
-target.path = $$installPath
-
-qmldir_file.path = $$installPath
-qmldir_file.files = $$QMLDIR_FILE
-
-INSTALLS += target qmldir_file
-
-QMAKE_EXTRA_TARGETS += check
-check.target = check
-check.CONFIG = recursive
-
-
diff --git a/src/imports/Lomiri/Keyboard/inputmethodextensions.cpp b/src/imports/Lomiri/Keyboard/inputmethodextensions.cpp
deleted file mode 100644
index 1348aeb9..00000000
--- a/src/imports/Lomiri/Keyboard/inputmethodextensions.cpp
+++ /dev/null
@@ -1,123 +0,0 @@
-/*
- * This file is part of Maliit Plugins
- *
- * Copyright (C) 2014 Canonical Ltda
- *
- * Redistribution and use in source and binary forms, with or without modification,
- * are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this list
- * of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice, this list
- * of conditions and the following disclaimer in the documentation and/or other materials
- * provided with the distribution.
- * Neither the name of Nokia Corporation nor the names of its contributors may be
- * used to endorse or promote products derived from this software without specific
- * prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
- * THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- */
-
-#include "inputmethodextensions.h"
-
-#include <QtCore>
-#include <QtGui>
-
-namespace Lomiri {
-namespace Keyboard {
-
-/*!
-    \qmltype InputMethod
-    \inqmlmodule Lomiri.Keyboard 0.1
-    \brief The InputMethod is a helper class used to attach properties used by Lomiri Keyboard into input fields
-
-    Example:
-    \qml
-    Item {
-        TextField {
-            id: field
-            InputMethod.extensions:  {
-                 'enterKeyText': 'My Enter',
-                 'enterKeyEnabled': true,
-                 'enterKeyHighlighted': true,
-            }
-        }
-    }
-    \endqml
-*/
-
-InputMethodExtension::InputMethodExtension(QObject *parent)
-    : QObject(parent),
-      m_inputText(0)
-{
-    m_inputText = findInput(parent);
-}
-
-/*!
-    Allow to change the default visual of the action Key, the value is a dictonary,
-    and the valid keys for the dictionary are:
-    \list
-    \li - enterKeyText (string) - The text to be displayed in the "Enter" key of the virtual keyboard
-    \li - enterKeyEnabled (boolean) - If the "Enter" key of the virtual keyboard should be enabled or not
-    \li - enterKeyHighlighted (boolean) - If the "Enter" key of the virtual keyboard should be highlighted or not
-    \endlist
-
-    \qmlproperty var extensions
-*/
-QVariantMap InputMethodExtension::inputMethodExtensions() const
-{
-    return m_extensions;
-}
-
-void InputMethodExtension::setInputMethodExtensions(const QVariantMap &map)
-{
-    if (m_extensions != map) {
-        m_extensions = map;
-        if (m_inputText) {
-            m_inputText->setProperty("__inputMethodExtensions", m_extensions);
-            qApp->inputMethod()->update(Qt::ImPlatformData);
-        }
-        Q_EMIT inputMethodExtensionsChanged();
-    }
-}
-
-QObject *InputMethodExtension::findInput(QObject *parent)
-{
-    static QStringList inputClasses;
-    if (inputClasses.isEmpty()) {
-        inputClasses << "QQuickTextInput"
-                     << "QQuickTextEdit";
-    }
-    Q_FOREACH(QObject *c, parent->children()) {
-        if (inputClasses.contains(c->metaObject()->className())) {
-            return c;
-        }
-        QObject *cc = findInput(c);
-        if (cc) {
-            return cc;
-        }
-    }
-    return 0;
-}
-
-InputMethod::InputMethod(QObject *parent)
-    : QObject(parent)
-{
-}
-
-InputMethodExtension *InputMethod::qmlAttachedProperties(QObject *obj)
-{
-    return new InputMethodExtension(obj);
-}
-
-} // namespace Lomiri
-} // namespace Keyboard
diff --git a/src/imports/Lomiri/Keyboard/inputmethodextensions.h b/src/imports/Lomiri/Keyboard/inputmethodextensions.h
deleted file mode 100644
index 670b9dba..00000000
--- a/src/imports/Lomiri/Keyboard/inputmethodextensions.h
+++ /dev/null
@@ -1,74 +0,0 @@
-/*
- * This file is part of Maliit Plugins
- *
- * Copyright (C) 2014 Canonical Ltda
- *
- * Redistribution and use in source and binary forms, with or without modification,
- * are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this list
- * of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice, this list
- * of conditions and the following disclaimer in the documentation and/or other materials
- * provided with the distribution.
- * Neither the name of Nokia Corporation nor the names of its contributors may be
- * used to endorse or promote products derived from this software without specific
- * prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
- * THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- */
-
-#ifndef LOMIRI_KEYBOARD_EXTENSION_H
-#define LOMIRI_KEYBOARD_EXTENSION_H
-
-#include <QtCore>
-#include <QtQuick>
-
-namespace Lomiri {
-namespace Keyboard {
-
-class InputMethodExtension : public QObject
-{
-    Q_OBJECT
-    Q_PROPERTY(QVariantMap extensions READ inputMethodExtensions WRITE setInputMethodExtensions NOTIFY inputMethodExtensionsChanged)
-public:
-    InputMethodExtension(QObject *parent = 0);
-
-    QVariantMap inputMethodExtensions() const;
-    void setInputMethodExtensions(const QVariantMap &map);
-
-Q_SIGNALS:
-    void inputMethodExtensionsChanged();
-
-private:
-    QVariantMap m_extensions;
-    QObject *m_inputText;
-
-    QObject *findInput(QObject *parent);
-};
-
-class InputMethod : public QObject
-{
-    Q_OBJECT
-
-public:
-    InputMethod(QObject *parent = 0);
-
-    static InputMethodExtension *qmlAttachedProperties(QObject *obj);
-};
-
-} // namespace Lomiri
-} // namespace Keyboard
-
-QML_DECLARE_TYPEINFO(Lomiri::Keyboard::InputMethod, QML_HAS_ATTACHED_PROPERTIES)
-
-#endif
diff --git a/src/imports/Lomiri/Keyboard/plugin.cpp b/src/imports/Lomiri/Keyboard/plugin.cpp
deleted file mode 100644
index 6f4658b8..00000000
--- a/src/imports/Lomiri/Keyboard/plugin.cpp
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * This file is part of Maliit Plugins
- *
- * Copyright (C) 2014 Canonical Ltda
- *
- * Redistribution and use in source and binary forms, with or without modification,
- * are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this list
- * of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice, this list
- * of conditions and the following disclaimer in the documentation and/or other materials
- * provided with the distribution.
- * Neither the name of Nokia Corporation nor the names of its contributors may be
- * used to endorse or promote products derived from this software without specific
- * prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
- * THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- */
-
-#include "plugin.h"
-#include "inputmethodextensions.h"
-
-#include <QQmlEngine>
-
-namespace Lomiri {
-namespace Keyboard {
-
-void InputMethodExtensionPlugin::registerTypes(const char *uri)
-{
-    // @uri Lomiri.Keyboard
-#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
-    qmlRegisterType<InputMethodExtension>();
-#else
-    qmlRegisterAnonymousType<InputMethodExtension>(uri, 0);
-#endif
-    qmlRegisterType<InputMethod>(uri, 0, 1, "InputMethod");
-}
-
-} // namespace Lomiri
-} // namespace Keyboard
diff --git a/src/imports/Lomiri/Keyboard/plugin.h b/src/imports/Lomiri/Keyboard/plugin.h
deleted file mode 100644
index 2e362c58..00000000
--- a/src/imports/Lomiri/Keyboard/plugin.h
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * This file is part of Maliit Plugins
- *
- * Copyright (C) 2014 Canonical Ltda
- *
- * Redistribution and use in source and binary forms, with or without modification,
- * are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this list
- * of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice, this list
- * of conditions and the following disclaimer in the documentation and/or other materials
- * provided with the distribution.
- * Neither the name of Nokia Corporation nor the names of its contributors may be
- * used to endorse or promote products derived from this software without specific
- * prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
- * THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- */
-
-#ifndef LOMIRI_KEYBOARD_INPUTMETHOD_EXTENSION_PLUGIN_H
-#define LOMIRI_KEYBOARD_INPUTMETHOD_EXTENSION_PLUGIN_H
-
-#include <QQmlExtensionPlugin>
-
-namespace Lomiri {
-namespace Keyboard {
-
-class InputMethodExtensionPlugin : public QQmlExtensionPlugin
-{
-    Q_OBJECT
-    Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
-
-public:
-    void registerTypes(const char *uri);
-};
-
-} // namespace Lomiri
-} // namespace Keyboard
-
-#endif //LOMIRI_KEYBOARD_INPUTMETHOD_EXTENSION_PLUGIN_H
diff --git a/src/imports/Lomiri/Keyboard/qmldir b/src/imports/Lomiri/Keyboard/qmldir
deleted file mode 100644
index 299fcc1e..00000000
--- a/src/imports/Lomiri/Keyboard/qmldir
+++ /dev/null
@@ -1,2 +0,0 @@
-module Lomiri.Keyboard
-plugin lomiri-keyboard-qml
diff --git a/src/imports/Lomiri/Lomiri.pro b/src/imports/Lomiri/Lomiri.pro
deleted file mode 100644
index a154194b..00000000
--- a/src/imports/Lomiri/Lomiri.pro
+++ /dev/null
@@ -1,7 +0,0 @@
-CONFIG += ordered 
-TEMPLATE = subdirs
-SUBDIRS = Keyboard
-
-QMAKE_EXTRA_TARGETS += check
-check.target = check
-check.CONFIG = recursive
diff --git a/src/imports/imports.pro b/src/imports/imports.pro
deleted file mode 100644
index 8e4c6a77..00000000
--- a/src/imports/imports.pro
+++ /dev/null
@@ -1,9 +0,0 @@
-CONFIG += ordered 
-TEMPLATE = subdirs
-SUBDIRS = Lomiri
-
-
-
-QMAKE_EXTRA_TARGETS += check
-check.target = check
-check.CONFIG = recursive
diff --git a/src/src.pro b/src/src.pro
index 2ea2460c..84dc44cd 100644
--- a/src/src.pro
+++ b/src/src.pro
@@ -4,7 +4,6 @@ SUBDIRS = \
     lib \
     view \
     plugin \
-    imports \
 #    benchmark \
 
 
-- 
2.45.2