1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef DESKTOPINPUTPANEL_P_H
5#define DESKTOPINPUTPANEL_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 <QtVirtualKeyboard/private/appinputpanel_p.h>
19
20QT_BEGIN_NAMESPACE
21
22class QWindow;
23
24namespace QtVirtualKeyboard {
25
26class DesktopInputPanelPrivate;
27
28class Q_VIRTUALKEYBOARD_EXPORT DesktopInputPanel : public AppInputPanel
29{
30 Q_OBJECT
31 Q_DECLARE_PRIVATE(DesktopInputPanel)
32public:
33 explicit DesktopInputPanel(QObject *parent = nullptr);
34 ~DesktopInputPanel();
35
36 void show() override;
37 void hide() override;
38 bool isVisible() const override;
39
40 void setInputRect(const QRect &inputRect) override;
41
42public slots:
43 void createView() override;
44 void destroyView() override;
45
46protected slots:
47 void repositionView(const QRect &rect);
48 void focusWindowChanged(QWindow *focusWindow);
49 void focusWindowVisibleChanged(bool visible);
50 void previewRectangleChanged();
51 void previewVisibleChanged();
52
53protected:
54 void updateInputRegion();
55};
56
57} // namespace QtVirtualKeyboard
58QT_END_NAMESPACE
59
60#endif // DESKTOPINPUTPANEL_P_H
61

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