Qt 4.8
Public Functions | Static Public Functions | Public Variables | Static Public Variables | List of all members
QDeclarativeTextPrivate Class Reference

#include <qdeclarativetext_p_p.h>

Inheritance diagram for QDeclarativeTextPrivate:
QDeclarativeImplicitSizeItemPrivate QDeclarativeItemPrivate QGraphicsItemPrivate

Public Functions

void checkImageCache ()
 Tests if the image cache is dirty, and repaints it if it is. More...
 
bool determineHorizontalAlignment ()
 
void drawTextLayout (QPainter *p, const QPointF &pos, bool drawStyle)
 Paints the QDeclarativeTextPrivate::layout QTextLayout into painter at pos. More...
 
void ensureDoc ()
 Ensures the QDeclarativeTextPrivate::doc variable is set to a valid text document. More...
 
virtual qreal implicitWidth () const
 
void invalidateImageCache ()
 Mark the image cache as dirty. More...
 
void mirrorChange ()
 
 QDeclarativeTextPrivate ()
 
bool setHAlign (QDeclarativeText::HAlignment, bool forceAlign=false)
 
QRect setupTextLayout ()
 Lays out the QDeclarativeTextPrivate::layout QTextLayout in the constraints of the QDeclarativeText. More...
 
QTextDocumenttextDocument ()
 
QPixmap textDocumentImage (bool drawStyle)
 Returns a painted version of the QDeclarativeTextPrivate::doc QTextDocument. More...
 
QPixmap textLayoutImage (bool drawStyle)
 Returns a painted version of the QDeclarativeTextPrivate::layout QTextLayout. More...
 
void updateLayout ()
 
void updateSize ()
 
 ~QDeclarativeTextPrivate ()
 
- Public Functions inherited from QDeclarativeImplicitSizeItemPrivate
virtual void implicitHeightChanged ()
 
virtual void implicitWidthChanged ()
 
 QDeclarativeImplicitSizeItemPrivate ()
 
- Public Functions inherited from QDeclarativeItemPrivate
QDeclarativeStateGroup_states ()
 
void addItemChangeListener (QDeclarativeItemChangeListener *listener, ChangeTypes types)
 
AnchorLinesanchorLines () const
 
QDeclarativeAnchorsanchors ()
 
QDeclarativeAnchorLine baseline () const
 
QDeclarativeAnchorLine bottom () const
 
QPointF computeTransformOrigin () const
 
QDeclarativeListProperty< QObjectdata ()
 
virtual void focusChanged (bool)
 
virtual void focusScopeItemChange (bool isSubFocusItem)
 Subclasses can reimplement this function to be notified when an item becomes a focusScopeItem (or is no longer a focusScopeItem). More...
 
qreal height () const
 
QDeclarativeAnchorLine horizontalCenter () const
 
virtual qreal implicitHeight () const
 
void init (QDeclarativeItem *parent)
 
bool isMirrored () const
 
QDeclarativeAnchorLine left () const
 
 QDeclarativeItemPrivate ()
 
void removeItemChangeListener (QDeclarativeItemChangeListener *, ChangeTypes types)
 
void resetHeight ()
 
void resetWidth ()
 
void resolveLayoutMirror ()
 
QDeclarativeListProperty< QObjectresources ()
 
QDeclarativeAnchorLine right () const
 
void setHeight (qreal)
 
void setImplicitLayoutMirror (bool mirror, bool inherit)
 
void setLayoutMirror (bool mirror)
 
virtual void setPosHelper (const QPointF &pos)
 Sets the position pos. More...
 
void setState (const QString &)
 
void setWidth (qreal)
 
virtual void siblingOrderChange ()
 Subclasses can reimplement this function to be notified when its siblingIndex order is changed. More...
 
QString state () const
 
QDeclarativeListProperty< QDeclarativeStatestates ()
 
QDeclarativeAnchorLine top () const
 
virtual void transformChanged ()
 
QDeclarativeListProperty< QDeclarativeTransitiontransitions ()
 
QDeclarativeAnchorLine verticalCenter () const
 
qreal width () const
 
- Public Functions inherited from QGraphicsItemPrivate
void addChild (QGraphicsItem *child)
 QGraphicsScenePrivate::registerTopLevelItem(). More...
 
void appendGraphicsTransform (QGraphicsTransform *t)
 
qreal calcEffectiveOpacity () const
 
void childrenBoundingRectHelper (QTransform *x, QRectF *rect, QGraphicsItem *topMostEffectItem)
 Returns the bounding rect of this item's children (excluding itself). More...
 
bool childrenClippedToShape () const
 
bool childrenCombineOpacity () const
 
QDeclarativeListProperty< QGraphicsObjectchildrenList ()
 Returns a list of this item's children. More...
 
void clearFocusHelper (bool giveFocusToParent)
 
void clearSubFocus (QGraphicsItem *rootItem=0, QGraphicsItem *stopItem=0)
 
qreal combineOpacityFromParent (qreal parentOpacity) const
 
void combineTransformFromParent (QTransform *x, const QTransform *viewTransform=0) const
 Combines this item's position and transform onto transform. More...
 
void combineTransformToParent (QTransform *x, const QTransform *viewTransform=0) const
 Combines this item's position and transform onto transform. More...
 
int depth () const
 
bool discardUpdateRequest (bool ignoreVisibleBit=false, bool ignoreDirtyBit=false, bool ignoreOpacity=false) const
 Returns true if we can discard an update request; otherwise false. More...
 
QRectF effectiveBoundingRect (QGraphicsItem *topMostEffectItem=0) const
 Returns the effective bounding rect of the item. More...
 
QRectF effectiveBoundingRect (const QRectF &rect) const
 Returns the effective bounding rect of the given item space rect. More...
 
qreal effectiveOpacity () const
 
void ensureSceneTransform ()
 
void ensureSceneTransformRecursive (QGraphicsItem **topMostDirtyItem)
 
void ensureSequentialSiblingIndex ()
 Ensures that the list of children is sorted by insertion order, and that the siblingIndexes are packed (no gaps), and start at 0. More...
 
void ensureSortedChildren ()
 
QVariant extra (Extra type) const
 
QGraphicsItemCacheextraItemCache () const
 
QPointF genericMapFromScene (const QPointF &pos, const QWidget *viewport) const
 Maps the point pos from scene to item coordinates. More...
 
bool hasTranslateOnlySceneTransform ()
 
void initStyleOption (QStyleOptionGraphicsItem *option, const QTransform &worldTransform, const QRegion &exposedRegion, bool allItems=false) const
 
virtual QVariant inputMethodQueryHelper (Qt::InputMethodQuery query) const
 This helper function helped us add input method query support in Qt 4. More...
 
void invalidateChildGraphicsEffectsRecursively (InvalidateReason reason)
 
void invalidateChildrenSceneTransform ()
 
void invalidateDepthRecursively ()
 
void invalidateParentGraphicsEffectsRecursively ()
 
bool isFullyTransparent () const
 
bool isInvisible () const
 
bool isOpacityNull () const
 
virtual bool isProxyWidget () const
 
bool itemIsUntransformable () const
 
void markParentDirty (bool updateBoundingRect=false)
 
QGraphicsItemCachemaybeExtraItemCache () const
 
void prependGraphicsTransform (QGraphicsTransform *t)
 
 QGraphicsItemPrivate ()
 
void remapItemPos (QEvent *event, QGraphicsItem *item)
 Maps any item pos properties of event to item's coordinate system. More...
 
void removeChild (QGraphicsItem *child)
 QGraphicsScenePrivate::unregisterTopLevelItem(). More...
 
void removeExtraItemCache ()
 
void resetFocusProxy ()
 Sets the focusProxy pointer to 0 for all items that have this item as their focusProxy. More...
 
void resolveDepth ()
 Resolves the stacking depth of this object and all its ancestors. More...
 
virtual void resolveFont (uint inheritedMask)
 
virtual void resolvePalette (uint inheritedMask)
 
QRectF sceneEffectiveBoundingRect () const
 Returns the effective bounding rect of this item in scene coordinates, by combining sceneTransform() with boundingRect(), taking into account the effect that the item might have. More...
 
void sendScenePosChange ()
 
void setEnabledHelper (bool newEnabled, bool explicitly, bool update=true)
 Sets this item's visibility to newEnabled. More...
 
void setExtra (Extra type, const QVariant &value)
 
void setFocusHelper (Qt::FocusReason focusReason, bool climb, bool focusFromHide)
 
void setIsMemberOfGroup (bool enabled)
 Propagates item group membership. More...
 
void setParentItemHelper (QGraphicsItem *parent, const QVariant *newParentVariant, const QVariant *thisPointerVariant)
 Make sure not to trigger any pure virtual function calls (e. More...
 
void setSubFocus (QGraphicsItem *rootItem=0, QGraphicsItem *stopItem=0)
 
void setTransformHelper (const QTransform &transform)
 Sets the transform transform. More...
 
void setVisibleHelper (bool newVisible, bool explicitly, bool update=true)
 Sets this item's visibility to newVisible. More...
 
virtual void subFocusItemChange ()
 Subclasses can reimplement this function to be notified when subFocusItem changes. More...
 
QTransform transformToParent () const
 
void unsetExtra (Extra type)
 
void updateAncestorFlag (QGraphicsItem::GraphicsItemFlag childFlag, AncestorFlag flag=NoFlag, bool enabled=false, bool root=true)
 Propagates the ancestor flag flag with value enabled to all this item's children. More...
 
void updateAncestorFlags ()
 
void updateChildWithGraphicsEffectFlagRecursively ()
 
void updatePaintedViewBoundingRects (bool updateChildren)
 
virtual void updateSceneTransformFromParent ()
 
virtual ~QGraphicsItemPrivate ()
 

Static Public Functions

static QPixmap drawOutline (const QPixmap &source, const QPixmap &styleSource)
 Draw styleSource as an outline around source and return the new image. More...
 
static QPixmap drawOutline (const QPixmap &source, const QPixmap &styleSource, int yOffset)
 Draw styleSource below source at yOffset and return the new image. More...
 
static QDeclarativeTextPrivateget (QDeclarativeText *t)
 
- Static Public Functions inherited from QDeclarativeItemPrivate
static void data_append (QDeclarativeListProperty< QObject > *, QObject *)
 
static QObjectdata_at (QDeclarativeListProperty< QObject > *, int)
 
static void data_clear (QDeclarativeListProperty< QObject > *)
 
static int data_count (QDeclarativeListProperty< QObject > *)
 
static qint64 elapsed (QElapsedTimer &)
 
static QDeclarativeItemPrivateget (QDeclarativeItem *item)
 
static void parentProperty (QObject *o, void *rv, QDeclarativeNotifierEndpoint *e)
 
static void resources_append (QDeclarativeListProperty< QObject > *, QObject *)
 
static QObjectresources_at (QDeclarativeListProperty< QObject > *, int)
 
static void resources_clear (QDeclarativeListProperty< QObject > *)
 
static int resources_count (QDeclarativeListProperty< QObject > *)
 
static qint64 restart (QElapsedTimer &)
 
static void setConsistentTime (qint64 t)
 
static void start (QElapsedTimer &)
 
static void transform_append (QDeclarativeListProperty< QGraphicsTransform > *list, QGraphicsTransform *)
 
static QGraphicsTransformtransform_at (QDeclarativeListProperty< QGraphicsTransform > *list, int)
 
static void transform_clear (QDeclarativeListProperty< QGraphicsTransform > *list)
 
static int transform_count (QDeclarativeListProperty< QGraphicsTransform > *list)
 
- Static Public Functions inherited from QGraphicsItemPrivate
static void children_append (QDeclarativeListProperty< QGraphicsObject > *list, QGraphicsObject *item)
 
static QGraphicsObjectchildren_at (QDeclarativeListProperty< QGraphicsObject > *list, int)
 
static void children_clear (QDeclarativeListProperty< QGraphicsObject > *list)
 
static int children_count (QDeclarativeListProperty< QGraphicsObject > *list)
 
static const QGraphicsItemPrivateget (const QGraphicsItem *item)
 
static QGraphicsItemPrivateget (QGraphicsItem *item)
 
static bool insertionOrder (QGraphicsItem *a, QGraphicsItem *b)
 
static bool isOpacityNull (qreal opacity)
 
static bool movableAncestorIsSelected (const QGraphicsItem *item)
 

Public Variables

QString activeLink
 
bool cacheAllTextAsImage:1
 
QColor color
 
QTextDocumentWithImageResourcesdoc
 
QDeclarativeText::TextElideMode elideMode
 
QPointF elidePos
 
QFont font
 
QDeclarativeText::TextFormat format
 
QDeclarativeText::HAlignment hAlign
 
bool hAlignImplicit:1
 
QPixmap imageCache
 
bool imageCacheDirty:1
 
bool internalWidthUpdate:1
 
QRect layedOutTextRect
 
QDeclarativeTextLayout layout
 
bool layoutTextElided:1
 
int lineCount
 
qreal lineHeight
 
QDeclarativeText::LineHeightMode lineHeightMode
 
int maximumLineCount
 
int maximumLineCountValid
 
qreal naturalWidth
 
QSize paintedSize
 
bool requireImplicitWidth:1
 
bool richText:1
 
bool rightToLeftText:1
 
bool singleline:1
 
QFont sourceFont
 
QDeclarativeText::TextStyle style
 
QColor styleColor
 
QString text
 
bool truncated
 
bool updateOnComponentComplete:1
 
QDeclarativeText::VAlignment vAlign
 
QDeclarativeText::WrapMode wrapMode
 
- Public Variables inherited from QDeclarativeItemPrivate
AnchorLines_anchorLines
 
QDeclarativeAnchors_anchors
 
QDeclarativeContents_contents
 
QDeclarativeStateGroup_stateGroup
 
QDeclarativeLayoutMirroringAttachedattachedLayoutDirection
 
QDeclarativeNullableValue< qrealbaselineOffset
 
QPODVector< ChangeListener, 4 > changeListeners
 
bool componentComplete:1
 
bool doneEventPreHandler: 1
 
bool effectiveLayoutMirror:1
 
bool hadActiveFocus:1
 
bool hadFocus:1
 
bool heightValid:1
 
bool inheritedLayoutMirror:1
 
bool inheritMirrorFromItem:1
 
bool inheritMirrorFromParent:1
 
bool isMirrorImplicit:1
 
bool keepMouse:1
 
QDeclarativeItemKeyFilterkeyHandler
 
qreal mHeight
 
qreal mImplicitHeight
 
qreal mImplicitWidth
 
qreal mWidth
 
QDeclarativeItem::TransformOrigin origin:5
 
QDeclarativeNotifier parentNotifier
 
bool smooth:1
 
bool transformOriginDirty: 1
 
bool widthValid:1
 
- Public Variables inherited from QGraphicsItemPrivate
quint32 acceptDrops: 1
 
quint32 acceptedMouseButtons: 5
 
quint32 acceptedTouchBeginEvent: 1
 
quint32 acceptsHover: 1
 
quint32 acceptTouchEvents: 1
 
quint32 allChildrenDirty: 1
 
quint32 ancestorFlags: 4
 
quint32 cacheMode: 2
 
QList< QGraphicsItem * > children
 
QRectF childrenBoundingRect
 
quint32 dirty: 1
 
quint32 dirtyChildren: 1
 
quint32 dirtyChildrenBoundingRect: 1
 
quint32 dirtySceneTransform: 1
 
quint32 enabled: 1
 
quint32 explicitActivate: 1
 
quint32 explicitlyDisabled: 1
 
quint32 explicitlyHidden: 1
 
QList< ExtraStructextras
 
quint32 filtersDescendantEvents: 1
 
quint32 flags: 19
 
QGraphicsItemfocusProxy
 
QList< QGraphicsItem ** > focusProxyRefs
 
QGraphicsItemfocusScopeItem
 
quint32 fullUpdatePending: 1
 
quint32 geometryChanged: 1
 
QMap< Qt::GestureType, Qt::GestureFlags > gestureContext
 
int globalStackingOrder
 
QGraphicsEffectgraphicsEffect
 
quint32 handlesChildEvents: 1
 
quint32 hasBoundingRegionGranularity: 1
 
quint32 hasCursor: 1
 
quint32 holesInSiblingIndex: 1
 
quint32 ignoreOpacity: 1
 
quint32 ignoreVisible: 1
 
Qt::InputMethodHints imHints
 
quint32 inDestructor: 1
 
int index
 
quint32 inSetPosHelper: 1
 
quint32 isDeclarativeItem: 1
 
quint32 isMemberOfGroup: 1
 
quint32 isObject: 1
 
quint32 isWidget: 1
 
int itemDepth
 
quint32 itemDiscovered: 1
 
quint32 localCollisionHack: 1
 
quint32 mayHaveChildWithGraphicsEffect: 1
 
quint32 mouseSetsFocus: 1
 
quint32 needSortChildren: 1
 
QRectF needsRepaint
 
quint32 notifyBoundingRectChanged: 1
 
quint32 notifyInvalidated: 1
 
qreal opacity
 
quint32 padding: 21
 
QMap< QWidget *, QRectpaintedViewBoundingRects
 
quint32 paintedViewBoundingRectsNeedRepaint: 1
 
QGraphicsItem::PanelModality panelModality
 
QGraphicsItemparent
 
quint32 pendingPolish: 1
 
QPointF pos
 
QGraphicsItemq_ptr
 
QGraphicsScenescene
 
quint32 scenePosDescendants: 1
 
QTransform sceneTransform
 
quint32 sceneTransformTranslateOnly: 1
 
quint32 selected: 1
 
quint32 sendParentChangeNotification: 1
 
quint32 sequentialOrdering: 1
 
int siblingIndex
 
QGraphicsItemsubFocusItem
 
TransformDatatransformData
 
quint32 updateDueToGraphicsEffect: 1
 
quint32 visible: 1
 
quint32 wantsActive: 1
 
qreal z
 

Static Public Variables

static QString elideChar = QString(0x2026)
 
- Static Public Variables inherited from QDeclarativeItemPrivate
static qint64 consistentTime = -1
 

Additional Inherited Members

- Public Types inherited from QDeclarativeItemPrivate
enum  ChangeType {
  Geometry = 0x01, SiblingOrder = 0x02, Visibility = 0x04, Opacity = 0x08,
  Destroyed = 0x10
}
 
- Public Types inherited from QGraphicsItemPrivate
enum  AncestorFlag {
  NoFlag = 0, AncestorHandlesChildEvents = 0x1, AncestorClipsChildren = 0x2, AncestorIgnoresTransformations = 0x4,
  AncestorFiltersChildEvents = 0x8
}
 
enum  Extra {
  ExtraToolTip, ExtraCursor, ExtraCacheData, ExtraMaxDeviceCoordCacheSize,
  ExtraBoundingRegionGranularity
}
 
enum  InvalidateReason { OpacityChanged }
 

Detailed Description

Definition at line 69 of file qdeclarativetext_p_p.h.

Constructors and Destructors

◆ QDeclarativeTextPrivate()

QDeclarativeTextPrivate::QDeclarativeTextPrivate ( )

Definition at line 89 of file qdeclarativetext.cpp.

96  rightToLeftText(false), layoutTextElided(false), naturalWidth(0), doc(0)
97 {
98  cacheAllTextAsImage = enableImageCache();
101 }
unsigned int QRgb
Definition: qrgb.h:53
QDeclarativeText::TextElideMode elideMode
The QGraphicsItem class is the base class for all graphical items in a QGraphicsScene.
Definition: qgraphicsitem.h:89
QDeclarativeText::LineHeightMode lineHeightMode
QDeclarativeText::HAlignment hAlign
QDeclarativeText::TextFormat format
QTextDocumentWithImageResources * doc
QDeclarativeText::VAlignment vAlign
QDeclarativeText::WrapMode wrapMode
#define INT_MAX
QDeclarativeText::TextStyle style

◆ ~QDeclarativeTextPrivate()

QDeclarativeTextPrivate::~QDeclarativeTextPrivate ( )

Definition at line 179 of file qdeclarativetext.cpp.

180 {
181 }

Functions

◆ checkImageCache()

void QDeclarativeTextPrivate::checkImageCache ( )

Tests if the image cache is dirty, and repaints it if it is.

Definition at line 565 of file qdeclarativetext.cpp.

566 {
567  if (!imageCacheDirty)
568  return;
569 
570  if (text.isEmpty()) {
571 
572  imageCache = QPixmap();
573 
574  } else {
575 
576  QPixmap textImage;
577  QPixmap styledImage;
578 
579  if (richText) {
580  textImage = textDocumentImage(false);
582  styledImage = textDocumentImage(true); //### should use styleColor
583  } else {
584  textImage = textLayoutImage(false);
586  styledImage = textLayoutImage(true); //### should use styleColor
587  }
588 
589  switch (style) {
591  imageCache = drawOutline(textImage, styledImage);
592  break;
594  imageCache = drawOutline(textImage, styledImage, -1);
595  break;
597  imageCache = drawOutline(textImage, styledImage, 1);
598  break;
599  default:
600  imageCache = textImage;
601  break;
602  }
603 
604  }
605 
606  imageCacheDirty = false;
607 }
QPixmap textLayoutImage(bool drawStyle)
Returns a painted version of the QDeclarativeTextPrivate::layout QTextLayout.
static QPixmap drawOutline(const QPixmap &source, const QPixmap &styleSource)
Draw styleSource as an outline around source and return the new image.
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
Definition: qstring.h:704
QPixmap textDocumentImage(bool drawStyle)
Returns a painted version of the QDeclarativeTextPrivate::doc QTextDocument.
The QPixmap class is an off-screen image representation that can be used as a paint device...
Definition: qpixmap.h:71
QDeclarativeText::TextStyle style

◆ determineHorizontalAlignment()

bool QDeclarativeTextPrivate::determineHorizontalAlignment ( )

Definition at line 1176 of file qdeclarativetext.cpp.

1177 {
1179  if (hAlignImplicit && q->isComponentComplete()) {
1182  }
1183  return false;
1184 }
#define Q_Q(Class)
Definition: qglobal.h:2483
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
Definition: qstring.h:704
bool setHAlign(QDeclarativeText::HAlignment, bool forceAlign=false)
static Qt::LayoutDirection keyboardInputDirection()
Returns the current keyboard input direction.

◆ drawOutline() [1/2]

QPixmap QDeclarativeTextPrivate::drawOutline ( const QPixmap source,
const QPixmap styleSource 
)
static

Draw styleSource as an outline around source and return the new image.

Definition at line 624 of file qdeclarativetext.cpp.

625 {
626  QPixmap img = QPixmap(styleSource.width() + 2, styleSource.height() + 2);
627  img.fill(Qt::transparent);
628 
629  QPainter ppm(&img);
630 
631  QPoint pos(0, 0);
632  pos += QPoint(-1, 0);
633  ppm.drawPixmap(pos, styleSource);
634  pos += QPoint(2, 0);
635  ppm.drawPixmap(pos, styleSource);
636  pos += QPoint(-1, -1);
637  ppm.drawPixmap(pos, styleSource);
638  pos += QPoint(0, 2);
639  ppm.drawPixmap(pos, styleSource);
640 
641  pos += QPoint(0, -1);
642  ppm.drawPixmap(pos, source);
643  ppm.end();
644 
645  return img;
646 }
The QPainter class performs low-level painting on widgets and other paint devices.
Definition: qpainter.h:86
int width() const
Returns the width of the pixmap.
Definition: qpixmap.cpp:630
void fill(const QColor &fillColor=Qt::white)
Fills the pixmap with the given color.
Definition: qpixmap.cpp:1080
The QPoint class defines a point in the plane using integer precision.
Definition: qpoint.h:53
The QPixmap class is an off-screen image representation that can be used as a paint device...
Definition: qpixmap.h:71
int height() const
Returns the height of the pixmap.
Definition: qpixmap.cpp:645

◆ drawOutline() [2/2]

QPixmap QDeclarativeTextPrivate::drawOutline ( const QPixmap source,
const QPixmap styleSource,
int  yOffset 
)
static

Draw styleSource below source at yOffset and return the new image.

Definition at line 651 of file qdeclarativetext.cpp.

652 {
653  QPixmap img = QPixmap(styleSource.width() + 2, styleSource.height() + 2);
654  img.fill(Qt::transparent);
655 
656  QPainter ppm(&img);
657 
658  ppm.drawPixmap(QPoint(0, yOffset), styleSource);
659  ppm.drawPixmap(0, 0, source);
660 
661  ppm.end();
662 
663  return img;
664 }
The QPainter class performs low-level painting on widgets and other paint devices.
Definition: qpainter.h:86
int width() const
Returns the width of the pixmap.
Definition: qpixmap.cpp:630
void fill(const QColor &fillColor=Qt::white)
Fills the pixmap with the given color.
Definition: qpixmap.cpp:1080
The QPoint class defines a point in the plane using integer precision.
Definition: qpoint.h:53
The QPixmap class is an off-screen image representation that can be used as a paint device...
Definition: qpixmap.h:71
int height() const
Returns the height of the pixmap.
Definition: qpixmap.cpp:645

◆ drawTextLayout()

void QDeclarativeTextPrivate::drawTextLayout ( QPainter painter,
const QPointF pos,
bool  drawStyle 
)

Paints the QDeclarativeTextPrivate::layout QTextLayout into painter at pos.

If drawStyle is true, the style color overrides all colors in the document.

Definition at line 495 of file qdeclarativetext.cpp.

496 {
497  if (drawStyle)
498  painter->setPen(styleColor);
499  else
500  painter->setPen(color);
501  painter->setFont(font);
502  layout.draw(painter, pos);
503  if (!elidePos.isNull())
504  painter->drawText(pos + elidePos, elideChar);
505 }
void drawText(const QPointF &p, const QString &s)
Draws the given text with the currently defined text direction, beginning at the given position...
Definition: qpainter.cpp:6231
QDeclarativeTextLayout layout
void setPen(const QColor &color)
Sets the painter&#39;s pen to have style Qt::SolidLine, width 0 and the specified color.
Definition: qpainter.cpp:4047
bool isNull() const
Returns true if both the x and y coordinates are set to +0.
Definition: qpoint.h:277
void setFont(const QFont &f)
Sets the painter&#39;s font to the given font.
Definition: qpainter.cpp:4288
void draw(QPainter *, const QPointF &=QPointF())

◆ ensureDoc()

void QDeclarativeTextPrivate::ensureDoc ( )

Ensures the QDeclarativeTextPrivate::doc variable is set to a valid text document.

Definition at line 612 of file qdeclarativetext.cpp.

613 {
614  if (!doc) {
618  }
619 }
#define Q_Q(Class)
Definition: qglobal.h:2483
QTextDocumentWithImageResources * doc
void setDocumentMargin(qreal margin)

◆ get()

static QDeclarativeTextPrivate* QDeclarativeTextPrivate::get ( QDeclarativeText t)
inlinestatic

Definition at line 137 of file qdeclarativetext_p_p.h.

Referenced by QTextDocumentWithImageResources::requestFinished().

137  {
138  return t->d_func();
139  }

◆ implicitWidth()

qreal QDeclarativeTextPrivate::implicitWidth ( ) const
virtual

Reimplemented from QDeclarativeItemPrivate.

Definition at line 183 of file qdeclarativetext.cpp.

184 {
185  if (!requireImplicitWidth) {
186  // We don't calculate implicitWidth unless it is required.
187  // We need to force a size update now to ensure implicitWidth is calculated
188  QDeclarativeTextPrivate *me = const_cast<QDeclarativeTextPrivate*>(this);
189  me->requireImplicitWidth = true;
190  me->updateSize();
191  }
192  return mImplicitWidth;
193 }

◆ invalidateImageCache()

void QDeclarativeTextPrivate::invalidateImageCache ( )

Mark the image cache as dirty.

Definition at line 547 of file qdeclarativetext.cpp.

548 {
550 
551  if(cacheAllTextAsImage || style != QDeclarativeText::Normal){//If actually using the image cache
552  if (imageCacheDirty)
553  return;
554 
555  imageCacheDirty = true;
556  imageCache = QPixmap();
557  }
558  if (q->isComponentComplete())
559  q->update();
560 }
#define Q_Q(Class)
Definition: qglobal.h:2483
The QPixmap class is an off-screen image representation that can be used as a paint device...
Definition: qpixmap.h:71
QDeclarativeText::TextStyle style

◆ mirrorChange()

void QDeclarativeTextPrivate::mirrorChange ( )
virtual

Reimplemented from QDeclarativeItemPrivate.

Definition at line 1186 of file qdeclarativetext.cpp.

1187 {
1189  if (q->isComponentComplete()) {
1191  updateLayout();
1192  }
1193  }
1194 }
QDeclarativeText::HAlignment hAlign
#define Q_Q(Class)
Definition: qglobal.h:2483

◆ setHAlign()

bool QDeclarativeTextPrivate::setHAlign ( QDeclarativeText::HAlignment  alignment,
bool  forceAlign = false 
)

Definition at line 1165 of file qdeclarativetext.cpp.

1166 {
1168  if (hAlign != alignment || forceAlign) {
1169  hAlign = alignment;
1170  emit q->horizontalAlignmentChanged(hAlign);
1171  return true;
1172  }
1173  return false;
1174 }
QDeclarativeText::HAlignment hAlign
#define Q_Q(Class)
Definition: qglobal.h:2483
#define emit
Definition: qobjectdefs.h:76

◆ setupTextLayout()

QRect QDeclarativeTextPrivate::setupTextLayout ( )

Lays out the QDeclarativeTextPrivate::layout QTextLayout in the constraints of the QDeclarativeText.

Returns the size of the final text. This can be used to position the text vertically (the text is already absolutely positioned horizontally).

Definition at line 335 of file qdeclarativetext.cpp.

336 {
337  // ### text layout handling should be profiled and optimized as needed
338  // what about QStackTextEngine engine(tmp, d->font.font()); QTextLayout textLayout(&engine);
340  layout.setCacheEnabled(true);
341 
342  qreal lineWidth = 0;
343  int visibleCount = 0;
344 
345  //set manual width
346  if (q->widthValid())
347  lineWidth = q->width();
348 
349  QTextOption textOption = layout.textOption();
350  textOption.setAlignment(Qt::Alignment(q->effectiveHAlign()));
352  layout.setTextOption(textOption);
353 
354  bool elideText = false;
355  bool truncate = false;
356 
357  QFontMetrics fm(layout.font());
358  elidePos = QPointF();
359 
360  if (requireImplicitWidth && q->widthValid()) {
361  // requires an extra layout
362  QString elidedText;
363  if (layoutTextElided) {
364  // We have provided elided text to the layout, but we must calculate unelided width.
365  elidedText = layout.text();
367  }
369  forever {
370  QTextLine line = layout.createLine();
371  if (!line.isValid())
372  break;
373  }
374  layout.endLayout();
375  QRectF br;
376  for (int i = 0; i < layout.lineCount(); ++i) {
377  QTextLine line = layout.lineAt(i);
378  br = br.united(line.naturalTextRect());
379  }
380  naturalWidth = br.width();
381  if (layoutTextElided)
382  layout.setText(elidedText);
383  }
384 
385  if (maximumLineCountValid) {
387  if (!lineWidth)
388  lineWidth = INT_MAX;
389  int linesLeft = maximumLineCount;
390  int visibleTextLength = 0;
391  while (linesLeft > 0) {
392  QTextLine line = layout.createLine();
393  if (!line.isValid())
394  break;
395 
396  visibleCount++;
397  if (lineWidth)
398  line.setLineWidth(lineWidth);
399  visibleTextLength += line.textLength();
400 
401  if (--linesLeft == 0) {
402  if (visibleTextLength < text.length()) {
403  truncate = true;
404  if (elideMode==QDeclarativeText::ElideRight && q->widthValid()) {
405  qreal elideWidth = fm.width(elideChar);
406  // Need to correct for alignment
407  line.setLineWidth(lineWidth-elideWidth);
408  if (layout.text().mid(line.textStart(), line.textLength()).isRightToLeft()) {
409  line.setPosition(QPointF(line.position().x() + elideWidth, line.position().y()));
410  elidePos.setX(line.naturalTextRect().left() - elideWidth);
411  } else {
412  elidePos.setX(line.naturalTextRect().right());
413  }
414  elideText = true;
415  }
416  }
417  }
418  }
419  layout.endLayout();
420 
421  //Update truncated
422  if (truncated != truncate) {
423  truncated = truncate;
424  emit q->truncatedChanged();
425  }
426  } else {
428  forever {
429  QTextLine line = layout.createLine();
430  if (!line.isValid())
431  break;
432  visibleCount++;
433  if (lineWidth)
434  line.setLineWidth(lineWidth);
435  }
436  layout.endLayout();
437  }
438 
439  qreal height = 0;
440  QRectF br;
441  for (int i = 0; i < layout.lineCount(); ++i) {
442  QTextLine line = layout.lineAt(i);
443  // set line spacing
444  line.setPosition(QPointF(line.position().x(), height));
445  if (elideText && i == layout.lineCount()-1) {
446  elidePos.setY(height + fm.ascent());
447  br = br.united(QRectF(elidePos, QSizeF(fm.width(elideChar), fm.ascent())));
448  }
449  br = br.united(line.naturalTextRect());
451  }
452  br.setHeight(height);
453 
454  if (!q->widthValid())
455  naturalWidth = br.width();
456 
457  //Update the number of visible lines
458  if (lineCount != visibleCount) {
459  lineCount = visibleCount;
460  emit q->lineCountChanged();
461  }
462 
463  return QRect(qRound(br.x()), qRound(br.y()), qCeil(br.width()), qCeil(br.height()));
464 }
QTextOption textOption() const
Returns the current text option used to control the layout process.
void setText(const QString &string)
Sets the layout&#39;s text to the given string.
qreal y() const
Returns the y-coordinate of the rectangle&#39;s top edge.
Definition: qrect.h:667
qreal right() const
Returns the x-coordinate of the rectangle&#39;s right edge.
Definition: qrect.h:527
QDeclarativeText::TextElideMode elideMode
double qreal
Definition: qglobal.h:1193
void setHeight(qreal h)
Sets the height of the rectangle to the given height.
Definition: qrect.h:787
The QFontMetrics class provides font metrics information.
Definition: qfontmetrics.h:65
void setPosition(const QPointF &pos)
Moves the line to position pos.
int qCeil(qreal v)
Definition: qmath.h:63
int length() const
Returns the number of characters in this string.
Definition: qstring.h:696
The QPointF class defines a point in the plane using floating point precision.
Definition: qpoint.h:214
qreal left() const
Returns the x-coordinate of the rectangle&#39;s left edge.
Definition: qrect.h:525
The QTextLine class represents a line of text inside a QTextLayout.
Definition: qtextlayout.h:197
WrapMode
This enum describes how text is wrapped in a document.
Definition: qtextoption.h:102
int textLength() const
Returns the length of the text in the line.
QDeclarativeText::LineHeightMode lineHeightMode
void setLineWidth(qreal width)
Lays out the line with the given width.
The QString class provides a Unicode character string.
Definition: qstring.h:83
QFont font() const
Returns the current font that is used for the layout, or a default font if none is set...
bool isValid() const
Returns true if this text line is valid; otherwise returns false.
Definition: qtextlayout.h:201
The QSizeF class defines the size of a two-dimensional object using floating point precision...
Definition: qsize.h:202
qreal x() const
Returns the x-coordinate of this point.
Definition: qpoint.h:282
#define Q_Q(Class)
Definition: qglobal.h:2483
void setAlignment(Qt::Alignment alignment)
Sets the option&#39;s text alignment to the specified alignment.
Definition: qtextoption.h:148
QString text() const
Returns the layout&#39;s text.
The QRectF class defines a rectangle in the plane using floating point precision. ...
Definition: qrect.h:511
qreal height() const
Returns the height of the rectangle.
Definition: qrect.h:710
#define emit
Definition: qobjectdefs.h:76
qreal width() const
Returns the width of the rectangle.
Definition: qrect.h:707
QTextLine lineAt(int i) const
Returns the {i}-th line of text in this text layout.
QPointF position() const
Returns the line&#39;s position relative to the text layout&#39;s position.
QString mid(int position, int n=-1) const Q_REQUIRED_RESULT
Returns a string that contains n characters of this string, starting at the specified position index...
Definition: qstring.cpp:3706
QDeclarativeTextLayout layout
qreal x() const
Returns the x-coordinate of the rectangle&#39;s left edge.
Definition: qrect.h:664
QTextLine createLine()
Returns a new text line to be laid out if there is text to be inserted into the layout; otherwise ret...
void setTextOption(const QTextOption &option)
Sets the text option structure that controls the layout process to the given option.
QRectF united(const QRectF &other) const
Returns the bounding rectangle of this rectangle and the given rectangle.
Definition: qrect.h:828
The QRect class defines a rectangle in the plane using integer precision.
Definition: qrect.h:58
The QTextOption class provides a description of general rich text properties.
Definition: qtextoption.h:59
qreal y() const
Returns the y-coordinate of this point.
Definition: qpoint.h:287
void setWrapMode(WrapMode wrap)
Sets the option&#39;s text wrap mode to the given mode.
Definition: qtextoption.h:109
QDeclarativeText::WrapMode wrapMode
void setCacheEnabled(bool enable)
Enables caching of the complete layout information if enable is true; otherwise disables layout cachi...
void endLayout()
Ends the layout process.
#define INT_MAX
qreal height() const
Returns the line&#39;s height.
Q_DECL_CONSTEXPR int qRound(qreal d)
Definition: qglobal.h:1203
int textStart() const
Returns the start of the line from the beginning of the string passed to the QTextLayout.
int lineCount() const
Returns the number of lines in this text layout.
QRectF naturalTextRect() const
Returns the rectangle covered by the line.
#define forever
This macro is provided for convenience for writing infinite loops.
Definition: qglobal.h:2452

◆ textDocument()

QTextDocument * QDeclarativeTextPrivate::textDocument ( )

Definition at line 1196 of file qdeclarativetext.cpp.

1197 {
1198  return doc;
1199 }
QTextDocumentWithImageResources * doc

◆ textDocumentImage()

QPixmap QDeclarativeTextPrivate::textDocumentImage ( bool  drawStyle)

Returns a painted version of the QDeclarativeTextPrivate::doc QTextDocument.

If drawStyle is true, the style color overrides all colors in the document.

Definition at line 511 of file qdeclarativetext.cpp.

512 {
513  QSize size = doc->size().toSize();
514 
515  //paint text
516  QPixmap img(size);
517  img.fill(Qt::transparent);
518 #ifdef Q_WS_MAC
519  bool oldSmooth = qt_applefontsmoothing_enabled;
521 #endif
522  QPainter p(&img);
523 #ifdef Q_WS_MAC
524  qt_applefontsmoothing_enabled = oldSmooth;
525 #endif
526 
528 
529  QTextOption oldOption(doc->defaultTextOption());
530  if (drawStyle) {
532  QTextOption colorOption(doc->defaultTextOption());
534  doc->setDefaultTextOption(colorOption);
535  } else {
537  }
538  doc->documentLayout()->draw(&p, context);
539  if (drawStyle)
540  doc->setDefaultTextOption(oldOption);
541  return img;
542 }
The QPainter class performs low-level painting on widgets and other paint devices.
Definition: qpainter.h:86
Q_GUI_EXPORT bool qt_applefontsmoothing_enabled
QSize toSize() const
Returns an integer based copy of this size.
Definition: qsize.h:355
QSizeF size() const
void setFlags(Flags flags)
Sets the flags associated with the option to the given flags.
Definition: qtextoption.h:151
QPalette palette
the default color that is used for the text, when no color is specified.
void setDefaultTextOption(const QTextOption &option)
Sets the default text option.
QTextDocumentWithImageResources * doc
QAbstractTextDocumentLayout * documentLayout() const
Returns the document layout for this document.
void setColor(ColorGroup cg, ColorRole cr, const QColor &color)
Sets the color in the specified color group, used for the given color role, to the specified solid co...
Definition: qpalette.h:201
The QAbstractTextDocumentLayout::PaintContext class is a convenience class defining the parameters us...
The QTextOption class provides a description of general rich text properties.
Definition: qtextoption.h:59
The QPixmap class is an off-screen image representation that can be used as a paint device...
Definition: qpixmap.h:71
The QSize class defines the size of a two-dimensional object using integer point precision.
Definition: qsize.h:53
QTextOption defaultTextOption() const
the default text option will be set on all QTextLayout in the document.
virtual void draw(QPainter *painter, const PaintContext &context)=0
Draws the layout with the given painter using the given context.

◆ textLayoutImage()

QPixmap QDeclarativeTextPrivate::textLayoutImage ( bool  drawStyle)

Returns a painted version of the QDeclarativeTextPrivate::layout QTextLayout.

If drawStyle is true, the style color overrides all colors in the document.

Definition at line 470 of file qdeclarativetext.cpp.

471 {
472  //do layout
473  QSize size = layedOutTextRect.size();
474  //paint text
475  QPixmap img(size);
476  if (!size.isEmpty()) {
477  img.fill(Qt::transparent);
478 #ifdef Q_WS_MAC
479  bool oldSmooth = qt_applefontsmoothing_enabled;
481 #endif
482  QPainter p(&img);
483 #ifdef Q_WS_MAC
484  qt_applefontsmoothing_enabled = oldSmooth;
485 #endif
486  drawTextLayout(&p, QPointF(-layedOutTextRect.x(),0), drawStyle);
487  }
488  return img;
489 }
The QPainter class performs low-level painting on widgets and other paint devices.
Definition: qpainter.h:86
Q_GUI_EXPORT bool qt_applefontsmoothing_enabled
The QPointF class defines a point in the plane using floating point precision.
Definition: qpoint.h:214
QSize size() const
Returns the size of the rectangle.
Definition: qrect.h:309
void drawTextLayout(QPainter *p, const QPointF &pos, bool drawStyle)
Paints the QDeclarativeTextPrivate::layout QTextLayout into painter at pos.
int x() const
Returns the x-coordinate of the rectangle&#39;s left edge.
Definition: qrect.h:252
The QPixmap class is an off-screen image representation that can be used as a paint device...
Definition: qpixmap.h:71
The QSize class defines the size of a two-dimensional object using integer point precision.
Definition: qsize.h:53
bool isEmpty() const
Returns true if either of the width and height is less than or equal to 0; otherwise returns false...
Definition: qsize.h:120

◆ updateLayout()

void QDeclarativeTextPrivate::updateLayout ( )

Definition at line 195 of file qdeclarativetext.cpp.

Referenced by QTextDocumentWithImageResources::requestFinished().

196 {
198  if (!q->isComponentComplete()) {
200  return;
201  }
202 
203  layoutTextElided = false;
204  // Setup instance of QTextLayout for all cases other than richtext
205  if (!richText) {
209  QString tmp = text;
212  if (singleline && !maximumLineCountValid && elideMode != QDeclarativeText::ElideNone && q->widthValid()) {
213  QFontMetrics fm(font);
214  tmp = fm.elidedText(tmp,(Qt::TextElideMode)elideMode,q->width());
215  if (tmp != text) {
216  layoutTextElided = true;
217  if (!truncated) {
218  truncated = true;
219  emit q->truncatedChanged();
220  }
221  }
222  }
223  layout.setText(tmp);
224  } else {
225  singleline = false;
227  }
228  }
229 
230  updateSize();
231 }
QBool contains(QChar c, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Definition: qstring.h:904
void setText(const QString &string)
Sets the layout&#39;s text to the given string.
QDeclarativeText::TextElideMode elideMode
The QFontMetrics class provides font metrics information.
Definition: qfontmetrics.h:65
static void parse(const QString &string, QTextLayout &layout)
QString & replace(int i, int len, QChar after)
Definition: qstring.cpp:2005
TextElideMode
Definition: qnamespace.h:263
void setFont(const QFont &f)
Sets the layout&#39;s font to the given font.
The QString class provides a Unicode character string.
Definition: qstring.h:83
#define Q_Q(Class)
Definition: qglobal.h:2483
#define emit
Definition: qobjectdefs.h:76
QDeclarativeTextLayout layout
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
Definition: qchar.h:55

◆ updateSize()

void QDeclarativeTextPrivate::updateSize ( )

Definition at line 233 of file qdeclarativetext.cpp.

Referenced by implicitWidth().

234 {
236 
237  if (!q->isComponentComplete()) {
239  return;
240  }
241 
242  if (!requireImplicitWidth) {
243  emit q->implicitWidthChanged();
244  // if the implicitWidth is used, then updateSize() has already been called (recursively)
246  return;
247  }
248 
250 
251  QFontMetrics fm(font);
252  if (text.isEmpty()) {
253  q->setImplicitWidth(0);
254  q->setImplicitHeight(fm.height());
255  paintedSize = QSize(0, fm.height());
256  emit q->paintedSizeChanged();
257  q->update();
258  return;
259  }
260 
261  int dy = q->height();
262  QSize size(0, 0);
263 
264  //setup instance of QTextLayout for all cases other than richtext
265  if (!richText) {
266  QRect textRect = setupTextLayout();
267  if (layedOutTextRect.size() != textRect.size())
268  q->prepareGeometryChange();
269  layedOutTextRect = textRect;
270  size = textRect.size();
271  dy -= size.height();
272  } else {
273  singleline = false; // richtext can't elide or be optimized for single-line case
274  ensureDoc();
276 
277  QDeclarativeText::HAlignment horizontalAlignment = q->effectiveHAlign();
278  if (rightToLeftText) {
279  if (horizontalAlignment == QDeclarativeText::AlignLeft)
280  horizontalAlignment = QDeclarativeText::AlignRight;
281  else if (horizontalAlignment == QDeclarativeText::AlignRight)
282  horizontalAlignment = QDeclarativeText::AlignLeft;
283  }
284  QTextOption option;
285  option.setAlignment((Qt::Alignment)int(horizontalAlignment | vAlign));
287  doc->setDefaultTextOption(option);
288  if (requireImplicitWidth && q->widthValid()) {
289  doc->setTextWidth(-1);
291  }
292  if (q->widthValid())
293  doc->setTextWidth(q->width());
294  else
295  doc->setTextWidth(doc->idealWidth()); // ### Text does not align if width is not set (QTextDoc bug)
296  dy -= (int)doc->size().height();
297  QSize dsize = doc->size().toSize();
298  if (dsize != layedOutTextRect.size()) {
299  q->prepareGeometryChange();
300  layedOutTextRect = QRect(QPoint(0,0), dsize);
301  }
302  size = QSize(int(doc->idealWidth()),dsize.height());
303  }
304  int yoff = 0;
305 
306  if (q->heightValid()) {
308  yoff = dy;
310  yoff = dy/2;
311  }
312  q->setBaselineOffset(fm.ascent() + yoff);
313 
314  //### need to comfirm cost of always setting these for richText
315  internalWidthUpdate = true;
316  if (!q->widthValid())
317  q->setImplicitWidth(size.width());
318  else if (requireImplicitWidth)
319  q->setImplicitWidth(naturalWidth);
320  internalWidthUpdate = false;
321  q->setImplicitHeight(size.height());
322  if (paintedSize != size) {
323  paintedSize = size;
324  emit q->paintedSizeChanged();
325  }
326  q->update();
327 }
The QFontMetrics class provides font metrics information.
Definition: qfontmetrics.h:65
QSize toSize() const
Returns an integer based copy of this size.
Definition: qsize.h:355
QSizeF size() const
qreal height() const
Returns the height.
Definition: qsize.h:287
WrapMode
This enum describes how text is wrapped in a document.
Definition: qtextoption.h:102
void invalidateImageCache()
Mark the image cache as dirty.
void setDefaultTextOption(const QTextOption &option)
Sets the default text option.
#define Q_Q(Class)
Definition: qglobal.h:2483
void setAlignment(Qt::Alignment alignment)
Sets the option&#39;s text alignment to the specified alignment.
Definition: qtextoption.h:148
QTextDocumentWithImageResources * doc
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
Definition: qstring.h:704
QSize size() const
Returns the size of the rectangle.
Definition: qrect.h:309
#define emit
Definition: qobjectdefs.h:76
qreal idealWidth() const
Returns the ideal width of the text document.
QDeclarativeText::VAlignment vAlign
void setDefaultFont(const QFont &font)
Sets the default font to use in the document layout.
void setTextWidth(qreal width)
The QPoint class defines a point in the plane using integer precision.
Definition: qpoint.h:53
int height() const
Returns the height.
Definition: qsize.h:129
The QRect class defines a rectangle in the plane using integer precision.
Definition: qrect.h:58
The QTextOption class provides a description of general rich text properties.
Definition: qtextoption.h:59
void setWrapMode(WrapMode wrap)
Sets the option&#39;s text wrap mode to the given mode.
Definition: qtextoption.h:109
The QSize class defines the size of a two-dimensional object using integer point precision.
Definition: qsize.h:53
QDeclarativeText::WrapMode wrapMode
void ensureDoc()
Ensures the QDeclarativeTextPrivate::doc variable is set to a valid text document.
QRect setupTextLayout()
Lays out the QDeclarativeTextPrivate::layout QTextLayout in the constraints of the QDeclarativeText...

Properties

◆ activeLink

QString QDeclarativeTextPrivate::activeLink

Definition at line 90 of file qdeclarativetext_p_p.h.

◆ cacheAllTextAsImage

bool QDeclarativeTextPrivate::cacheAllTextAsImage

Definition at line 114 of file qdeclarativetext_p_p.h.

Referenced by QDeclarativeTextPrivate().

◆ color

QColor QDeclarativeTextPrivate::color

Definition at line 87 of file qdeclarativetext_p_p.h.

◆ doc

QTextDocumentWithImageResources* QDeclarativeTextPrivate::doc

Definition at line 127 of file qdeclarativetext_p_p.h.

◆ elideChar

QString QDeclarativeTextPrivate::elideChar = QString(0x2026)
static

Definition at line 104 of file qdeclarativetext_p_p.h.

◆ elideMode

QDeclarativeText::TextElideMode QDeclarativeTextPrivate::elideMode

Definition at line 93 of file qdeclarativetext_p_p.h.

◆ elidePos

QPointF QDeclarativeTextPrivate::elidePos

Definition at line 102 of file qdeclarativetext_p_p.h.

◆ font

QFont QDeclarativeTextPrivate::font

Definition at line 85 of file qdeclarativetext_p_p.h.

◆ format

QDeclarativeText::TextFormat QDeclarativeTextPrivate::format

Definition at line 94 of file qdeclarativetext_p_p.h.

◆ hAlign

QDeclarativeText::HAlignment QDeclarativeTextPrivate::hAlign

Definition at line 91 of file qdeclarativetext_p_p.h.

◆ hAlignImplicit

bool QDeclarativeTextPrivate::hAlignImplicit

Definition at line 117 of file qdeclarativetext_p_p.h.

◆ imageCache

QPixmap QDeclarativeTextPrivate::imageCache

Definition at line 108 of file qdeclarativetext_p_p.h.

◆ imageCacheDirty

bool QDeclarativeTextPrivate::imageCacheDirty

Definition at line 110 of file qdeclarativetext_p_p.h.

◆ internalWidthUpdate

bool QDeclarativeTextPrivate::internalWidthUpdate

Definition at line 115 of file qdeclarativetext_p_p.h.

◆ layedOutTextRect

QRect QDeclarativeTextPrivate::layedOutTextRect

Definition at line 121 of file qdeclarativetext_p_p.h.

◆ layout

QDeclarativeTextLayout QDeclarativeTextPrivate::layout

Definition at line 132 of file qdeclarativetext_p_p.h.

◆ layoutTextElided

bool QDeclarativeTextPrivate::layoutTextElided

Definition at line 119 of file qdeclarativetext_p_p.h.

◆ lineCount

int QDeclarativeTextPrivate::lineCount

Definition at line 98 of file qdeclarativetext_p_p.h.

◆ lineHeight

qreal QDeclarativeTextPrivate::lineHeight

Definition at line 96 of file qdeclarativetext_p_p.h.

◆ lineHeightMode

QDeclarativeText::LineHeightMode QDeclarativeTextPrivate::lineHeightMode

Definition at line 97 of file qdeclarativetext_p_p.h.

◆ maximumLineCount

int QDeclarativeTextPrivate::maximumLineCount

Definition at line 100 of file qdeclarativetext_p_p.h.

◆ maximumLineCountValid

int QDeclarativeTextPrivate::maximumLineCountValid

Definition at line 101 of file qdeclarativetext_p_p.h.

◆ naturalWidth

qreal QDeclarativeTextPrivate::naturalWidth

Definition at line 123 of file qdeclarativetext_p_p.h.

◆ paintedSize

QSize QDeclarativeTextPrivate::paintedSize

Definition at line 122 of file qdeclarativetext_p_p.h.

◆ requireImplicitWidth

bool QDeclarativeTextPrivate::requireImplicitWidth

Definition at line 116 of file qdeclarativetext_p_p.h.

Referenced by implicitWidth().

◆ richText

bool QDeclarativeTextPrivate::richText

Definition at line 112 of file qdeclarativetext_p_p.h.

◆ rightToLeftText

bool QDeclarativeTextPrivate::rightToLeftText

Definition at line 118 of file qdeclarativetext_p_p.h.

◆ singleline

bool QDeclarativeTextPrivate::singleline

Definition at line 113 of file qdeclarativetext_p_p.h.

◆ sourceFont

QFont QDeclarativeTextPrivate::sourceFont

Definition at line 86 of file qdeclarativetext_p_p.h.

◆ style

QDeclarativeText::TextStyle QDeclarativeTextPrivate::style

Definition at line 88 of file qdeclarativetext_p_p.h.

◆ styleColor

QColor QDeclarativeTextPrivate::styleColor

Definition at line 89 of file qdeclarativetext_p_p.h.

◆ text

QString QDeclarativeTextPrivate::text

Definition at line 84 of file qdeclarativetext_p_p.h.

◆ truncated

bool QDeclarativeTextPrivate::truncated

Definition at line 99 of file qdeclarativetext_p_p.h.

◆ updateOnComponentComplete

bool QDeclarativeTextPrivate::updateOnComponentComplete

Definition at line 111 of file qdeclarativetext_p_p.h.

◆ vAlign

QDeclarativeText::VAlignment QDeclarativeTextPrivate::vAlign

Definition at line 92 of file qdeclarativetext_p_p.h.

◆ wrapMode

QDeclarativeText::WrapMode QDeclarativeTextPrivate::wrapMode

Definition at line 95 of file qdeclarativetext_p_p.h.


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