42 #ifndef QDECLARATIVETEXT_H 43 #define QDECLARATIVETEXT_H 45 #include <QtGui/qtextoption.h> 48 #include <private/qdeclarativeglobal_p.h> 123 void setFont(
const QFont &font);
126 void setColor(
const QColor &
c);
131 QColor styleColor()
const;
132 void setStyleColor(
const QColor &c);
145 int lineCount()
const;
146 bool truncated()
const;
148 int maximumLineCount()
const;
149 void setMaximumLineCount(
int lines);
150 void resetMaximumLineCount();
158 qreal lineHeight()
const;
159 void setLineHeight(
qreal lineHeight);
168 int resourcesLoading()
const;
170 qreal paintedWidth()
const;
171 qreal paintedHeight()
const;
176 void textChanged(
const QString &text);
177 void linkActivated(
const QString &link);
178 void fontChanged(
const QFont &font);
179 void colorChanged(
const QColor &color);
181 void styleColorChanged(
const QColor &color);
182 void horizontalAlignmentChanged(
HAlignment alignment);
183 void verticalAlignmentChanged(
VAlignment alignment);
184 void wrapModeChanged();
185 Q_REVISION(1)
void lineCountChanged();
186 Q_REVISION(1)
void truncatedChanged();
187 Q_REVISION(1)
void maximumLineCountChanged();
188 void textFormatChanged(
TextFormat textFormat);
190 void paintedSizeChanged();
191 Q_REVISION(1)
void lineHeightChanged(
qreal lineHeight);
198 const QRectF &oldGeometry);
The QPainter class performs low-level painting on widgets and other paint devices.
The QColor class provides colors based on RGB, HSV or CMYK values.
#define QT_END_NAMESPACE
This macro expands to.
QScopedPointer< QGraphicsItemPrivate > d_ptr
#define QML_DECLARE_TYPE(TYPE)
The QGraphicsSceneMouseEvent class provides mouse events in the graphics view framework.
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
The QString class provides a Unicode character string.
virtual void mousePressEvent(QGraphicsSceneMouseEvent *event)
This event handler, for event event, can be reimplemented to receive mouse press events for this item...
QRectF boundingRect() const
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QRectF class defines a rectangle in the plane using floating point precision. ...
The QDeclarativeItem class provides the most basic of all visual items in QML.
QVariant data(int key) const
Returns this item's custom data for the key key as a QVariant.
#define Q_DECLARATIVE_PRIVATE_EXPORT
virtual void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry)
This function is called to handle this item's changes in geometry from oldGeometry to newGeometry...
#define Q_DECLARE_PRIVATE_D(Dptr, Class)
The QFont class specifies a font used for drawing text.
virtual void componentComplete()
virtual void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *)
The QStyleOptionGraphicsItem class is used to describe the parameters needed to draw a QGraphicsItem...
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
This event handler, for event event, can be reimplemented to receive mouse release events for this it...