blob: 78f7fed75fd38551c9a3c3661019bd147880e5bf (
plain)
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
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <QtVirtualKeyboard/private/appinputpanel_p.h>
#include <QtVirtualKeyboard/private/appinputpanel_p_p.h>
QT_BEGIN_NAMESPACE
namespace QtVirtualKeyboard {
AppInputPanel::AppInputPanel(AppInputPanelPrivate &dd, QObject *parent) :
AbstractInputPanel(dd, parent)
{
}
AppInputPanel::AppInputPanel(QObject *parent) :
AbstractInputPanel(*new AppInputPanelPrivate(), parent)
{
}
AppInputPanel::~AppInputPanel()
{
}
void AppInputPanel::show()
{
Q_D(AppInputPanel);
if (!d->visible) {
d->visible = true;
}
}
void AppInputPanel::hide()
{
Q_D(AppInputPanel);
if (d->visible) {
d->visible = false;
}
}
bool AppInputPanel::isVisible() const
{
Q_D(const AppInputPanel);
return d->visible;
}
} // namespace QtVirtualKeyboard
QT_END_NAMESPACE
|