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
7QT_BEGIN_NAMESPACE
8namespace QtVirtualKeyboard {
9
10AppInputPanel::AppInputPanel(AppInputPanelPrivate &dd, QObject *parent) :
11 AbstractInputPanel(dd, parent)
12{
13}
14
15AppInputPanel::AppInputPanel(QObject *parent) :
16 AbstractInputPanel(*new AppInputPanelPrivate(), parent)
17{
18}
19
20AppInputPanel::~AppInputPanel()
21{
22}
23
24void AppInputPanel::show()
25{
26 Q_D(AppInputPanel);
27 if (!d->visible) {
28 d->visible = true;
29 }
30}
31
32void AppInputPanel::hide()
33{
34 Q_D(AppInputPanel);
35 if (d->visible) {
36 d->visible = false;
37 }
38}
39
40bool AppInputPanel::isVisible() const
41{
42 Q_D(const AppInputPanel);
43 return d->visible;
44}
45
46} // namespace QtVirtualKeyboard
47QT_END_NAMESPACE
48

source code of qtvirtualkeyboard/src/virtualkeyboard/appinputpanel.cpp