Qt 4.8
Public Types | Signals | Public Functions | Protected Functions | Properties | List of all members
QDeclarativeText Class Reference

#include <qdeclarativetext_p.h>

Inheritance diagram for QDeclarativeText:
QDeclarativeImplicitSizeItem QDeclarativeItem QGraphicsObject QDeclarativeParserStatus QObject QGraphicsItem

Public Types

enum  HAlignment { AlignLeft = Qt::AlignLeft, AlignRight = Qt::AlignRight, AlignHCenter = Qt::AlignHCenter, AlignJustify = Qt::AlignJustify }
 
enum  LineHeightMode { ProportionalHeight, FixedHeight }
 
enum  TextElideMode { ElideLeft = Qt::ElideLeft, ElideRight = Qt::ElideRight, ElideMiddle = Qt::ElideMiddle, ElideNone = Qt::ElideNone }
 
enum  TextFormat { PlainText = Qt::PlainText, RichText = Qt::RichText, AutoText = Qt::AutoText, StyledText = 4 }
 
enum  TextStyle { Normal, Outline, Raised, Sunken }
 
enum  VAlignment { AlignTop = Qt::AlignTop, AlignBottom = Qt::AlignBottom, AlignVCenter = Qt::AlignVCenter }
 
enum  WrapMode {
  NoWrap = QTextOption::NoWrap, WordWrap = QTextOption::WordWrap, WrapAnywhere = QTextOption::WrapAnywhere, WrapAtWordBoundaryOrAnywhere = QTextOption::WrapAtWordBoundaryOrAnywhere,
  Wrap = QTextOption::WrapAtWordBoundaryOrAnywhere
}
 
- Public Types inherited from QDeclarativeItem
enum  TransformOrigin {
  TopLeft, Top, TopRight, Left,
  Center, Right, BottomLeft, Bottom,
  BottomRight
}
 Controls the point about which simple transforms like scale apply. More...
 
- Public Types inherited from QGraphicsItem
enum  { Type = 1, UserType = 65536 }
 
enum  CacheMode { NoCache, ItemCoordinateCache, DeviceCoordinateCache }
 This enum describes QGraphicsItem's cache modes. More...
 
enum  GraphicsItemChange {
  ItemPositionChange, ItemMatrixChange, ItemVisibleChange, ItemEnabledChange,
  ItemSelectedChange, ItemParentChange, ItemChildAddedChange, ItemChildRemovedChange,
  ItemTransformChange, ItemPositionHasChanged, ItemTransformHasChanged, ItemSceneChange,
  ItemVisibleHasChanged, ItemEnabledHasChanged, ItemSelectedHasChanged, ItemParentHasChanged,
  ItemSceneHasChanged, ItemCursorChange, ItemCursorHasChanged, ItemToolTipChange,
  ItemToolTipHasChanged, ItemFlagsChange, ItemFlagsHaveChanged, ItemZValueChange,
  ItemZValueHasChanged, ItemOpacityChange, ItemOpacityHasChanged, ItemScenePositionHasChanged,
  ItemRotationChange, ItemRotationHasChanged, ItemScaleChange, ItemScaleHasChanged,
  ItemTransformOriginPointChange, ItemTransformOriginPointHasChanged
}
 This enum describes the state changes that are notified by QGraphicsItem::itemChange(). More...
 
enum  GraphicsItemFlag {
  ItemIsMovable = 0x1, ItemIsSelectable = 0x2, ItemIsFocusable = 0x4, ItemClipsToShape = 0x8,
  ItemClipsChildrenToShape = 0x10, ItemIgnoresTransformations = 0x20, ItemIgnoresParentOpacity = 0x40, ItemDoesntPropagateOpacityToChildren = 0x80,
  ItemStacksBehindParent = 0x100, ItemUsesExtendedStyleOption = 0x200, ItemHasNoContents = 0x400, ItemSendsGeometryChanges = 0x800,
  ItemAcceptsInputMethod = 0x1000, ItemNegativeZStacksBehindParent = 0x2000, ItemIsPanel = 0x4000, ItemIsFocusScope = 0x8000,
  ItemSendsScenePositionChanges = 0x10000, ItemStopsClickFocusPropagation = 0x20000, ItemStopsFocusHandling = 0x40000
}
 This enum describes different flags that you can set on an item to toggle different features in the item's behavior. More...
 
enum  PanelModality { NonModal, PanelModal, SceneModal }
 This enum specifies the behavior of a modal panel. More...
 

Signals

void colorChanged (const QColor &color)
 
void elideModeChanged (TextElideMode mode)
 
void fontChanged (const QFont &font)
 
void horizontalAlignmentChanged (HAlignment alignment)
 
void lineCountChanged ()
 
void lineHeightChanged (qreal lineHeight)
 
void lineHeightModeChanged (LineHeightMode mode)
 
void linkActivated (const QString &link)
 
void maximumLineCountChanged ()
 
void paintedSizeChanged ()
 
void styleChanged (TextStyle style)
 
void styleColorChanged (const QColor &color)
 
void textChanged (const QString &text)
 
void textFormatChanged (TextFormat textFormat)
 
void truncatedChanged ()
 
void verticalAlignmentChanged (VAlignment alignment)
 
void wrapModeChanged ()
 
- Signals inherited from QDeclarativeImplicitSizeItem
void implicitHeightChanged ()
 
void implicitWidthChanged ()
 
- Signals inherited from QDeclarativeItem
void activeFocusChanged (bool)
 
void baselineOffsetChanged (qreal)
 
void childrenRectChanged (const QRectF &)
 
void clipChanged (bool)
 
void focusChanged (bool)
 
void implicitHeightChanged ()
 
void implicitWidthChanged ()
 
void parentChanged (QDeclarativeItem *)
 
void smoothChanged (bool)
 
void stateChanged (const QString &)
 
void transformOriginChanged (TransformOrigin)
 
- Signals inherited from QGraphicsObject
void childrenChanged ()
 This signal gets emitted whenever the children list changes. More...
 
void enabledChanged ()
 This signal gets emitted whenever the item get's enabled or disabled. More...
 
void heightChanged ()
 
void opacityChanged ()
 This signal gets emitted whenever the opacity of the item changes. More...
 
void parentChanged ()
 This signal gets emitted whenever the parent of the item changes. More...
 
void rotationChanged ()
 This signal gets emitted whenever the roation of the item changes. More...
 
void scaleChanged ()
 This signal is emitted when the scale of the item changes. More...
 
void visibleChanged ()
 This signal gets emitted whenever the visibility of the item changes. More...
 
void widthChanged ()
 
void xChanged ()
 This signal gets emitted whenever the x position of the item changes. More...
 
void yChanged ()
 This signal gets emitted whenever the y position of the item changes. More...
 
void zChanged ()
 This signal gets emitted whenever the z value of the item changes. More...
 
- Signals inherited from QObject
void destroyed (QObject *=0)
 This signal is emitted immediately before the object obj is destroyed, and can not be blocked. More...
 

Public Functions

QRectF boundingRect () const
 
QColor color () const
 
virtual void componentComplete ()
 
HAlignment effectiveHAlign () const
 
TextElideMode elideMode () const
 
QFont font () const
 
HAlignment hAlign () const
 
int lineCount () const
 
qreal lineHeight () const
 
LineHeightMode lineHeightMode () const
 
int maximumLineCount () const
 
void paint (QPainter *, const QStyleOptionGraphicsItem *, QWidget *)
 
qreal paintedHeight () const
 
qreal paintedWidth () const
 
 QDeclarativeText (QDeclarativeItem *parent=0)
 
void resetHAlign ()
 
void resetMaximumLineCount ()
 
int resourcesLoading () const
 Returns the number of resources (images) that are being loaded asynchronously. More...
 
void setColor (const QColor &c)
 
void setElideMode (TextElideMode)
 
void setFont (const QFont &font)
 
void setHAlign (HAlignment align)
 
void setLineHeight (qreal lineHeight)
 
void setLineHeightMode (LineHeightMode)
 
void setMaximumLineCount (int lines)
 
void setStyle (TextStyle style)
 
void setStyleColor (const QColor &c)
 
void setText (const QString &)
 
void setTextFormat (TextFormat format)
 
void setVAlign (VAlignment align)
 
void setWrapMode (WrapMode w)
 
TextStyle style () const
 
QColor styleColor () const
 
QString text () const
 
TextFormat textFormat () const
 
bool truncated () const
 
VAlignment vAlign () const
 
WrapMode wrapMode () const
 
 ~QDeclarativeText ()
 
- Public Functions inherited from QDeclarativeImplicitSizeItem
 QDeclarativeImplicitSizeItem (QDeclarativeItem *parent=0)
 
- Public Functions inherited from QDeclarativeItem
qreal baselineOffset () const
 
Q_INVOKABLE QDeclarativeItemchildAt (qreal x, qreal y) const
 Returns the visible child item at point (x, y), which is in this item's coordinate system, or 0 if there is no such item. More...
 
QRectF childrenRect ()
 
bool clip () const
 
Q_INVOKABLE void forceActiveFocus ()
 Forces active focus on the item. More...
 
bool hasActiveFocus () const
 
bool hasFocus () const
 
qreal height () const
 
qreal implicitHeight () const
 
qreal implicitWidth () const
 
bool keepMouseGrab () const
 Returns a value indicating whether mouse input should remain with this item exclusively. More...
 
Q_INVOKABLE QScriptValue mapFromItem (const QScriptValue &item, qreal x, qreal y) const
 Maps the point (x, y), which is in item's coordinate system, to this item's coordinate system, and returns a script value with x and y properties matching the mapped cooordinate. More...
 
Q_INVOKABLE QScriptValue mapToItem (const QScriptValue &item, qreal x, qreal y) const
 Maps the point (x, y), which is in this item's coordinate system, to item's coordinate system, and returns a script value with x and y properties matching the mapped cooordinate. More...
 
QDeclarativeItemparentItem () const
 Returns the QDeclarativeItem parent of this item. More...
 
 QDeclarativeItem (QDeclarativeItem *parent=0)
 Constructs a QDeclarativeItem with the given parent. More...
 
void resetHeight ()
 
void resetWidth ()
 
void setBaselineOffset (qreal)
 
void setClip (bool)
 
void setFocus (bool)
 
void setHeight (qreal)
 
void setKeepMouseGrab (bool)
 The flag indicating whether the mouse should remain with this item is set to keep. More...
 
void setParentItem (QDeclarativeItem *parent)
 
void setSize (const QSizeF &size)
 
void setSmooth (bool)
 Sets whether the item should be drawn with antialiasing and smooth pixmap filtering to smooth. More...
 
void setTransformOrigin (TransformOrigin)
 Set the transform origin. More...
 
void setWidth (qreal)
 
bool smooth () const
 
QDeclarativeListProperty< QGraphicsTransformtransform ()
 
TransformOrigin transformOrigin () const
 
qreal width () const
 
virtual ~QDeclarativeItem ()
 Destroys the QDeclarativeItem. More...
 
- Public Functions inherited from QGraphicsObject
void grabGesture (Qt::GestureType type, Qt::GestureFlags flags=Qt::GestureFlags())
 Subscribes the graphics object to the given gesture with specific flags. More...
 
 QGraphicsObject (QGraphicsItem *parent=0)
 Constructs a QGraphicsObject with parent. More...
 
void ungrabGesture (Qt::GestureType type)
 Unsubscribes the graphics object from the given gesture. More...
 
- Public Functions inherited from QObject
bool blockSignals (bool b)
 If block is true, signals emitted by this object are blocked (i.e., emitting a signal will not invoke anything connected to it). More...
 
const QObjectListchildren () const
 Returns a list of child objects. More...
 
bool connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
 
bool disconnect (const char *signal=0, const QObject *receiver=0, const char *member=0)
 
bool disconnect (const QObject *receiver, const char *member=0)
 
void dumpObjectInfo ()
 Dumps information about signal connections, etc. More...
 
void dumpObjectTree ()
 Dumps a tree of children to the debug output. More...
 
QList< QByteArraydynamicPropertyNames () const
 Returns the names of all properties that were dynamically added to the object using setProperty(). More...
 
virtual bool eventFilter (QObject *, QEvent *)
 Filters events if this object has been installed as an event filter for the watched object. More...
 
template<typename T >
findChild (const QString &aName=QString()) const
 Returns the child of this object that can be cast into type T and that is called name, or 0 if there is no such object. More...
 
template<typename T >
QList< T > findChildren (const QString &aName=QString()) const
 Returns all children of this object with the given name that can be cast to type T, or an empty list if there are no such objects. More...
 
template<typename T >
QList< T > findChildren (const QRegExp &re) const
 
bool inherits (const char *classname) const
 Returns true if this object is an instance of a class that inherits className or a QObject subclass that inherits className; otherwise returns false. More...
 
void installEventFilter (QObject *)
 Installs an event filter filterObj on this object. More...
 
bool isWidgetType () const
 Returns true if the object is a widget; otherwise returns false. More...
 
void killTimer (int id)
 Kills the timer with timer identifier, id. More...
 
virtual const QMetaObjectmetaObject () const
 Returns a pointer to the meta-object of this object. More...
 
void moveToThread (QThread *thread)
 Changes the thread affinity for this object and its children. More...
 
QString objectName () const
 
QObjectparent () const
 Returns a pointer to the parent object. More...
 
QVariant property (const char *name) const
 Returns the value of the object's name property. More...
 
Q_INVOKABLE QObject (QObject *parent=0)
 Constructs an object with parent object parent. More...
 
void removeEventFilter (QObject *)
 Removes an event filter object obj from this object. More...
 
void setObjectName (const QString &name)
 
void setParent (QObject *)
 Makes the object a child of parent. More...
 
bool setProperty (const char *name, const QVariant &value)
 Sets the value of the object's name property to value. More...
 
void setUserData (uint id, QObjectUserData *data)
 
bool signalsBlocked () const
 Returns true if signals are blocked; otherwise returns false. More...
 
int startTimer (int interval)
 Starts a timer and returns a timer identifier, or returns zero if it could not start a timer. More...
 
QThreadthread () const
 Returns the thread in which the object lives. More...
 
QObjectUserDatauserData (uint id) const
 
virtual ~QObject ()
 Destroys the object, deleting all its child objects. More...
 
- Public Functions inherited from QGraphicsItem
bool acceptDrops () const
 Returns true if this item can accept drag and drop events; otherwise, returns false. More...
 
Qt::MouseButtons acceptedMouseButtons () const
 Returns the mouse buttons that this item accepts mouse events for. More...
 
bool acceptHoverEvents () const
 Returns true if an item accepts hover events (QGraphicsSceneHoverEvent); otherwise, returns false. More...
 
bool acceptsHoverEvents () const
 Call acceptHoverEvents() instead. More...
 
bool acceptTouchEvents () const
 Returns true if an item accepts touch events; otherwise, returns false. More...
 
virtual void advance (int phase)
 This virtual function is called twice for all items by the QGraphicsScene::advance() slot. More...
 
QRegion boundingRegion (const QTransform &itemToDeviceTransform) const
 Returns the bounding region for this item. More...
 
qreal boundingRegionGranularity () const
 Returns the item's bounding region granularity; a value between and including 0 and 1. More...
 
CacheMode cacheMode () const
 Returns the cache mode for this item. More...
 
QList< QGraphicsItem * > childItems () const
 Returns a list of this item's children. More...
 
QList< QGraphicsItem * > children () const
 Use childItems() instead. More...
 
QRectF childrenBoundingRect () const
 Returns the bounding rect of this item's descendants (i.e., its children, their children, etc.) in local coordinates. More...
 
void clearFocus ()
 Takes keyboard input focus from the item. More...
 
QPainterPath clipPath () const
 Returns this item's clip path, or an empty QPainterPath if this item is not clipped. More...
 
virtual bool collidesWithItem (const QGraphicsItem *other, Qt::ItemSelectionMode mode=Qt::IntersectsItemShape) const
 Returns true if this item collides with other; otherwise returns false. More...
 
virtual bool collidesWithPath (const QPainterPath &path, Qt::ItemSelectionMode mode=Qt::IntersectsItemShape) const
 Returns true if this item collides with path. More...
 
QList< QGraphicsItem * > collidingItems (Qt::ItemSelectionMode mode=Qt::IntersectsItemShape) const
 Returns a list of all items that collide with this item. More...
 
QGraphicsItemcommonAncestorItem (const QGraphicsItem *other) const
 Returns the closest common ancestor item of this item and other, or 0 if either other is 0, or there is no common ancestor. More...
 
virtual bool contains (const QPointF &point) const
 Returns true if this item contains point, which is in local coordinates; otherwise, false is returned. More...
 
QCursor cursor () const
 Returns the current cursor shape for the item. More...
 
QVariant data (int key) const
 Returns this item's custom data for the key key as a QVariant. More...
 
QTransform deviceTransform (const QTransform &viewportTransform) const
 Returns this item's device transformation matrix, using viewportTransform to map from scene to device coordinates. More...
 
qreal effectiveOpacity () const
 Returns this item's effective opacity, which is between 0. More...
 
void ensureVisible (const QRectF &rect=QRectF(), int xmargin=50, int ymargin=50)
 If this item is part of a scene that is viewed by a QGraphicsView, this convenience function will attempt to scroll the view to ensure that rect is visible inside the view's viewport. More...
 
void ensureVisible (qreal x, qreal y, qreal w, qreal h, int xmargin=50, int ymargin=50)
 This convenience function is equivalent to calling ensureVisible(QRectF(x, y, w, h), xmargin, ymargin): More...
 
bool filtersChildEvents () const
 Returns true if this item filters child events (i. More...
 
GraphicsItemFlags flags () const
 Returns this item's flags. More...
 
QGraphicsItemfocusItem () const
 If this item, a child or descendant of this item currently has input focus, this function will return a pointer to that item. More...
 
QGraphicsItemfocusProxy () const
 Returns this item's focus proxy, or 0 if this item has no focus proxy. More...
 
QGraphicsItemfocusScopeItem () const
 Returns this item's focus scope item. More...
 
void grabKeyboard ()
 Grabs the keyboard input. More...
 
void grabMouse ()
 Grabs the mouse input. More...
 
QGraphicsEffectgraphicsEffect () const
 Returns a pointer to this item's effect if it has one; otherwise 0. More...
 
QGraphicsItemGroupgroup () const
 Returns a pointer to this item's item group, or 0 if this item is not member of a group. More...
 
bool handlesChildEvents () const
 Returns true if this item handles child events (i. More...
 
bool hasCursor () const
 Returns true if this item has a cursor set; otherwise, false is returned. More...
 
bool hasFocus () const
 Returns true if this item is active, and it or its focus proxy has keyboard input focus; otherwise, returns false. More...
 
void hide ()
 Hides the item. More...
 
Qt::InputMethodHints inputMethodHints () const
 Returns the current input method hints of this item. More...
 
void installSceneEventFilter (QGraphicsItem *filterItem)
 Installs an event filter for this item on filterItem, causing all events for this item to first pass through filterItem's sceneEventFilter() function. More...
 
bool isActive () const
 Returns true if this item is active; otherwise returns false. More...
 
bool isAncestorOf (const QGraphicsItem *child) const
 Returns true if this item is an ancestor of child (i.e., if this item is child's parent, or one of child's parent's ancestors). More...
 
bool isBlockedByModalPanel (QGraphicsItem **blockingPanel=0) const
 Returns true if this item is blocked by a modal panel, false otherwise. More...
 
bool isClipped () const
 Returns true if this item is clipped. More...
 
bool isEnabled () const
 Returns true if the item is enabled; otherwise, false is returned. More...
 
bool isObscured () const
 Returns true if this item's bounding rect is completely obscured by the opaque shape of any of colliding items above it (i.e., with a higher Z value than this item). More...
 
bool isObscured (const QRectF &rect) const
 Returns true if rect is completely obscured by the opaque shape of any of colliding items above it (i. More...
 
bool isObscured (qreal x, qreal y, qreal w, qreal h) const
 This convenience function is equivalent to calling isObscured(QRectF(x, y, w, h)). More...
 
virtual bool isObscuredBy (const QGraphicsItem *item) const
 Returns true if this item's bounding rect is completely obscured by the opaque shape of item. More...
 
bool isPanel () const
 Returns true if the item is a panel; otherwise returns false. More...
 
bool isSelected () const
 Returns true if this item is selected; otherwise, false is returned. More...
 
bool isUnderMouse () const
 Returns true if this item is currently under the mouse cursor in one of the views; otherwise, false is returned. More...
 
bool isVisible () const
 Returns true if the item is visible; otherwise, false is returned. More...
 
bool isVisibleTo (const QGraphicsItem *parent) const
 Returns true if the item is visible to parent; otherwise, false is returned. More...
 
bool isWidget () const
 Returns true if this item is a widget (i. More...
 
bool isWindow () const
 Returns true if the item is a QGraphicsWidget window, otherwise returns false. More...
 
QTransform itemTransform (const QGraphicsItem *other, bool *ok=0) const
 Returns a QTransform that maps coordinates from this item to other. More...
 
QPointF mapFromItem (const QGraphicsItem *item, const QPointF &point) const
 Maps the point point, which is in item's coordinate system, to this item's coordinate system, and returns the mapped coordinate. More...
 
QPolygonF mapFromItem (const QGraphicsItem *item, const QRectF &rect) const
 Maps the rectangle rect, which is in item's coordinate system, to this item's coordinate system, and returns the mapped rectangle as a polygon. More...
 
QPolygonF mapFromItem (const QGraphicsItem *item, const QPolygonF &polygon) const
 Maps the polygon polygon, which is in item's coordinate system, to this item's coordinate system, and returns the mapped polygon. More...
 
QPainterPath mapFromItem (const QGraphicsItem *item, const QPainterPath &path) const
 Maps the path path, which is in item's coordinate system, to this item's coordinate system, and returns the mapped path. More...
 
QPointF mapFromItem (const QGraphicsItem *item, qreal x, qreal y) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.This convenience function is equivalent to calling mapFromItem(item, QPointF(x, y)). More...
 
QPolygonF mapFromItem (const QGraphicsItem *item, qreal x, qreal y, qreal w, qreal h) const
 
QPointF mapFromParent (const QPointF &point) const
 Maps the point point, which is in this item's parent's coordinate system, to this item's coordinate system, and returns the mapped coordinate. More...
 
QPolygonF mapFromParent (const QRectF &rect) const
 Maps the rectangle rect, which is in this item's parent's coordinate system, to this item's coordinate system, and returns the mapped rectangle as a polygon. More...
 
QPolygonF mapFromParent (const QPolygonF &polygon) const
 Maps the polygon polygon, which is in this item's parent's coordinate system, to this item's coordinate system, and returns the mapped polygon. More...
 
QPainterPath mapFromParent (const QPainterPath &path) const
 Maps the path path, which is in this item's parent's coordinate system, to this item's coordinate system, and returns the mapped path. More...
 
QPointF mapFromParent (qreal x, qreal y) const
 This convenience function is equivalent to calling mapFromParent(QPointF(x, y)). More...
 
QPolygonF mapFromParent (qreal x, qreal y, qreal w, qreal h) const
 This convenience function is equivalent to calling mapFromItem(QRectF(x, y, w, h)). More...
 
QPointF mapFromScene (const QPointF &point) const
 Maps the point point, which is in this item's scene's coordinate system, to this item's coordinate system, and returns the mapped coordinate. More...
 
QPolygonF mapFromScene (const QRectF &rect) const
 Maps the rectangle rect, which is in this item's scene's coordinate system, to this item's coordinate system, and returns the mapped rectangle as a polygon. More...
 
QPolygonF mapFromScene (const QPolygonF &polygon) const
 Maps the polygon polygon, which is in this item's scene's coordinate system, to this item's coordinate system, and returns the mapped polygon. More...
 
QPainterPath mapFromScene (const QPainterPath &path) const
 Maps the path path, which is in this item's scene's coordinate system, to this item's coordinate system, and returns the mapped path. More...
 
QPointF mapFromScene (qreal x, qreal y) const
 This convenience function is equivalent to calling mapFromScene(QPointF(x, y)). More...
 
QPolygonF mapFromScene (qreal x, qreal y, qreal w, qreal h) const
 This convenience function is equivalent to calling mapFromScene(QRectF(x, y, w, h)). More...
 
QRectF mapRectFromItem (const QGraphicsItem *item, const QRectF &rect) const
 Maps the rectangle rect, which is in item's coordinate system, to this item's coordinate system, and returns the mapped rectangle as a new rectangle (i. More...
 
QRectF mapRectFromItem (const QGraphicsItem *item, qreal x, qreal y, qreal w, qreal h) const
 
QRectF mapRectFromParent (const QRectF &rect) const
 Maps the rectangle rect, which is in this item's parent's coordinate system, to this item's coordinate system, and returns the mapped rectangle as a new rectangle (i. More...
 
QRectF mapRectFromParent (qreal x, qreal y, qreal w, qreal h) const
 This convenience function is equivalent to calling mapRectFromParent(QRectF(x, y, w, h)). More...
 
QRectF mapRectFromScene (const QRectF &rect) const
 Maps the rectangle rect, which is in scene coordinates, to this item's coordinate system, and returns the mapped rectangle as a new rectangle (i. More...
 
QRectF mapRectFromScene (qreal x, qreal y, qreal w, qreal h) const
 This convenience function is equivalent to calling mapRectFromScene(QRectF(x, y, w, h)). More...
 
QRectF mapRectToItem (const QGraphicsItem *item, const QRectF &rect) const
 Maps the rectangle rect, which is in this item's coordinate system, to item's coordinate system, and returns the mapped rectangle as a new rectangle (i. More...
 
QRectF mapRectToItem (const QGraphicsItem *item, qreal x, qreal y, qreal w, qreal h) const
 
QRectF mapRectToParent (const QRectF &rect) const
 Maps the rectangle rect, which is in this item's coordinate system, to its parent's coordinate system, and returns the mapped rectangle as a new rectangle (i. More...
 
QRectF mapRectToParent (qreal x, qreal y, qreal w, qreal h) const
 This convenience function is equivalent to calling mapRectToParent(QRectF(x, y, w, h)). More...
 
QRectF mapRectToScene (const QRectF &rect) const
 Maps the rectangle rect, which is in this item's coordinate system, to the scene coordinate system, and returns the mapped rectangle as a new rectangle (i. More...
 
QRectF mapRectToScene (qreal x, qreal y, qreal w, qreal h) const
 This convenience function is equivalent to calling mapRectToScene(QRectF(x, y, w, h)). More...
 
QPointF mapToItem (const QGraphicsItem *item, const QPointF &point) const
 Maps the point point, which is in this item's coordinate system, to item's coordinate system, and returns the mapped coordinate. More...
 
QPolygonF mapToItem (const QGraphicsItem *item, const QRectF &rect) const
 Maps the rectangle rect, which is in this item's coordinate system, to item's coordinate system, and returns the mapped rectangle as a polygon. More...
 
QPolygonF mapToItem (const QGraphicsItem *item, const QPolygonF &polygon) const
 Maps the polygon polygon, which is in this item's coordinate system, to item's coordinate system, and returns the mapped polygon. More...
 
QPainterPath mapToItem (const QGraphicsItem *item, const QPainterPath &path) const
 Maps the path path, which is in this item's coordinate system, to item's coordinate system, and returns the mapped path. More...
 
QPointF mapToItem (const QGraphicsItem *item, qreal x, qreal y) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.This convenience function is equivalent to calling mapToItem(item, QPointF(x, y)). More...
 
QPolygonF mapToItem (const QGraphicsItem *item, qreal x, qreal y, qreal w, qreal h) const
 
QPointF mapToParent (const QPointF &point) const
 Maps the point point, which is in this item's coordinate system, to its parent's coordinate system, and returns the mapped coordinate. More...
 
QPolygonF mapToParent (const QRectF &rect) const
 Maps the rectangle rect, which is in this item's coordinate system, to its parent's coordinate system, and returns the mapped rectangle as a polygon. More...
 
QPolygonF mapToParent (const QPolygonF &polygon) const
 Maps the polygon polygon, which is in this item's coordinate system, to its parent's coordinate system, and returns the mapped polygon. More...
 
QPainterPath mapToParent (const QPainterPath &path) const
 Maps the path path, which is in this item's coordinate system, to its parent's coordinate system, and returns the mapped path. More...
 
QPointF mapToParent (qreal x, qreal y) const
 This convenience function is equivalent to calling mapToParent(QPointF(x, y)). More...
 
QPolygonF mapToParent (qreal x, qreal y, qreal w, qreal h) const
 This convenience function is equivalent to calling mapToParent(QRectF(x, y, w, h)). More...
 
QPointF mapToScene (const QPointF &point) const
 Maps the point point, which is in this item's coordinate system, to the scene's coordinate system, and returns the mapped coordinate. More...
 
QPolygonF mapToScene (const QRectF &rect) const
 Maps the rectangle rect, which is in this item's coordinate system, to the scene's coordinate system, and returns the mapped rectangle as a polygon. More...
 
QPolygonF mapToScene (const QPolygonF &polygon) const
 Maps the polygon polygon, which is in this item's coordinate system, to the scene's coordinate system, and returns the mapped polygon. More...
 
QPainterPath mapToScene (const QPainterPath &path) const
 Maps the path path, which is in this item's coordinate system, to the scene's coordinate system, and returns the mapped path. More...
 
QPointF mapToScene (qreal x, qreal y) const
 This convenience function is equivalent to calling mapToScene(QPointF(x, y)). More...
 
QPolygonF mapToScene (qreal x, qreal y, qreal w, qreal h) const
 This convenience function is equivalent to calling mapToScene(QRectF(x, y, w, h)). More...
 
QMatrix matrix () const
 Returns the item's affine transformation matrix. More...
 
void moveBy (qreal dx, qreal dy)
 Moves the item by dx points horizontally, and dy point vertically. More...
 
qreal opacity () const
 Returns this item's local opacity, which is between 0. More...
 
virtual QPainterPath opaqueArea () const
 This virtual function returns a shape representing the area where this item is opaque. More...
 
QGraphicsItempanel () const
 Returns the item's panel, or 0 if this item does not have a panel. More...
 
PanelModality panelModality () const
 Returns the modality for this item. More...
 
QGraphicsItemparentItem () const
 Returns a pointer to this item's parent item. More...
 
QGraphicsObjectparentObject () const
 Returns a pointer to the item's parent, cast to a QGraphicsObject. More...
 
QGraphicsWidgetparentWidget () const
 Returns a pointer to the item's parent widget. More...
 
QPointF pos () const
 Returns the position of the item in parent coordinates. More...
 
 QGraphicsItem (QGraphicsItem *parent=0)
 Constructs a QGraphicsItem with the given parent item. More...
 
void removeSceneEventFilter (QGraphicsItem *filterItem)
 Removes an event filter on this item from filterItem. More...
 
void resetMatrix ()
 Use resetTransform() instead. More...
 
void resetTransform ()
 Resets this item's transformation matrix to the identity matrix or all the transformation properties to their default values. More...
 
void rotate (qreal angle)
 Use. More...
 
qreal rotation () const
 Returns the clockwise rotation, in degrees, around the Z axis. More...
 
void scale (qreal sx, qreal sy)
 Use. More...
 
qreal scale () const
 Returns the scale factor of the item. More...
 
QGraphicsScenescene () const
 Returns the current scene for the item, or 0 if the item is not stored in a scene. More...
 
QRectF sceneBoundingRect () const
 Returns the bounding rect of this item in scene coordinates, by combining sceneTransform() with boundingRect(). More...
 
QMatrix sceneMatrix () const
 Use sceneTransform() instead. More...
 
QPointF scenePos () const
 Returns the item's position in scene coordinates. More...
 
QTransform sceneTransform () const
 Returns this item's scene transformation matrix. More...
 
void scroll (qreal dx, qreal dy, const QRectF &rect=QRectF())
 Scrolls the contents of rect by dx, dy. More...
 
void setAcceptDrops (bool on)
 If on is true, this item will accept drag and drop events; otherwise, it is transparent for drag and drop events. More...
 
void setAcceptedMouseButtons (Qt::MouseButtons buttons)
 Sets the mouse buttons that this item accepts mouse events for. More...
 
void setAcceptHoverEvents (bool enabled)
 If enabled is true, this item will accept hover events; otherwise, it will ignore them. More...
 
void setAcceptsHoverEvents (bool enabled)
 Use setAcceptHoverEvents(enabled) instead. More...
 
void setAcceptTouchEvents (bool enabled)
 If enabled is true, this item will accept touch events; otherwise, it will ignore them. More...
 
void setActive (bool active)
 If active is true, and the scene is active, this item's panel will be activated. More...
 
void setBoundingRegionGranularity (qreal granularity)
 Sets the bounding region granularity to granularity; a value between and including 0 and 1. More...
 
void setCacheMode (CacheMode mode, const QSize &cacheSize=QSize())
 Sets the item's cache mode to mode. More...
 
void setCursor (const QCursor &cursor)
 Sets the current cursor shape for the item to cursor. More...
 
void setData (int key, const QVariant &value)
 Sets this item's custom data for the key key to value. More...
 
void setEnabled (bool enabled)
 If enabled is true, the item is enabled; otherwise, it is disabled. More...
 
void setFiltersChildEvents (bool enabled)
 If enabled is true, this item is set to filter all events for all its children (i. More...
 
void setFlag (GraphicsItemFlag flag, bool enabled=true)
 If enabled is true, the item flag flag is enabled; otherwise, it is disabled. More...
 
void setFlags (GraphicsItemFlags flags)
 Sets the item flags to flags. More...
 
void setFocus (Qt::FocusReason focusReason=Qt::OtherFocusReason)
 Gives keyboard input focus to this item. More...
 
void setFocusProxy (QGraphicsItem *item)
 Sets the item's focus proxy to item. More...
 
void setGraphicsEffect (QGraphicsEffect *effect)
 Sets effect as the item's effect. More...
 
void setGroup (QGraphicsItemGroup *group)
 Adds this item to the item group group. More...
 
void setHandlesChildEvents (bool enabled)
 If enabled is true, this item is set to handle all events for all its children (i. More...
 
void setInputMethodHints (Qt::InputMethodHints hints)
 Sets the current input method hints of this item to hints. More...
 
void setMatrix (const QMatrix &matrix, bool combine=false)
 Sets the item's affine transformation matrix. More...
 
void setOpacity (qreal opacity)
 Sets this item's local opacity, between 0. More...
 
void setPanelModality (PanelModality panelModality)
 Sets the modality for this item to panelModality. More...
 
void setParentItem (QGraphicsItem *parent)
 Sets this item's parent item to newParent. More...
 
void setPos (const QPointF &pos)
 Sets the position of the item to pos, which is in parent coordinates. More...
 
void setPos (qreal x, qreal y)
 This convenience function is equivalent to calling setPos(QPointF(x, y)). More...
 
void setRotation (qreal angle)
 Sets the clockwise rotation angle, in degrees, around the Z axis. More...
 
void setScale (qreal scale)
 Sets the scale factor of the item. More...
 
void setSelected (bool selected)
 If selected is true and this item is selectable, this item is selected; otherwise, it is unselected. More...
 
void setToolTip (const QString &toolTip)
 Sets the item's tool tip to toolTip. More...
 
void setTransform (const QTransform &matrix, bool combine=false)
 Sets the item's current transformation matrix to matrix. More...
 
void setTransformations (const QList< QGraphicsTransform *> &transformations)
 Sets a list of graphics transformations (QGraphicsTransform) that currently apply to this item. More...
 
void setTransformOriginPoint (const QPointF &origin)
 Sets the origin point for the transformation in item coordinates. More...
 
void setTransformOriginPoint (qreal ax, qreal ay)
 Sets the origin point for the transformation in item coordinates. More...
 
void setVisible (bool visible)
 If visible is true, the item is made visible. More...
 
void setX (qreal x)
 Set's the x coordinate of the item's position. More...
 
void setY (qreal y)
 Set's the y coordinate of the item's position. More...
 
void setZValue (qreal z)
 Sets the Z-value of the item to z. More...
 
virtual QPainterPath shape () const
 Returns the shape of this item as a QPainterPath in local coordinates. More...
 
void shear (qreal sh, qreal sv)
 Use. More...
 
void show ()
 Shows the item. More...
 
void stackBefore (const QGraphicsItem *sibling)
 Stacks this item before sibling, which must be a sibling item (i. More...
 
QGraphicsObjecttoGraphicsObject ()
 Return the graphics item cast to a QGraphicsObject, if the class is actually a graphics object, 0 otherwise. More...
 
const QGraphicsObjecttoGraphicsObject () const
 Return the graphics item cast to a QGraphicsObject, if the class is actually a graphics object, 0 otherwise. More...
 
QString toolTip () const
 Returns the item's tool tip, or an empty QString if no tool tip has been set. More...
 
QGraphicsItemtopLevelItem () const
 Returns this item's top-level item. More...
 
QGraphicsWidgettopLevelWidget () const
 Returns a pointer to the item's top level widget (i. More...
 
QTransform transform () const
 Returns this item's transformation matrix. More...
 
QList< QGraphicsTransform * > transformations () const
 Returns a list of graphics transforms that currently apply to this item. More...
 
QPointF transformOriginPoint () const
 Returns the origin point for the transformation in item coordinates. More...
 
void translate (qreal dx, qreal dy)
 Use setPos() or setTransformOriginPoint() instead. More...
 
virtual int type () const
 Returns the type of an item as an int. More...
 
void ungrabKeyboard ()
 Releases the keyboard grab. More...
 
void ungrabMouse ()
 Releases the mouse grab. More...
 
void unsetCursor ()
 Clears the cursor from this item. More...
 
void update (const QRectF &rect=QRectF())
 Schedules a redraw of the area covered by rect in this item. More...
 
void update (qreal x, qreal y, qreal width, qreal height)
 This convenience function is equivalent to calling update(QRectF(x, y, width, height)). More...
 
QGraphicsWidgetwindow () const
 Returns the item's window, or 0 if this item does not have a window. More...
 
qreal x () const
 This convenience function is equivalent to calling pos(). More...
 
qreal y () const
 This convenience function is equivalent to calling pos(). More...
 
qreal zValue () const
 Returns the Z-value of the item. More...
 
virtual ~QGraphicsItem ()
 Destroys the QGraphicsItem and all its children. More...
 
- Public Functions inherited from QDeclarativeParserStatus
 QDeclarativeParserStatus ()
 
virtual ~QDeclarativeParserStatus ()
 

Protected Functions

virtual void geometryChanged (const QRectF &newGeometry, const QRectF &oldGeometry)
 
void mousePressEvent (QGraphicsSceneMouseEvent *event)
 
void mouseReleaseEvent (QGraphicsSceneMouseEvent *event)
 
- Protected Functions inherited from QDeclarativeImplicitSizeItem
 QDeclarativeImplicitSizeItem (QDeclarativeImplicitSizeItemPrivate &dd, QDeclarativeItem *parent)
 
- Protected Functions inherited from QDeclarativeItem
virtual void classBegin ()
 
virtual bool event (QEvent *)
 
bool heightValid () const
 Returns whether the height property has been set explicitly. More...
 
virtual void inputMethodEvent (QInputMethodEvent *)
 
void inputMethodPreHandler (QInputMethodEvent *)
 
virtual QVariant inputMethodQuery (Qt::InputMethodQuery query) const
 
bool isComponentComplete () const
 Returns true if construction of the QML component is complete; otherwise returns false. More...
 
virtual QVariant itemChange (GraphicsItemChange, const QVariant &)
 Note that unlike QGraphicsItems, QDeclarativeItem::itemChange() is not called during initial widget polishing. More...
 
virtual void keyPressEvent (QKeyEvent *event)
 
void keyPressPreHandler (QKeyEvent *)
 
virtual void keyReleaseEvent (QKeyEvent *event)
 
void keyReleasePreHandler (QKeyEvent *)
 
 QDeclarativeItem (QDeclarativeItemPrivate &dd, QDeclarativeItem *parent=0)
 
virtual bool sceneEvent (QEvent *)
 
void setImplicitHeight (qreal)
 Sets the implied height of the item to h. More...
 
void setImplicitWidth (qreal)
 Sets the implied width of the item to w. More...
 
bool widthValid () const
 Returns whether the width property has been set explicitly. More...
 
- Protected Functions inherited from QGraphicsObject
 QGraphicsObject (QGraphicsItemPrivate &dd, QGraphicsItem *parent, QGraphicsScene *scene)
 
- Protected Functions inherited from QObject
virtual void childEvent (QChildEvent *)
 This event handler can be reimplemented in a subclass to receive child events. More...
 
virtual void connectNotify (const char *signal)
 This virtual function is called when something has been connected to signal in this object. More...
 
virtual void customEvent (QEvent *)
 This event handler can be reimplemented in a subclass to receive custom events. More...
 
virtual void disconnectNotify (const char *signal)
 This virtual function is called when something has been disconnected from signal in this object. More...
 
 QObject (QObjectPrivate &dd, QObject *parent=0)
 
int receivers (const char *signal) const
 Returns the number of receivers connected to the signal. More...
 
QObjectsender () const
 Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; otherwise it returns 0. More...
 
int senderSignalIndex () const
 
virtual void timerEvent (QTimerEvent *)
 This event handler can be reimplemented in a subclass to receive timer events for the object. More...
 
- Protected Functions inherited from QGraphicsItem
void addToIndex ()
 Adds this item to the scene's index. More...
 
virtual void contextMenuEvent (QGraphicsSceneContextMenuEvent *event)
 This event handler can be reimplemented in a subclass to process context menu events. More...
 
virtual void dragEnterEvent (QGraphicsSceneDragDropEvent *event)
 This event handler, for event event, can be reimplemented to receive drag enter events for this item. More...
 
virtual void dragLeaveEvent (QGraphicsSceneDragDropEvent *event)
 This event handler, for event event, can be reimplemented to receive drag leave events for this item. More...
 
virtual void dragMoveEvent (QGraphicsSceneDragDropEvent *event)
 This event handler, for event event, can be reimplemented to receive drag move events for this item. More...
 
virtual void dropEvent (QGraphicsSceneDragDropEvent *event)
 This event handler, for event event, can be reimplemented to receive drop events for this item. More...
 
virtual QVariant extension (const QVariant &variant) const
 Note: This is provided as a hook to avoid future problems related to adding virtual functions. More...
 
virtual void focusInEvent (QFocusEvent *event)
 This event handler, for event event, can be reimplemented to receive focus in events for this item. More...
 
virtual void focusOutEvent (QFocusEvent *event)
 This event handler, for event event, can be reimplemented to receive focus out events for this item. More...
 
virtual void hoverEnterEvent (QGraphicsSceneHoverEvent *event)
 This event handler, for event event, can be reimplemented to receive hover enter events for this item. More...
 
virtual void hoverLeaveEvent (QGraphicsSceneHoverEvent *event)
 This event handler, for event event, can be reimplemented to receive hover leave events for this item. More...
 
virtual void hoverMoveEvent (QGraphicsSceneHoverEvent *event)
 This event handler, for event event, can be reimplemented to receive hover move events for this item. More...
 
virtual void mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event)
 This event handler, for event event, can be reimplemented to receive mouse doubleclick events for this item. More...
 
virtual void mouseMoveEvent (QGraphicsSceneMouseEvent *event)
 This event handler, for event event, can be reimplemented to receive mouse move events for this item. More...
 
void prepareGeometryChange ()
 Prepares the item for a geometry change. More...
 
 QGraphicsItem (QGraphicsItemPrivate &dd, QGraphicsItem *parent, QGraphicsScene *scene)
 
void removeFromIndex ()
 Removes this item from the scene's index. More...
 
virtual bool sceneEventFilter (QGraphicsItem *watched, QEvent *event)
 Filters events for the item watched. More...
 
virtual void setExtension (Extension extension, const QVariant &variant)
 Note: This is provided as a hook to avoid future problems related to adding virtual functions. More...
 
virtual bool supportsExtension (Extension extension) const
 Note: This is provided as a hook to avoid future problems related to adding virtual functions. More...
 
void updateMicroFocus ()
 Updates the item's micro focus. More...
 
virtual void wheelEvent (QGraphicsSceneWheelEvent *event)
 This event handler, for event event, can be reimplemented to receive wheel events for this item. More...
 

Properties

QColor color
 
TextElideMode elide
 
QFont font
 
HAlignment horizontalAlignment
 
int lineCount
 
qreal lineHeight
 
LineHeightMode lineHeightMode
 
int maximumLineCount
 
qreal paintedHeight
 
qreal paintedWidth
 
TextStyle style
 
QColor styleColor
 
QString text
 
TextFormat textFormat
 
bool truncated
 
VAlignment verticalAlignment
 
WrapMode wrapMode
 

Additional Inherited Members

- Public Slots inherited from QObject
void deleteLater ()
 Schedules this object for deletion. More...
 
- Static Public Functions inherited from QObject
static bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
 Creates a connection of the given type from the signal in the sender object to the method in the receiver object. More...
 
static bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection)
 
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 Disconnects signal in object sender from method in object receiver. More...
 
static bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member)
 
static uint registerUserData ()
 
static QString tr (const char *sourceText, const char *comment=0, int n=-1)
 
static QString trUtf8 (const char *sourceText, const char *comment=0, int n=-1)
 
- Static Public Variables inherited from QObject
static const QMetaObject staticMetaObject
 This variable stores the meta-object for the class. More...
 
- Protected Types inherited from QGraphicsItem
enum  Extension { UserExtension = 0x80000000 }
 Note: This is provided as a hook to avoid future problems related to adding virtual functions. More...
 
- Protected Slots inherited from QGraphicsObject
void updateMicroFocus ()
 Updates the item's micro focus. More...
 
- Protected Variables inherited from QObject
QScopedPointer< QObjectDatad_ptr
 
- Protected Variables inherited from QGraphicsItem
QScopedPointer< QGraphicsItemPrivated_ptr
 
- Static Protected Variables inherited from QObject
static const QMetaObject staticQtMetaObject
 

Detailed Description

Definition at line 56 of file qdeclarativetext_p.h.

Enumerations

◆ HAlignment

◆ LineHeightMode

Enumerator
ProportionalHeight 
FixedHeight 

Definition at line 117 of file qdeclarativetext_p.h.

◆ TextElideMode

◆ TextFormat

◆ TextStyle

Enumerator
Normal 
Outline 
Raised 
Sunken 

Definition at line 97 of file qdeclarativetext_p.h.

◆ VAlignment

◆ WrapMode

Constructors and Destructors

◆ QDeclarativeText()

QDeclarativeText::QDeclarativeText ( QDeclarativeItem parent = 0)

Definition at line 712 of file qdeclarativetext.cpp.

◆ ~QDeclarativeText()

QDeclarativeText::~QDeclarativeText ( )

Definition at line 717 of file qdeclarativetext.cpp.

718 {
719 }

Functions

◆ boundingRect()

QRectF QDeclarativeText::boundingRect ( ) const
virtual
Warning
This function is not part of the public interface.

Reimplemented from QDeclarativeItem.

Definition at line 1465 of file qdeclarativetext.cpp.

Referenced by paint().

1466 {
1467  Q_D(const QDeclarativeText);
1468 
1469  QRect rect = d->layedOutTextRect;
1470  if (d->style != Normal)
1471  rect.adjust(-1, 0, 1, 2);
1472 
1473  // Could include font max left/right bearings to either side of rectangle.
1474 
1475  int h = height();
1476  switch (d->vAlign) {
1477  case AlignTop:
1478  break;
1479  case AlignBottom:
1480  rect.moveTop(h - rect.height());
1481  break;
1482  case AlignVCenter:
1483  rect.moveTop((h - rect.height()) / 2);
1484  break;
1485  }
1486 
1487  return QRectF(rect);
1488 }
QDeclarativeParserStatus ** d
int height() const
Returns the height of the rectangle.
Definition: qrect.h:306
#define Q_D(Class)
Definition: qglobal.h:2482
The QRectF class defines a rectangle in the plane using floating point precision. ...
Definition: qrect.h:511
void adjust(int x1, int y1, int x2, int y2)
Adds dx1, dy1, dx2 and dy2 respectively to the existing coordinates of the rectangle.
Definition: qrect.h:434
The QRect class defines a rectangle in the plane using integer precision.
Definition: qrect.h:58
void moveTop(int pos)
Moves the rectangle vertically, leaving the rectangle&#39;s top edge at the given y coordinate.
Definition: qrect.h:353

◆ color()

QColor QDeclarativeText::color ( ) const

Referenced by setColor(), setStyleColor(), and setText().

◆ colorChanged

void QDeclarativeText::colorChanged ( const QColor color)
signal

Referenced by setColor().

◆ componentComplete()

void QDeclarativeText::componentComplete ( )
virtual
Warning
This function is not part of the public interface.

Reimplemented from QDeclarativeItem.

Definition at line 1669 of file qdeclarativetext.cpp.

1670 {
1673  if (d->updateOnComponentComplete) {
1674  d->updateOnComponentComplete = false;
1675  if (d->richText) {
1676  d->ensureDoc();
1677  d->doc->setText(d->text);
1678  d->rightToLeftText = d->doc->toPlainText().isRightToLeft();
1679  } else {
1680  d->rightToLeftText = d->text.isRightToLeft();
1681  }
1682  d->determineHorizontalAlignment();
1683  d->updateLayout();
1684  }
1685 }
QDeclarativeParserStatus ** d
#define Q_D(Class)
Definition: qglobal.h:2482
virtual void componentComplete()

◆ effectiveHAlign()

QDeclarativeText::HAlignment QDeclarativeText::effectiveHAlign ( ) const

Definition at line 1146 of file qdeclarativetext.cpp.

1147 {
1148  Q_D(const QDeclarativeText);
1149  QDeclarativeText::HAlignment effectiveAlignment = d->hAlign;
1150  if (!d->hAlignImplicit && d->effectiveLayoutMirror) {
1151  switch (d->hAlign) {
1153  effectiveAlignment = QDeclarativeText::AlignRight;
1154  break;
1156  effectiveAlignment = QDeclarativeText::AlignLeft;
1157  break;
1158  default:
1159  break;
1160  }
1161  }
1162  return effectiveAlignment;
1163 }
QDeclarativeParserStatus ** d
#define Q_D(Class)
Definition: qglobal.h:2482

◆ elideMode()

QDeclarativeText::TextElideMode QDeclarativeText::elideMode ( ) const

Definition at line 1446 of file qdeclarativetext.cpp.

1447 {
1448  Q_D(const QDeclarativeText);
1449  return d->elideMode;
1450 }
QDeclarativeParserStatus ** d
#define Q_D(Class)
Definition: qglobal.h:2482

◆ elideModeChanged

void QDeclarativeText::elideModeChanged ( TextElideMode  mode)
signal

Referenced by setElideMode().

◆ font()

QFont QDeclarativeText::font ( ) const

Referenced by setFont(), and ~QDeclarativeText().

◆ fontChanged

void QDeclarativeText::fontChanged ( const QFont font)
signal

Referenced by setFont().

◆ geometryChanged()

void QDeclarativeText::geometryChanged ( const QRectF newGeometry,
const QRectF oldGeometry 
)
protectedvirtual
Warning
This function is not part of the public interface.

Reimplemented from QDeclarativeItem.

Definition at line 1491 of file qdeclarativetext.cpp.

1492 {
1494  if ((!d->internalWidthUpdate && newGeometry.width() != oldGeometry.width())
1495  && (d->wrapMode != QDeclarativeText::NoWrap
1496  || d->elideMode != QDeclarativeText::ElideNone
1497  || d->hAlign != QDeclarativeText::AlignLeft)) {
1498  if ((d->singleline || d->maximumLineCountValid) && d->elideMode != QDeclarativeText::ElideNone && widthValid()) {
1499  // We need to re-elide
1500  d->updateLayout();
1501  } else {
1502  // We just need to re-layout
1503  d->updateSize();
1504  }
1505  }
1506 
1507  QDeclarativeItem::geometryChanged(newGeometry, oldGeometry);
1508 }
QDeclarativeParserStatus ** d
bool widthValid() const
Returns whether the width property has been set explicitly.
#define Q_D(Class)
Definition: qglobal.h:2482
qreal width() const
Returns the width of the rectangle.
Definition: qrect.h:707
virtual void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry)
This function is called to handle this item&#39;s changes in geometry from oldGeometry to newGeometry...

◆ hAlign()

QDeclarativeText::HAlignment QDeclarativeText::hAlign ( ) const

Definition at line 1123 of file qdeclarativetext.cpp.

Referenced by QDeclarativeTextPrivate::mirrorChange(), and QDeclarativeTextPrivate::setHAlign().

1124 {
1125  Q_D(const QDeclarativeText);
1126  return d->hAlign;
1127 }
QDeclarativeParserStatus ** d
#define Q_D(Class)
Definition: qglobal.h:2482

◆ horizontalAlignmentChanged

void QDeclarativeText::horizontalAlignmentChanged ( HAlignment  alignment)
signal

◆ lineCount()

int QDeclarativeText::lineCount ( ) const

Referenced by setWrapMode().

◆ lineCountChanged

void QDeclarativeText::lineCountChanged ( )
signal

◆ lineHeight()

qreal QDeclarativeText::lineHeight ( ) const

Referenced by geometryChanged(), and setLineHeight().

◆ lineHeightChanged

void QDeclarativeText::lineHeightChanged ( qreal  lineHeight)
signal

Referenced by setLineHeight().

◆ lineHeightMode()

LineHeightMode QDeclarativeText::lineHeightMode ( ) const

Referenced by setLineHeight().

◆ lineHeightModeChanged

void QDeclarativeText::lineHeightModeChanged ( LineHeightMode  mode)
signal

Referenced by setLineHeightMode().

◆ linkActivated

void QDeclarativeText::linkActivated ( const QString link)
signal

Referenced by mouseReleaseEvent().

◆ maximumLineCount()

int QDeclarativeText::maximumLineCount ( ) const

Referenced by setWrapMode().

◆ maximumLineCountChanged

void QDeclarativeText::maximumLineCountChanged ( )
signal

Referenced by setMaximumLineCount().

◆ mousePressEvent()

void QDeclarativeText::mousePressEvent ( QGraphicsSceneMouseEvent event)
protectedvirtual
Warning
This function is not part of the public interface.

Reimplemented from QGraphicsItem.

Definition at line 1688 of file qdeclarativetext.cpp.

1689 {
1691 
1692  if (!d->richText || !d->doc || d->doc->documentLayout()->anchorAt(event->pos()).isEmpty()) {
1693  event->setAccepted(false);
1694  d->activeLink.clear();
1695  } else {
1696  d->activeLink = d->doc->documentLayout()->anchorAt(event->pos());
1697  }
1698 
1699  // ### may malfunction if two of the same links are clicked & dragged onto each other)
1700 
1701  if (!event->isAccepted())
1703 
1704 }
QDeclarativeParserStatus ** d
virtual void mousePressEvent(QGraphicsSceneMouseEvent *event)
This event handler, for event event, can be reimplemented to receive mouse press events for this item...
#define Q_D(Class)
Definition: qglobal.h:2482
bool isAccepted() const
Definition: qcoreevent.h:307
static bool isEmpty(const char *str)
QPointF pos() const
Returns the mouse cursor position in item coordinates.

◆ mouseReleaseEvent()

void QDeclarativeText::mouseReleaseEvent ( QGraphicsSceneMouseEvent event)
protectedvirtual
Warning
This function is not part of the public interface.

Reimplemented from QGraphicsItem.

Definition at line 1707 of file qdeclarativetext.cpp.

1708 {
1710 
1711  // ### confirm the link, and send a signal out
1712  if (d->richText && d->doc && d->activeLink == d->doc->documentLayout()->anchorAt(event->pos()))
1713  emit linkActivated(d->activeLink);
1714  else
1715  event->setAccepted(false);
1716 
1717  if (!event->isAccepted())
1719 }
QDeclarativeParserStatus ** d
#define Q_D(Class)
Definition: qglobal.h:2482
bool isAccepted() const
Definition: qcoreevent.h:307
void linkActivated(const QString &link)
#define emit
Definition: qobjectdefs.h:76
QPointF pos() const
Returns the mouse cursor position in item coordinates.
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
This event handler, for event event, can be reimplemented to receive mouse release events for this it...

◆ paint()

void QDeclarativeText::paint ( QPainter p,
const QStyleOptionGraphicsItem ,
QWidget  
)
virtual
Warning
This function is not part of the public interface.

Reimplemented from QDeclarativeItem.

Definition at line 1614 of file qdeclarativetext.cpp.

1615 {
1617 
1618  if (d->cacheAllTextAsImage || d->style != Normal) {
1619  d->checkImageCache();
1620  if (d->imageCache.isNull())
1621  return;
1622 
1623  bool oldAA = p->testRenderHint(QPainter::Antialiasing);
1624  bool oldSmooth = p->testRenderHint(QPainter::SmoothPixmapTransform);
1625  if (d->smooth)
1627 
1628  QRect br = boundingRect().toRect();
1629 
1630  bool needClip = clip() && (d->imageCache.width() > width() ||
1631  d->imageCache.height() > height());
1632 
1633  if (needClip)
1634  p->drawPixmap(0, 0, width(), height(), d->imageCache, -br.x(), -br.y(), width(), height());
1635  else
1636  p->drawPixmap(br.x(), br.y(), d->imageCache);
1637 
1638  if (d->smooth) {
1641  }
1642  } else {
1643  QRectF bounds = boundingRect();
1644 
1645  bool needClip = clip() && (d->layedOutTextRect.width() > width() ||
1646  d->layedOutTextRect.height() > height());
1647 
1648  if (needClip) {
1649  p->save();
1650  p->setClipRect(0, 0, width(), height(), Qt::IntersectClip);
1651  }
1652  if (d->richText) {
1654  context.palette.setColor(QPalette::Text, d->color);
1655  p->translate(bounds.x(), bounds.y());
1656  d->doc->documentLayout()->draw(p, context);
1657  p->translate(-bounds.x(), -bounds.y());
1658  } else {
1659  d->drawTextLayout(p, QPointF(0, bounds.y()), false);
1660  }
1661 
1662  if (needClip) {
1663  p->restore();
1664  }
1665  }
1666 }
qreal y() const
Returns the y-coordinate of the rectangle&#39;s top edge.
Definition: qrect.h:667
QDeclarativeParserStatus ** d
QRectF boundingRect() const
void setClipRect(const QRectF &, Qt::ClipOperation op=Qt::ReplaceClip)
Enables clipping, and sets the clip region to the given rectangle using the given clip operation...
Definition: qpainter.cpp:2801
The QPointF class defines a point in the plane using floating point precision.
Definition: qpoint.h:214
void restore()
Restores the current painter state (pops a saved state off the stack).
Definition: qpainter.cpp:1620
bool testRenderHint(RenderHint hint) const
Returns true if hint is set; otherwise returns false.
Definition: qpainter.h:457
QPalette palette
the default color that is used for the text, when no color is specified.
#define Q_D(Class)
Definition: qglobal.h:2482
void save()
Saves the current painter state (pushes the state onto a stack).
Definition: qpainter.cpp:1590
void setRenderHint(RenderHint hint, bool on=true)
Sets the given render hint on the painter if on is true; otherwise clears the render hint...
Definition: qpainter.cpp:7620
The QRectF class defines a rectangle in the plane using floating point precision. ...
Definition: qrect.h:511
bool clip() const
QRect toRect() const
Returns a QRect based on the values of this rectangle.
Definition: qrect.h:845
void setRenderHints(RenderHints hints, bool on=true)
Sets the given render hints on the painter if on is true; otherwise clears the render hints...
Definition: qpainter.cpp:7649
int y() const
Returns the y-coordinate of the rectangle&#39;s top edge.
Definition: qrect.h:255
qreal x() const
Returns the x-coordinate of the rectangle&#39;s left edge.
Definition: qrect.h:664
int x() const
Returns the x-coordinate of the rectangle&#39;s left edge.
Definition: qrect.h:252
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 QRect class defines a rectangle in the plane using integer precision.
Definition: qrect.h:58
void drawPixmap(const QRectF &targetRect, const QPixmap &pixmap, const QRectF &sourceRect)
Draws the rectangular portion source of the given pixmap into the given target in the paint device...
Definition: qpainter.cpp:5619
void translate(const QPointF &offset)
Translates the coordinate system by the given offset; i.e.
Definition: qpainter.cpp:3311

◆ paintedHeight()

qreal QDeclarativeText::paintedHeight ( ) const

Referenced by geometryChanged().

◆ paintedSizeChanged

void QDeclarativeText::paintedSizeChanged ( )
signal

◆ paintedWidth()

qreal QDeclarativeText::paintedWidth ( ) const

Referenced by geometryChanged().

◆ resetHAlign()

void QDeclarativeText::resetHAlign ( )

Definition at line 1138 of file qdeclarativetext.cpp.

1139 {
1141  d->hAlignImplicit = true;
1142  if (d->determineHorizontalAlignment() && isComponentComplete())
1143  d->updateLayout();
1144 }
QDeclarativeParserStatus ** d
bool isComponentComplete() const
Returns true if construction of the QML component is complete; otherwise returns false.
#define Q_D(Class)
Definition: qglobal.h:2482

◆ resetMaximumLineCount()

void QDeclarativeText::resetMaximumLineCount ( )

Definition at line 1325 of file qdeclarativetext.cpp.

1326 {
1329  d->elidePos = QPointF();
1330  if (d->truncated != false) {
1331  d->truncated = false;
1333  }
1334 }
QDeclarativeParserStatus ** d
The QPointF class defines a point in the plane using floating point precision.
Definition: qpoint.h:214
void truncatedChanged()
#define Q_D(Class)
Definition: qglobal.h:2482
#define emit
Definition: qobjectdefs.h:76
void setMaximumLineCount(int lines)
#define INT_MAX

◆ resourcesLoading()

int QDeclarativeText::resourcesLoading ( ) const

Returns the number of resources (images) that are being loaded asynchronously.

Definition at line 1607 of file qdeclarativetext.cpp.

1608 {
1609  Q_D(const QDeclarativeText);
1610  return d->doc ? d->doc->resourcesLoading() : 0;
1611 }
QDeclarativeParserStatus ** d
#define Q_D(Class)
Definition: qglobal.h:2482

◆ setColor()

void QDeclarativeText::setColor ( const QColor c)

Definition at line 1003 of file qdeclarativetext.cpp.

1004 {
1006  if (d->color == color)
1007  return;
1008 
1009  d->color = color;
1010  d->invalidateImageCache();
1011  emit colorChanged(d->color);
1012 }
QDeclarativeParserStatus ** d
void colorChanged(const QColor &color)
QColor color() const
#define Q_D(Class)
Definition: qglobal.h:2482
#define emit
Definition: qobjectdefs.h:76

◆ setElideMode()

void QDeclarativeText::setElideMode ( QDeclarativeText::TextElideMode  mode)

Definition at line 1452 of file qdeclarativetext.cpp.

1453 {
1455  if (mode == d->elideMode)
1456  return;
1457 
1458  d->elideMode = mode;
1459  d->updateLayout();
1460 
1461  emit elideModeChanged(d->elideMode);
1462 }
QDeclarativeParserStatus ** d
#define Q_D(Class)
Definition: qglobal.h:2482
#define emit
Definition: qobjectdefs.h:76
void elideModeChanged(TextElideMode mode)

◆ setFont()

void QDeclarativeText::setFont ( const QFont font)

Definition at line 912 of file qdeclarativetext.cpp.

913 {
915  if (d->sourceFont == font)
916  return;
917 
918  d->sourceFont = font;
919  QFont oldFont = d->font;
920  d->font = font;
921  if (d->font.pointSizeF() != -1) {
922  // 0.5pt resolution
923  qreal size = qRound(d->font.pointSizeF()*2.0);
924  d->font.setPointSizeF(size/2.0);
925  }
926 
927  if (oldFont != d->font)
928  d->updateLayout();
929 
930  emit fontChanged(d->sourceFont);
931 }
double qreal
Definition: qglobal.h:1193
QDeclarativeParserStatus ** d
void fontChanged(const QFont &font)
#define Q_D(Class)
Definition: qglobal.h:2482
#define emit
Definition: qobjectdefs.h:76
QFont font() const
The QFont class specifies a font used for drawing text.
Definition: qfont.h:64
Q_DECL_CONSTEXPR int qRound(qreal d)
Definition: qglobal.h:1203

◆ setHAlign()

void QDeclarativeText::setHAlign ( HAlignment  align)

Definition at line 1129 of file qdeclarativetext.cpp.

Referenced by QDeclarativeTextPrivate::determineHorizontalAlignment().

1130 {
1132  bool forceAlign = d->hAlignImplicit && d->effectiveLayoutMirror;
1133  d->hAlignImplicit = false;
1134  if (d->setHAlign(align, forceAlign) && isComponentComplete())
1135  d->updateLayout();
1136 }
QDeclarativeParserStatus ** d
bool isComponentComplete() const
Returns true if construction of the QML component is complete; otherwise returns false.
#define Q_D(Class)
Definition: qglobal.h:2482

◆ setLineHeight()

void QDeclarativeText::setLineHeight ( qreal  lineHeight)

Definition at line 1559 of file qdeclarativetext.cpp.

1560 {
1562 
1563  if ((d->lineHeight == lineHeight) || (lineHeight < 0.0))
1564  return;
1565 
1566  d->lineHeight = lineHeight;
1567  d->updateLayout();
1569 }
QDeclarativeParserStatus ** d
void lineHeightChanged(qreal lineHeight)
#define Q_D(Class)
Definition: qglobal.h:2482
#define emit
Definition: qobjectdefs.h:76
qreal lineHeight() const

◆ setLineHeightMode()

void QDeclarativeText::setLineHeightMode ( LineHeightMode  mode)

Definition at line 1592 of file qdeclarativetext.cpp.

1593 {
1595  if (mode == d->lineHeightMode)
1596  return;
1597 
1598  d->lineHeightMode = mode;
1599  d->updateLayout();
1600 
1602 }
QDeclarativeParserStatus ** d
#define Q_D(Class)
Definition: qglobal.h:2482
#define emit
Definition: qobjectdefs.h:76
void lineHeightModeChanged(LineHeightMode mode)

◆ setMaximumLineCount()

void QDeclarativeText::setMaximumLineCount ( int  lines)

Definition at line 1313 of file qdeclarativetext.cpp.

Referenced by resetMaximumLineCount().

1314 {
1316 
1317  d->maximumLineCountValid = lines==INT_MAX ? false : true;
1318  if (d->maximumLineCount != lines) {
1319  d->maximumLineCount = lines;
1320  d->updateLayout();
1322  }
1323 }
QDeclarativeParserStatus ** d
#define Q_D(Class)
Definition: qglobal.h:2482
#define emit
Definition: qobjectdefs.h:76
void maximumLineCountChanged()
#define INT_MAX

◆ setStyle()

void QDeclarativeText::setStyle ( QDeclarativeText::TextStyle  style)

Definition at line 1047 of file qdeclarativetext.cpp.

1048 {
1050  if (d->style == style)
1051  return;
1052 
1053  // changing to/from Normal requires the boundingRect() to change
1054  if (isComponentComplete() && (d->style == Normal || style == Normal))
1056  d->style = style;
1057  d->invalidateImageCache();
1058  emit styleChanged(d->style);
1059 }
QDeclarativeParserStatus ** d
bool isComponentComplete() const
Returns true if construction of the QML component is complete; otherwise returns false.
void styleChanged(TextStyle style)
#define Q_D(Class)
Definition: qglobal.h:2482
TextStyle style() const
#define emit
Definition: qobjectdefs.h:76
void prepareGeometryChange()
Prepares the item for a geometry change.

◆ setStyleColor()

void QDeclarativeText::setStyleColor ( const QColor c)

Definition at line 1085 of file qdeclarativetext.cpp.

1086 {
1088  if (d->styleColor == color)
1089  return;
1090 
1091  d->styleColor = color;
1092  d->invalidateImageCache();
1093  emit styleColorChanged(d->styleColor);
1094 }
QDeclarativeParserStatus ** d
QColor color() const
#define Q_D(Class)
Definition: qglobal.h:2482
#define emit
Definition: qobjectdefs.h:76
void styleColorChanged(const QColor &color)

◆ setText()

void QDeclarativeText::setText ( const QString n)

Definition at line 950 of file qdeclarativetext.cpp.

951 {
953  if (d->text == n)
954  return;
955 
956  d->richText = d->format == RichText || (d->format == AutoText && Qt::mightBeRichText(n));
957  d->text = n;
958  if (isComponentComplete()) {
959  if (d->richText) {
960  d->ensureDoc();
961  d->doc->setText(n);
962  d->rightToLeftText = d->doc->toPlainText().isRightToLeft();
963  } else {
964  d->rightToLeftText = d->text.isRightToLeft();
965  }
966  d->determineHorizontalAlignment();
967  }
968  d->updateLayout();
969  emit textChanged(d->text);
970 }
QDeclarativeParserStatus ** d
bool isComponentComplete() const
Returns true if construction of the QML component is complete; otherwise returns false.
Q_GUI_EXPORT bool mightBeRichText(const QString &)
Returns true if the string text is likely to be rich text; otherwise returns false.
#define Q_D(Class)
Definition: qglobal.h:2482
#define emit
Definition: qobjectdefs.h:76
void textChanged(const QString &text)

◆ setTextFormat()

void QDeclarativeText::setTextFormat ( TextFormat  format)

Definition at line 1399 of file qdeclarativetext.cpp.

1400 {
1402  if (format == d->format)
1403  return;
1404  d->format = format;
1405  bool wasRich = d->richText;
1406  d->richText = format == RichText || (format == AutoText && Qt::mightBeRichText(d->text));
1407 
1408  if (!wasRich && d->richText && isComponentComplete()) {
1409  d->ensureDoc();
1410  d->doc->setText(d->text);
1411  }
1412 
1413  d->updateLayout();
1414 
1415  emit textFormatChanged(d->format);
1416 }
QDeclarativeParserStatus ** d
bool isComponentComplete() const
Returns true if construction of the QML component is complete; otherwise returns false.
Q_GUI_EXPORT bool mightBeRichText(const QString &)
Returns true if the string text is likely to be rich text; otherwise returns false.
void textFormatChanged(TextFormat textFormat)
#define Q_D(Class)
Definition: qglobal.h:2482
#define emit
Definition: qobjectdefs.h:76

◆ setVAlign()

void QDeclarativeText::setVAlign ( VAlignment  align)

Definition at line 1207 of file qdeclarativetext.cpp.

1208 {
1210  if (d->vAlign == align)
1211  return;
1212 
1213  if (isComponentComplete())
1215  d->vAlign = align;
1217 }
QDeclarativeParserStatus ** d
bool isComponentComplete() const
Returns true if construction of the QML component is complete; otherwise returns false.
#define Q_D(Class)
Definition: qglobal.h:2482
#define emit
Definition: qobjectdefs.h:76
void prepareGeometryChange()
Prepares the item for a geometry change.
void verticalAlignmentChanged(VAlignment alignment)

◆ setWrapMode()

void QDeclarativeText::setWrapMode ( WrapMode  w)

Definition at line 1241 of file qdeclarativetext.cpp.

1242 {
1244  if (mode == d->wrapMode)
1245  return;
1246 
1247  d->wrapMode = mode;
1248  d->updateLayout();
1249 
1251 }
QDeclarativeParserStatus ** d
#define Q_D(Class)
Definition: qglobal.h:2482
#define emit
Definition: qobjectdefs.h:76
void wrapModeChanged()

◆ style()

TextStyle QDeclarativeText::style ( ) const

Referenced by setColor(), and setStyle().

◆ styleChanged

void QDeclarativeText::styleChanged ( TextStyle  style)
signal

Referenced by setStyle().

◆ styleColor()

QColor QDeclarativeText::styleColor ( ) const

Referenced by setStyle().

◆ styleColorChanged

void QDeclarativeText::styleColorChanged ( const QColor color)
signal

Referenced by setStyleColor().

◆ text()

QString QDeclarativeText::text ( ) const

◆ textChanged

void QDeclarativeText::textChanged ( const QString text)
signal

Referenced by setText().

◆ textFormat()

TextFormat QDeclarativeText::textFormat ( ) const

Referenced by resetMaximumLineCount().

◆ textFormatChanged

void QDeclarativeText::textFormatChanged ( TextFormat  textFormat)
signal

Referenced by setTextFormat().

◆ truncated()

bool QDeclarativeText::truncated ( ) const

Referenced by setWrapMode().

◆ truncatedChanged

void QDeclarativeText::truncatedChanged ( )
signal

Referenced by resetMaximumLineCount().

◆ vAlign()

QDeclarativeText::VAlignment QDeclarativeText::vAlign ( ) const

Definition at line 1201 of file qdeclarativetext.cpp.

1202 {
1203  Q_D(const QDeclarativeText);
1204  return d->vAlign;
1205 }
QDeclarativeParserStatus ** d
#define Q_D(Class)
Definition: qglobal.h:2482

◆ verticalAlignmentChanged

void QDeclarativeText::verticalAlignmentChanged ( VAlignment  alignment)
signal

Referenced by setVAlign().

◆ wrapMode()

WrapMode QDeclarativeText::wrapMode ( ) const

Referenced by setVAlign().

◆ wrapModeChanged

void QDeclarativeText::wrapModeChanged ( )
signal

Referenced by setWrapMode().

Properties

◆ color

QColor QDeclarativeText::color
private

Definition at line 69 of file qdeclarativetext_p.h.

◆ elide

TextElideMode QDeclarativeText::elide
private

Definition at line 80 of file qdeclarativetext_p.h.

◆ font

QFont QDeclarativeText::font
private

Definition at line 68 of file qdeclarativetext_p.h.

◆ horizontalAlignment

HAlignment QDeclarativeText::horizontalAlignment
private

Definition at line 72 of file qdeclarativetext_p.h.

◆ lineCount

int QDeclarativeText::lineCount
private

Definition at line 75 of file qdeclarativetext_p.h.

◆ lineHeight

qreal QDeclarativeText::lineHeight
private

Definition at line 83 of file qdeclarativetext_p.h.

◆ lineHeightMode

QDeclarativeText::LineHeightMode QDeclarativeText::lineHeightMode
private

Definition at line 84 of file qdeclarativetext_p.h.

◆ maximumLineCount

int QDeclarativeText::maximumLineCount
private

Definition at line 77 of file qdeclarativetext_p.h.

◆ paintedHeight

qreal QDeclarativeText::paintedHeight
private

Definition at line 82 of file qdeclarativetext_p.h.

◆ paintedWidth

qreal QDeclarativeText::paintedWidth
private

Definition at line 81 of file qdeclarativetext_p.h.

◆ style

QDeclarativeText::TextStyle QDeclarativeText::style
private

Definition at line 70 of file qdeclarativetext_p.h.

◆ styleColor

QColor QDeclarativeText::styleColor
private

Definition at line 71 of file qdeclarativetext_p.h.

◆ text

QString QDeclarativeText::text
private

◆ textFormat

QDeclarativeText::TextFormat QDeclarativeText::textFormat
private

Definition at line 79 of file qdeclarativetext_p.h.

◆ truncated

bool QDeclarativeText::truncated
private

Definition at line 76 of file qdeclarativetext_p.h.

◆ verticalAlignment

VAlignment QDeclarativeText::verticalAlignment
private

Definition at line 73 of file qdeclarativetext_p.h.

◆ wrapMode

QDeclarativeText::WrapMode QDeclarativeText::wrapMode
private

Definition at line 74 of file qdeclarativetext_p.h.


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