Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qcocoainputcontext.h
Go to the documentation of this file.
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
4#ifndef QCOCOAINPUTCONTEXT_H
5#define QCOCOAINPUTCONTEXT_H
6
7#include <qpa/qplatforminputcontext.h>
8#include <QtCore/QLocale>
9#include <QtCore/QPointer>
10
11#include <QtCore/private/qcore_mac_p.h>
12
14
16{
18public:
19 explicit QCocoaInputContext();
21
22 bool isValid() const override { return true; }
23
24 void setFocusObject(QObject *object) override;
25
26 void commit() override;
27 void reset() override;
28
29 QLocale locale() const override { return m_locale; }
30 void updateLocale();
31
32private:
33 QPointer<QWindow> m_focusWindow;
34 QLocale m_locale;
35 QMacNotificationObserver m_inputSourceObserver;
36};
37
39
40#endif // QCOCOAINPUTCONTEXT_H
Cocoa Input context implementation.
void reset() override
Cancels a composition.
QLocale locale() const override
void setFocusObject(QObject *object) override
This virtual method gets called to notify updated focus to object.
bool isValid() const override
Returns input context validity.
void commit() override
Commits the current composition if there is one, by "unmarking" the text in the edit buffer,...
\inmodule QtCore
Definition qobject.h:103
The QPlatformInputContext class abstracts the input method dependent data and composing state.
Combined button and popup list for selecting options.
#define Q_OBJECT