Qt 4.8
Static Public Functions | Private Functions | Properties | List of all members
QDeclarativeStyledText Class Reference

#include <qdeclarativestyledtext_p.h>

Static Public Functions

static void parse (const QString &string, QTextLayout &layout)
 

Private Functions

 QDeclarativeStyledText (const QString &string, QTextLayout &layout)
 
 ~QDeclarativeStyledText ()
 

Properties

QDeclarativeStyledTextPrivated
 

Detailed Description

Definition at line 55 of file qdeclarativestyledtext_p.h.

Constructors and Destructors

◆ QDeclarativeStyledText()

QDeclarativeStyledText::QDeclarativeStyledText ( const QString string,
QTextLayout layout 
)
private

Definition at line 102 of file qdeclarativestyledtext.cpp.

103 : d(new QDeclarativeStyledTextPrivate(string, layout))
104 {
105 }
QDeclarativeStyledTextPrivate * d

◆ ~QDeclarativeStyledText()

QDeclarativeStyledText::~QDeclarativeStyledText ( )
private

Definition at line 107 of file qdeclarativestyledtext.cpp.

108 {
109  delete d;
110 }
QDeclarativeStyledTextPrivate * d

Functions

◆ parse()

void QDeclarativeStyledText::parse ( const QString string,
QTextLayout layout 
)
static

Definition at line 112 of file qdeclarativestyledtext.cpp.

Referenced by QDeclarativeTextPrivate::updateLayout().

113 {
114  if (string.isEmpty())
115  return;
116  QDeclarativeStyledText styledText(string, layout);
117  styledText.d->parse();
118 }
static bool isEmpty(const char *str)

Properties

◆ d

QDeclarativeStyledTextPrivate* QDeclarativeStyledText::d
private

Definition at line 64 of file qdeclarativestyledtext_p.h.

Referenced by parse(), and ~QDeclarativeStyledText().


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