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;
23class QScreen;
24
25namespace QtVirtualKeyboard {
26
27class DesktopInputPanelPrivate;
28
29class Q_VIRTUALKEYBOARD_EXPORT DesktopInputPanel : public AppInputPanel
30{
31 Q_OBJECT
32 Q_DECLARE_PRIVATE(DesktopInputPanel)
33public:
34 explicit DesktopInputPanel(QObject *parent = nullptr);
35 ~DesktopInputPanel();
36
37 void show() override;
38 void hide() override;
39 bool isVisible() const override;
40
41 void setInputRect(const QRect &inputRect) override;
42
43public slots:
44 void createView() override;
45 void destroyView() override;
46
47protected slots:
48 void repositionView(const QRect &rect);
49 void focusWindowChanged(QWindow *focusWindow);
50 void focusWindowVisibleChanged(bool visible);
51 void previewRectangleChanged();
52 void previewVisibleChanged();
53 void screenChanged(QScreen *);
54
55protected:
56 void updateInputRegion();
57};
58
59} // namespace QtVirtualKeyboard
60QT_END_NAMESPACE
61
62#endif // DESKTOPINPUTPANEL_P_H
63

Provided by KDAB

Privacy Policy
Start learning QML with our Intro Training
Find out more

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