1 | // Copyright (C) 2016 The Qt Company Ltd. |
---|---|
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
3 | |
4 | #include <QtVirtualKeyboard/private/appinputpanel_p.h> |
5 | #include <QtVirtualKeyboard/private/appinputpanel_p_p.h> |
6 | |
7 | QT_BEGIN_NAMESPACE |
8 | namespace QtVirtualKeyboard { |
9 | |
10 | AppInputPanel::AppInputPanel(AppInputPanelPrivate &dd, QObject *parent) : |
11 | AbstractInputPanel(dd, parent) |
12 | { |
13 | } |
14 | |
15 | AppInputPanel::AppInputPanel(QObject *parent) : |
16 | AbstractInputPanel(*new AppInputPanelPrivate(), parent) |
17 | { |
18 | } |
19 | |
20 | AppInputPanel::~AppInputPanel() |
21 | { |
22 | } |
23 | |
24 | void AppInputPanel::show() |
25 | { |
26 | Q_D(AppInputPanel); |
27 | if (!d->visible) { |
28 | d->visible = true; |
29 | } |
30 | } |
31 | |
32 | void AppInputPanel::hide() |
33 | { |
34 | Q_D(AppInputPanel); |
35 | if (d->visible) { |
36 | d->visible = false; |
37 | } |
38 | } |
39 | |
40 | bool AppInputPanel::isVisible() const |
41 | { |
42 | Q_D(const AppInputPanel); |
43 | return d->visible; |
44 | } |
45 | |
46 | } // namespace QtVirtualKeyboard |
47 | QT_END_NAMESPACE |
48 |