Qt 4.8
Macros | Functions | Variables
qmacinputcontext_mac.cpp File Reference
#include <qconfig.h>
#include <qglobal.h>
#include <qvarlengtharray.h>
#include <qwidget.h>
#include <private/qmacinputcontext_p.h>
#include "qtextformat.h"
#include <qdebug.h>
#include <private/qapplication_p.h>
#include <private/qkeymapper_p.h>

Go to the source code of this file.

Macros

#define kCaretPosition   1
 
#define kConvertedText   4
 

Functions

static QTextFormat qt_mac_compose_format ()
 
bool qt_sendSpontaneousEvent (QObject *, QEvent *)
 

Variables

static EventTypeSpec input_events []
 
static EventHandlerRef input_proc_handler = 0
 
static EventHandlerUPP input_proc_handlerUPP = 0
 

Macro Definition Documentation

◆ kCaretPosition

#define kCaretPosition   1

◆ kConvertedText

#define kConvertedText   4

Function Documentation

◆ qt_mac_compose_format()

static QTextFormat qt_mac_compose_format ( )
static

Definition at line 113 of file qmacinputcontext_mac.cpp.

Referenced by QMacInputContext::globalEventProcessor().

114 {
115  QTextCharFormat ret;
116  ret.setFontUnderline(true);
117  return ret;
118 }
The QTextCharFormat class provides formatting information for characters in a QTextDocument.
Definition: qtextformat.h:372
void setFontUnderline(bool underline)
If underline is true, sets the text format&#39;s font to be underlined; otherwise it is displayed non-und...
Definition: qtextformat.h:432

◆ qt_sendSpontaneousEvent()

bool qt_sendSpontaneousEvent ( QObject ,
QEvent  
)

Definition at line 5779 of file qapplication.cpp.

Referenced by QMacInputContext::globalEventProcessor(), and QMacInputContext::reset().

5780 {
5782 }
EventRef event
static bool sendSpontaneousEvent(QObject *receiver, QEvent *event)

Variable Documentation

◆ input_events

EventTypeSpec input_events[]
static
Initial value:
= {
{ kEventClassTextInput, kEventTextInputUnicodeForKeyEvent },
{ kEventClassTextInput, kEventTextInputOffsetToPos },
{ kEventClassTextInput, kEventTextInputUpdateActiveInputArea }
}

Definition at line 160 of file qmacinputcontext_mac.cpp.

Referenced by QMacInputContext::initialize().

◆ input_proc_handler

EventHandlerRef input_proc_handler = 0
static

◆ input_proc_handlerUPP

EventHandlerUPP input_proc_handlerUPP = 0
static