Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qtextcursor.cpp File Reference
#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 QString::constData(), pos, priv(), qMax(), qMin(), QFragment< N >::size_array, QTextFragmentData::stringPosition, 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: