| 1 | // Copyright (C) 2021 The Qt Company Ltd. |
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
| 3 | |
| 4 | #ifndef INPUTSELECTIONHANDLE_P_H |
| 5 | #define INPUTSELECTIONHANDLE_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 <QtGui/QRasterWindow> |
| 19 | #include <QtVirtualKeyboard/qvirtualkeyboard_global.h> |
| 20 | #include <QtCore/private/qglobal_p.h> |
| 21 | |
| 22 | QT_BEGIN_NAMESPACE |
| 23 | |
| 24 | class QWindow; |
| 25 | |
| 26 | namespace QtVirtualKeyboard { |
| 27 | |
| 28 | class DesktopInputSelectionControl; |
| 29 | |
| 30 | class Q_VIRTUALKEYBOARD_EXPORT InputSelectionHandle : public QRasterWindow |
| 31 | { |
| 32 | Q_OBJECT |
| 33 | |
| 34 | public: |
| 35 | InputSelectionHandle(DesktopInputSelectionControl *control, QWindow *eventWindow); |
| 36 | void applyImage(const QSize &windowSize); |
| 37 | |
| 38 | protected: |
| 39 | void paintEvent(QPaintEvent *pe) override; |
| 40 | bool event(QEvent *event) override; |
| 41 | |
| 42 | private: |
| 43 | DesktopInputSelectionControl *m_control; |
| 44 | QWindow *m_eventWindow; |
| 45 | }; |
| 46 | |
| 47 | } // namespace QtVirtualKeyboard |
| 48 | QT_END_NAMESPACE |
| 49 | |
| 50 | #endif // INPUTSELECTIONHANDLE_P_H |
| 51 | |