Coverage Report

Created: 2026-08-14 08:24

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/qtbase/src/gui/kernel/qinputmethod_p.h
Line
Count
Source
1
// Copyright (C) 2016 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
#ifndef QINPUTMETHOD_P_H
6
#define QINPUTMETHOD_P_H
7
8
//
9
//  W A R N I N G
10
//  -------------
11
//
12
// This file is not part of the Qt API.  It exists purely as an
13
// implementation detail.  This header file may change from version to
14
// version without notice, or even be removed.
15
//
16
// We mean it.
17
//
18
19
#include <QtGui/private/qtguiglobal_p.h>
20
#include <qinputmethod.h>
21
#include <private/qobject_p.h>
22
#include <QTransform>
23
#include <qpa/qplatforminputcontext.h>
24
#include <qpa/qplatformintegration.h>
25
#include <private/qguiapplication_p.h>
26
27
QT_BEGIN_NAMESPACE
28
29
class QInputMethodPrivate : public QObjectPrivate
30
{
31
0
    Q_DECLARE_PUBLIC(QInputMethod)
Unexecuted instantiation: QInputMethodPrivate::q_func()
Unexecuted instantiation: QInputMethodPrivate::q_func() const
32
0
33
0
public:
34
0
    inline QInputMethodPrivate() : testContext(nullptr)
35
0
    {}
36
    QPlatformInputContext *platformInputContext() const
37
0
    {
38
0
        return testContext ? testContext : QGuiApplicationPrivate::platformIntegration()->inputContext();
39
0
    }
40
    static inline QInputMethodPrivate *get(QInputMethod *inputMethod)
41
0
    {
42
0
        return inputMethod->d_func();
43
0
    }
44
45
    void _q_connectFocusObject();
46
    void _q_checkFocusObject(QObject *object);
47
    static bool objectAcceptsInputMethod(QObject *object);
48
49
    QTransform inputItemTransform;
50
    QRectF inputRectangle;
51
    QPlatformInputContext *testContext;
52
};
53
54
QT_END_NAMESPACE
55
56
#endif