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
qwindowsinputcontext.cpp File Reference

(6866e6f2fa1cfa8f91a940936296d3ecb5317640)

#include "qwindowsinputcontext.h"
#include "qwindowscontext.h"
#include "qwindowswindow.h"
#include "qwindowsintegration.h"
#include "qwindowsmousehandler.h"
#include <QtCore/qdebug.h>
#include <QtCore/qobject.h>
#include <QtCore/qrect.h>
#include <QtCore/qtextboundaryfinder.h>
#include <QtGui/qevent.h>
#include <QtGui/qtextformat.h>
#include <QtGui/qpalette.h>
#include <QtGui/qguiapplication.h>
#include <private/qhighdpiscaling_p.h>
#include <algorithm>
+ Include dependency graph for qwindowsinputcontext.cpp:

Go to the source code of this file.

Enumerations

enum  StandardFormat { PreeditFormat , SelectionFormat }
 

Functions

static QT_BEGIN_NAMESPACE QByteArray debugComposition (int lParam)
 
static void imeNotifyCancelComposition (HWND hwnd)
 
static LCID languageIdFromLocaleId (LCID localeId)
 
static LCID currentInputLanguageId ()
 
Q_CORE_EXPORT QLocale qt_localeFromLCID (LCID id)
 
static QString getCompositionString (HIMC himc, DWORD dwIndex)
 
static void getCompositionStringConvertedRange (HIMC himc, int *selStart, int *selLength)
 
static QTextFormat standardFormat (StandardFormat format)
 
static QList< QInputMethodEvent::AttributeintermediateMarkup (int position, int compositionLength, int selStart, int selLength)
 

Enumeration Type Documentation

◆ StandardFormat

Enumerator
PreeditFormat 
SelectionFormat 

Definition at line 388 of file qwindowsinputcontext.cpp.

Function Documentation

◆ currentInputLanguageId()

static LCID currentInputLanguageId ( )
inlinestatic

Definition at line 63 of file qwindowsinputcontext.cpp.

References languageIdFromLocaleId().

+ Here is the call graph for this function:

◆ debugComposition()

static QT_BEGIN_NAMESPACE QByteArray debugComposition ( int lParam)
inlinestatic

Definition at line 26 of file qwindowsinputcontext.cpp.

References str.

Referenced by QWindowsInputContext::composition().

+ Here is the caller graph for this function:

◆ getCompositionString()

static QString getCompositionString ( HIMC himc,
DWORD dwIndex )
inlinestatic

Definition at line 359 of file qwindowsinputcontext.cpp.

References QString::fromWCharArray().

Referenced by QWindowsInputContext::composition().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getCompositionStringConvertedRange()

static void getCompositionStringConvertedRange ( HIMC himc,
int * selStart,
int * selLength )
inlinestatic

Definition at line 368 of file qwindowsinputcontext.cpp.

Referenced by QWindowsInputContext::composition().

+ Here is the caller graph for this function:

◆ imeNotifyCancelComposition()

static void imeNotifyCancelComposition ( HWND hwnd)
inlinestatic

Definition at line 47 of file qwindowsinputcontext.cpp.

References qWarning.

Referenced by QWindowsInputContext::endComposition(), and QWindowsInputContext::reset().

+ Here is the caller graph for this function:

◆ intermediateMarkup()

static QList< QInputMethodEvent::Attribute > intermediateMarkup ( int position,
int compositionLength,
int selStart,
int selLength )
inlinestatic

Definition at line 457 of file qwindowsinputcontext.cpp.

References QInputMethodEvent::Cursor, position(), PreeditFormat, SelectionFormat, standardFormat(), and QInputMethodEvent::TextFormat.

Referenced by QWindowsInputContext::composition().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ languageIdFromLocaleId()

static LCID languageIdFromLocaleId ( LCID localeId)
inlinestatic

Definition at line 58 of file qwindowsinputcontext.cpp.

Referenced by currentInputLanguageId(), and QWindowsInputContext::handleInputLanguageChanged().

+ Here is the caller graph for this function:

◆ qt_localeFromLCID()

Q_CORE_EXPORT QLocale qt_localeFromLCID ( LCID id)

Definition at line 1175 of file qlocale_win.cpp.

References QString::fromLatin1(), and getWinLocaleName().

Referenced by QWindowsInputContext::handleInputLanguageChanged().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ standardFormat()

static QTextFormat standardFormat ( StandardFormat format)
inlinestatic

Definition at line 393 of file qwindowsinputcontext.cpp.

References QTextCharFormat::DashUnderline, QGuiApplication::palette(), palette, PreeditFormat, SelectionFormat, and QTextCharFormat::setUnderlineStyle().

Referenced by intermediateMarkup().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: