1// Copyright (C) 2021 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef VIRTUALKEYBOARDATTACHEDTYPE_P_H
5#define VIRTUALKEYBOARDATTACHEDTYPE_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QObject>
19#include <QtVirtualKeyboard/private/virtualkeyboard_p.h>
20#include <QtVirtualKeyboard/qvirtualkeyboard_global.h>
21
22QT_BEGIN_NAMESPACE
23namespace QtVirtualKeyboard {
24
25class Q_VIRTUALKEYBOARD_EXPORT VirtualKeyboardAttachedType : public QObject
26{
27 Q_OBJECT
28 Q_PROPERTY(QStringList extraDictionaries READ extraDictionaries WRITE setExtraDictionaries NOTIFY extraDictionariesChanged)
29 QML_ANONYMOUS
30 QML_ADDED_IN_VERSION(6, 1)
31
32public:
33 explicit VirtualKeyboardAttachedType(QObject *parent);
34
35 QStringList extraDictionaries() const;
36 void setExtraDictionaries(const QStringList& dictionaries);
37
38signals:
39 void extraDictionariesChanged();
40
41private:
42 QStringList _extraDictionaries;
43};
44
45} // namespace QtVirtualKeyboard
46QT_END_NAMESPACE
47
48#endif
49

source code of qtvirtualkeyboard/src/virtualkeyboard/virtualkeyboardattachedtype_p.h