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

(27a3d3ac9001eb467829397f4ad02355a8d51b2a)

#include "qtextcursor.h"
#include "qtextcursor_p.h"
#include "qglobal.h"
#include "qtextdocumentfragment.h"
#include "qtextdocumentfragment_p.h"
#include "qtextlist.h"
#include "qtexttable.h"
#include "qtexttable_p.h"
#include "qtextengine_p.h"
#include "qabstracttextdocumentlayout.h"
#include <qtextlayout.h>
#include <qdebug.h>
+ Include dependency graph for qtextcursor.cpp:

Go to the source code of this file.

Enumerations

enum  { AdjustPrev = 0x1 , AdjustUp = 0x3 , AdjustNext = 0x4 , AdjustDown = 0x12 }
 

Functions

static void setBlockCharFormatHelper (QTextDocumentPrivate *priv, int pos1, int pos2, const QTextCharFormat &format, QTextDocumentPrivate::FormatChangeMode changeMode)
 
static void getText (QString &text, QTextDocumentPrivate *priv, const QString &docText, int pos, int end)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
AdjustPrev 
AdjustUp 
AdjustNext 
AdjustDown 

Definition at line 20 of file qtextcursor.cpp.

Function Documentation

◆ getText()

static void getText ( QString & text,
QTextDocumentPrivate * priv,
const QString & docText,
int pos,
int end )
static

Definition at line 1673 of file qtextcursor.cpp.

References pos, priv(), qMax(), qMin(), and text.

Referenced by QTextCursor::selectedText().

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

◆ setBlockCharFormatHelper()

static void setBlockCharFormatHelper ( QTextDocumentPrivate * priv,
int pos1,
int pos2,
const QTextCharFormat & format,
QTextDocumentPrivate::FormatChangeMode changeMode )
static

Definition at line 681 of file qtextcursor.cpp.

References it, and priv().

Referenced by QTextCursorPrivate::setBlockCharFormat().

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