Qt 4.8
|
#include <qdeclarativetext_p_p.h>
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... | |
QTextDocument * | textDocument () |
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) |
AnchorLines * | anchorLines () const |
QDeclarativeAnchors * | anchors () |
QDeclarativeAnchorLine | baseline () const |
QDeclarativeAnchorLine | bottom () const |
QPointF | computeTransformOrigin () const |
QDeclarativeListProperty< QObject > | data () |
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< QObject > | resources () |
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< QDeclarativeState > | states () |
QDeclarativeAnchorLine | top () const |
virtual void | transformChanged () |
QDeclarativeListProperty< QDeclarativeTransition > | transitions () |
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< QGraphicsObject > | childrenList () |
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 |
QGraphicsItemCache * | extraItemCache () 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) |
QGraphicsItemCache * | maybeExtraItemCache () 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 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 } |
Definition at line 69 of file qdeclarativetext_p_p.h.
QDeclarativeTextPrivate::QDeclarativeTextPrivate | ( | ) |
Definition at line 89 of file qdeclarativetext.cpp.
QDeclarativeTextPrivate::~QDeclarativeTextPrivate | ( | ) |
Definition at line 179 of file qdeclarativetext.cpp.
void QDeclarativeTextPrivate::checkImageCache | ( | ) |
Tests if the image cache is dirty, and repaints it if it is.
Definition at line 565 of file qdeclarativetext.cpp.
bool QDeclarativeTextPrivate::determineHorizontalAlignment | ( | ) |
Definition at line 1176 of file qdeclarativetext.cpp.
|
static |
Draw styleSource as an outline around source and return the new image.
Definition at line 624 of file qdeclarativetext.cpp.
|
static |
Draw styleSource below source at yOffset and return the new image.
Definition at line 651 of file qdeclarativetext.cpp.
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.
void QDeclarativeTextPrivate::ensureDoc | ( | ) |
Ensures the QDeclarativeTextPrivate::doc variable is set to a valid text document.
Definition at line 612 of file qdeclarativetext.cpp.
|
inlinestatic |
Definition at line 137 of file qdeclarativetext_p_p.h.
Referenced by QTextDocumentWithImageResources::requestFinished().
|
virtual |
Reimplemented from QDeclarativeItemPrivate.
Definition at line 183 of file qdeclarativetext.cpp.
void QDeclarativeTextPrivate::invalidateImageCache | ( | ) |
Mark the image cache as dirty.
Definition at line 547 of file qdeclarativetext.cpp.
|
virtual |
Reimplemented from QDeclarativeItemPrivate.
Definition at line 1186 of file qdeclarativetext.cpp.
bool QDeclarativeTextPrivate::setHAlign | ( | QDeclarativeText::HAlignment | alignment, |
bool | forceAlign = false |
||
) |
Definition at line 1165 of file qdeclarativetext.cpp.
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.
QTextDocument * QDeclarativeTextPrivate::textDocument | ( | ) |
Definition at line 1196 of file qdeclarativetext.cpp.
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.
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.
void QDeclarativeTextPrivate::updateLayout | ( | ) |
Definition at line 195 of file qdeclarativetext.cpp.
Referenced by QTextDocumentWithImageResources::requestFinished().
void QDeclarativeTextPrivate::updateSize | ( | ) |
Definition at line 233 of file qdeclarativetext.cpp.
Referenced by implicitWidth().
QString QDeclarativeTextPrivate::activeLink |
Definition at line 90 of file qdeclarativetext_p_p.h.
bool QDeclarativeTextPrivate::cacheAllTextAsImage |
Definition at line 114 of file qdeclarativetext_p_p.h.
Referenced by QDeclarativeTextPrivate().
QColor QDeclarativeTextPrivate::color |
Definition at line 87 of file qdeclarativetext_p_p.h.
QTextDocumentWithImageResources* QDeclarativeTextPrivate::doc |
Definition at line 127 of file qdeclarativetext_p_p.h.
Definition at line 104 of file qdeclarativetext_p_p.h.
QDeclarativeText::TextElideMode QDeclarativeTextPrivate::elideMode |
Definition at line 93 of file qdeclarativetext_p_p.h.
QPointF QDeclarativeTextPrivate::elidePos |
Definition at line 102 of file qdeclarativetext_p_p.h.
QFont QDeclarativeTextPrivate::font |
Definition at line 85 of file qdeclarativetext_p_p.h.
QDeclarativeText::TextFormat QDeclarativeTextPrivate::format |
Definition at line 94 of file qdeclarativetext_p_p.h.
QDeclarativeText::HAlignment QDeclarativeTextPrivate::hAlign |
Definition at line 91 of file qdeclarativetext_p_p.h.
bool QDeclarativeTextPrivate::hAlignImplicit |
Definition at line 117 of file qdeclarativetext_p_p.h.
QPixmap QDeclarativeTextPrivate::imageCache |
Definition at line 108 of file qdeclarativetext_p_p.h.
bool QDeclarativeTextPrivate::imageCacheDirty |
Definition at line 110 of file qdeclarativetext_p_p.h.
bool QDeclarativeTextPrivate::internalWidthUpdate |
Definition at line 115 of file qdeclarativetext_p_p.h.
QRect QDeclarativeTextPrivate::layedOutTextRect |
Definition at line 121 of file qdeclarativetext_p_p.h.
QDeclarativeTextLayout QDeclarativeTextPrivate::layout |
Definition at line 132 of file qdeclarativetext_p_p.h.
bool QDeclarativeTextPrivate::layoutTextElided |
Definition at line 119 of file qdeclarativetext_p_p.h.
int QDeclarativeTextPrivate::lineCount |
Definition at line 98 of file qdeclarativetext_p_p.h.
qreal QDeclarativeTextPrivate::lineHeight |
Definition at line 96 of file qdeclarativetext_p_p.h.
QDeclarativeText::LineHeightMode QDeclarativeTextPrivate::lineHeightMode |
Definition at line 97 of file qdeclarativetext_p_p.h.
int QDeclarativeTextPrivate::maximumLineCount |
Definition at line 100 of file qdeclarativetext_p_p.h.
int QDeclarativeTextPrivate::maximumLineCountValid |
Definition at line 101 of file qdeclarativetext_p_p.h.
qreal QDeclarativeTextPrivate::naturalWidth |
Definition at line 123 of file qdeclarativetext_p_p.h.
QSize QDeclarativeTextPrivate::paintedSize |
Definition at line 122 of file qdeclarativetext_p_p.h.
bool QDeclarativeTextPrivate::requireImplicitWidth |
Definition at line 116 of file qdeclarativetext_p_p.h.
Referenced by implicitWidth().
bool QDeclarativeTextPrivate::richText |
Definition at line 112 of file qdeclarativetext_p_p.h.
bool QDeclarativeTextPrivate::rightToLeftText |
Definition at line 118 of file qdeclarativetext_p_p.h.
bool QDeclarativeTextPrivate::singleline |
Definition at line 113 of file qdeclarativetext_p_p.h.
QFont QDeclarativeTextPrivate::sourceFont |
Definition at line 86 of file qdeclarativetext_p_p.h.
QDeclarativeText::TextStyle QDeclarativeTextPrivate::style |
Definition at line 88 of file qdeclarativetext_p_p.h.
QColor QDeclarativeTextPrivate::styleColor |
Definition at line 89 of file qdeclarativetext_p_p.h.
QString QDeclarativeTextPrivate::text |
Definition at line 84 of file qdeclarativetext_p_p.h.
bool QDeclarativeTextPrivate::truncated |
Definition at line 99 of file qdeclarativetext_p_p.h.
bool QDeclarativeTextPrivate::updateOnComponentComplete |
Definition at line 111 of file qdeclarativetext_p_p.h.
QDeclarativeText::VAlignment QDeclarativeTextPrivate::vAlign |
Definition at line 92 of file qdeclarativetext_p_p.h.
QDeclarativeText::WrapMode QDeclarativeTextPrivate::wrapMode |
Definition at line 95 of file qdeclarativetext_p_p.h.