42 #ifndef QDECLARATIVERECT_H 43 #define QDECLARATIVERECT_H 47 #include <QtGui/qbrush.h> 49 #include <private/qdeclarativeglobal_p.h> 64 : QObject(parent), _width(1), _color(
"#000000"), _valid(false)
67 int width()
const {
return _width; }
101 void updateGradient();
148 void setColor(
const QColor &);
155 qreal radius()
const;
156 void setRadius(
qreal radius);
164 void radiusChanged();
170 void generateRoundedRect();
171 void generateBorderedRect();
188 #endif // QDECLARATIVERECT_H 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.
void setPosition(qreal position)
#define Q_CLASSINFO(name, value)
This macro associates extra information to the class, which is available using QObject::metaObject()...
#define QT_END_NAMESPACE
This macro expands to.
QDeclarativeGradient * gradient
QScopedPointer< QGraphicsItemPrivate > d_ptr
#define QML_DECLARE_TYPE(TYPE)
static qreal position(QGraphicsObject *item, QDeclarativeAnchorLine::AnchorLine anchorLine)
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
QDeclarativePen *qreal radius
The QObject class is the base class of all Qt objects.
static const QRectF boundingRect(const QPointF *points, int pointCount)
#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.
static const char * data(const QByteArray &arr)
#define Q_DECLARATIVE_PRIVATE_EXPORT
QDeclarativeGradientStop(QObject *parent=0)
#define Q_DECLARE_PRIVATE_D(Dptr, Class)
QDeclarativePen(QObject *parent=0)
void setColor(const QColor &color)
The QGradient class is used in combination with QBrush to specify gradient fills. ...
#define Q_AUTOTEST_EXPORT
QList< QDeclarativeGradientStop * > m_stops
QDeclarativeListProperty< QDeclarativeGradientStop > stops
The QDeclarativePen class provides a pen used for drawing rectangle borders on a QDeclarativeView.
QDeclarativeListProperty< QDeclarativeGradientStop > stops()
The QStyleOptionGraphicsItem class is used to describe the parameters needed to draw a QGraphicsItem...
The QList class is a template class that provides lists.