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
QTextFormatPrivate Class Reference
+ Inheritance diagram for QTextFormatPrivate:
+ Collaboration diagram for QTextFormatPrivate:

Public Member Functions

 QTextFormatPrivate ()
 
size_t hash () const
 
bool operator== (const QTextFormatPrivate &rhs) const
 
void insertProperty (qint32 key, const QVariant &value)
 
void clearProperty (qint32 key)
 
int propertyIndex (qint32 key) const
 
QVariant property (qint32 key) const
 
bool hasProperty (qint32 key) const
 
void resolveFont (const QFont &defaultFont)
 
const QFontfont () const
 
- Public Member Functions inherited from QSharedData
 QSharedData () noexcept
 Constructs a QSharedData object with a reference count of 0.
 
 QSharedData (const QSharedData &) noexcept
 Constructs a QSharedData object with reference count 0.
 
QSharedDataoperator= (const QSharedData &)=delete
 
 ~QSharedData ()=default
 

Public Attributes

QList< Propertyprops
 
- Public Attributes inherited from QSharedData
QAtomicInt ref
 

Friends

QDataStreamoperator<< (QDataStream &, const QTextFormat &)
 
QDataStreamoperator>> (QDataStream &, QTextFormat &)
 

Detailed Description

Definition at line 146 of file qtextformat.cpp.

Constructor & Destructor Documentation

◆ QTextFormatPrivate()

QTextFormatPrivate::QTextFormatPrivate ( )
inline

Definition at line 149 of file qtextformat.cpp.

Member Function Documentation

◆ clearProperty()

void QTextFormatPrivate::clearProperty ( qint32 key)
inline

Definition at line 179 of file qtextformat.cpp.

References QTextFormat::FirstFontProperty, i, and QTextFormat::LastFontProperty.

Referenced by QTextFormat::clearProperty(), and QTextFormat::setObjectIndex().

+ Here is the caller graph for this function:

◆ font()

const QFont & QTextFormatPrivate::font ( ) const
inline

Definition at line 212 of file qtextformat.cpp.

◆ hash()

size_t QTextFormatPrivate::hash ( ) const
inline

Definition at line 151 of file qtextformat.cpp.

Referenced by operator==().

+ Here is the caller graph for this function:

◆ hasProperty()

bool QTextFormatPrivate::hasProperty ( qint32 key) const
inline

Definition at line 207 of file qtextformat.cpp.

References propertyIndex().

Referenced by QTextFormat::hasProperty(), and resolveFont().

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

◆ insertProperty()

void QTextFormatPrivate::insertProperty ( qint32 key,
const QVariant & value )
inline

Definition at line 165 of file qtextformat.cpp.

References QTextFormat::FirstFontProperty, i, and QTextFormat::LastFontProperty.

Referenced by QTextFormat::setObjectIndex(), QTextFormat::setProperty(), and QTextFormat::setProperty().

+ Here is the caller graph for this function:

◆ operator==()

bool QTextFormatPrivate::operator== ( const QTextFormatPrivate & rhs) const
inline

Definition at line 158 of file qtextformat.cpp.

References hash(), and props.

+ Here is the call graph for this function:

◆ property()

QVariant QTextFormatPrivate::property ( qint32 key) const
inline

Definition at line 199 of file qtextformat.cpp.

References propertyIndex().

Referenced by QTextFormat::boolProperty(), QTextFormat::brushProperty(), QTextFormat::colorProperty(), QTextFormat::doubleProperty(), QTextFormat::intProperty(), QTextFormat::lengthProperty(), QTextFormat::lengthVectorProperty(), QTextFormat::objectIndex(), QTextFormat::penProperty(), QTextFormat::property(), and QTextFormat::stringProperty().

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

◆ propertyIndex()

int QTextFormatPrivate::propertyIndex ( qint32 key) const
inline

Definition at line 191 of file qtextformat.cpp.

References i.

Referenced by hasProperty(), and property().

+ Here is the caller graph for this function:

◆ resolveFont()

void QTextFormatPrivate::resolveFont ( const QFont & defaultFont)

Definition at line 288 of file qtextformat.cpp.

References QTextFormat::FontSizeAdjustment, hasProperty(), QFont::pixelSize(), QFont::pointSize(), QFont::pointSizeF(), property, qBound(), qRound(), QFont::resolve(), QFont::resolveMask(), QFont::setPixelSize(), QFont::setPointSizeF(), QFont::setResolveMask(), and toInt().

Referenced by QTextFormatCollection::indexForFormat().

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

Friends And Related Symbol Documentation

◆ operator<<

QDataStream & operator<< ( QDataStream & stream,
const QTextFormat & fmt )
friend

Definition at line 404 of file qtextformat.cpp.

◆ operator>>

QDataStream & operator>> ( QDataStream & stream,
QTextFormat & fmt )
friend

Definition at line 437 of file qtextformat.cpp.

Member Data Documentation

◆ props

QList<Property> QTextFormatPrivate::props

The documentation for this class was generated from the following file: