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

(43ce457cbd093fc06d99b5ac833c789ef7c893d5)

#include "qwidgettextcontrol_p.h"
#include "qwidgettextcontrol_p_p.h"
#include <qfont.h>
#include <qpainter.h>
#include <qevent.h>
#include <qdebug.h>
#include <qclipboard.h>
#include <qstyle.h>
#include <qtimer.h>
#include "private/qapplication_p.h"
#include "private/qtextdocumentlayout_p.h"
#include "private/qabstracttextdocumentlayout_p.h"
#include "qtextdocument.h"
#include "private/qtextdocument_p.h"
#include "private/qtextdocumentfragment_p.h"
#include "qtextlist.h"
#include "private/qwidgettextcontrol_p.h"
#include "qpagedpaintdevice.h"
#include "private/qpagedpaintdevice_p.h"
#include "qtextdocumentwriter.h"
#include "qstylehints.h"
#include "private/qtextcursor_p.h"
#include <qtextformat.h>
#include <qdatetime.h>
#include <qbuffer.h>
#include <qapplication.h>
#include <limits.h>
#include <qtexttable.h>
#include <qvariant.h>
#include <qurl.h>
#include <qdesktopservices.h>
#include <qinputmethod.h>
#include <qstyleoption.h>
#include <QtGui/qaccessible.h>
#include <QtCore/qmetaobject.h>
#include <algorithm>
#include "moc_qwidgettextcontrol_p.cpp"
+ Include dependency graph for qwidgettextcontrol.cpp:

Go to the source code of this file.

Classes

struct  QUnicodeControlCharacter
 

Macros

#define ACCEL_KEY(k)   QString()
 
#define NUM_CONTROL_CHARACTERS   14
 

Functions

static QTextLine currentTextLine (const QTextCursor &cursor)
 
static QRectF boundingRectOfFloatsInSelection (const QTextCursor &cursor)
 
void setActionIcon (QAction *action, const QString &name)
 

Variables

const struct QUnicodeControlCharacter qt_controlCharacters [NUM_CONTROL_CHARACTERS]
 

Macro Definition Documentation

◆ ACCEL_KEY

#define ACCEL_KEY ( k)    QString()

Definition at line 71 of file qwidgettextcontrol.cpp.

◆ NUM_CONTROL_CHARACTERS

#define NUM_CONTROL_CHARACTERS   14

Function Documentation

◆ boundingRectOfFloatsInSelection()

static QRectF boundingRectOfFloatsInSelection ( const QTextCursor & cursor)
static

Definition at line 1448 of file qwidgettextcontrol.cpp.

References cursor, frame, QTextFrameFormat::InFlow, and it.

Referenced by QWidgetTextControl::selectionRect().

+ Here is the caller graph for this function:

◆ currentTextLine()

static QTextLine currentTextLine ( const QTextCursor & cursor)
static

Definition at line 81 of file qwidgettextcontrol.cpp.

References cursor, QTextBlock::isValid(), layout, QTextBlock::layout(), and QTextBlock::position().

Referenced by QWidgetTextControlPrivate::cursorMoveKeyEvent(), QQuickTextControlPrivate::cursorMoveKeyEvent(), QWidgetTextControlPrivate::extendWordwiseSelection(), QQuickTextControlPrivate::extendWordwiseSelection(), QWidgetTextControlPrivate::mouseDoubleClickEvent(), and QQuickTextControlPrivate::mouseDoubleClickEvent().

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

◆ setActionIcon()

void setActionIcon ( QAction * action,
const QString & name )

Definition at line 2307 of file qwidgettextcontrol.cpp.

References QIcon::fromTheme(), icon, QIcon::isNull(), and QAction::setIcon().

Referenced by QLineEdit::createStandardContextMenu(), and QWidgetTextControl::createStandardContextMenu().

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

Variable Documentation

◆ qt_controlCharacters

const struct QUnicodeControlCharacter qt_controlCharacters[NUM_CONTROL_CHARACTERS]
Initial value:
= {
{ QT_TRANSLATE_NOOP("QUnicodeControlCharacterMenu", "LRM Left-to-right mark"), 0x200e },
{ QT_TRANSLATE_NOOP("QUnicodeControlCharacterMenu", "RLM Right-to-left mark"), 0x200f },
{ QT_TRANSLATE_NOOP("QUnicodeControlCharacterMenu", "ZWJ Zero width joiner"), 0x200d },
{ QT_TRANSLATE_NOOP("QUnicodeControlCharacterMenu", "ZWNJ Zero width non-joiner"), 0x200c },
{ QT_TRANSLATE_NOOP("QUnicodeControlCharacterMenu", "ZWSP Zero width space"), 0x200b },
{ QT_TRANSLATE_NOOP("QUnicodeControlCharacterMenu", "LRE Start of left-to-right embedding"), 0x202a },
{ QT_TRANSLATE_NOOP("QUnicodeControlCharacterMenu", "RLE Start of right-to-left embedding"), 0x202b },
{ QT_TRANSLATE_NOOP("QUnicodeControlCharacterMenu", "LRO Start of left-to-right override"), 0x202d },
{ QT_TRANSLATE_NOOP("QUnicodeControlCharacterMenu", "RLO Start of right-to-left override"), 0x202e },
{ QT_TRANSLATE_NOOP("QUnicodeControlCharacterMenu", "PDF Pop directional formatting"), 0x202c },
{ QT_TRANSLATE_NOOP("QUnicodeControlCharacterMenu", "LRI Left-to-right isolate"), 0x2066 },
{ QT_TRANSLATE_NOOP("QUnicodeControlCharacterMenu", "RLI Right-to-left isolate"), 0x2067 },
{ QT_TRANSLATE_NOOP("QUnicodeControlCharacterMenu", "FSI First strong isolate"), 0x2068 },
{ QT_TRANSLATE_NOOP("QUnicodeControlCharacterMenu", "PDI Pop directional isolate"), 0x2069 }
}
#define QT_TRANSLATE_NOOP(scope, x)

Referenced by QUnicodeControlCharacterMenu::QUnicodeControlCharacterMenu().