42 #include "private/qdeclarativevaluetype_p.h" 44 #include "private/qdeclarativemetatype_p.h" 45 #include "private/qfont_p.h" 47 #include <QtGui/qapplication.h> 48 #include <QtCore/qdebug.h> 62 qRegisterMetaType<T *>(pointerName.
constData()), 0, 0, 0,
66 uri, versionMajor, versionMinor, qmlName, &T::staticMetaObject,
103 qmlRegisterValueTypeEnums<QDeclarativeEasingValueType>(
"QtQuick",1,0,
"Easing");
104 qmlRegisterValueTypeEnums<QDeclarativeFontValueType>(
"QtQuick",1,0,
"Font");
112 qmlRegisterValueTypeEnums<QDeclarativeEasingValueType>(
"Qt",4,7,
"Easing");
113 qmlRegisterValueTypeEnums<QDeclarativeFontValueType>(
"Qt",4,7,
"Font");
180 void *
a[] = { &
point, 0 };
228 void *
a[] = { &
point, 0 };
276 void *
a[] = { &
size, 0 };
324 void *
a[] = { &
size, 0 };
372 void *
a[] = { &
rect, 0 };
440 void *
a[] = { &
rect, 0 };
846 void *
a[] = { &
font, 0 };
953 qWarning() <<
"Both point size and pixel size set. Using pixel size.";
979 qWarning() <<
"Both point size and pixel size set. Using pixel size.";
The QVariant class acts like a union for the most common Qt data types.
int qmlRegisterValueTypeEnums(const char *uri, int versionMajor, int versionMinor, const char *qmlName)
virtual void read(QObject *, int)
void setWordSpacing(qreal spacing)
Sets the word spacing for the font to spacing.
void moveTop(qreal pos)
Moves the rectangle vertically, leaving the rectangle's top line at the given y coordinate.
virtual void read(QObject *, int)
void setCapitalization(Capitalization)
Sets the capitalization of the text in this font to caps.
qreal y() const
Returns the y-coordinate of the rectangle's top edge.
The QVector3D class represents a vector or vertex in 3D space.
void setHeight(int h)
Sets the height of the rectangle to the given height.
virtual void write(QObject *, int, QDeclarativePropertyPrivate::WriteFlags)
qreal overshoot() const
Returns the overshoot.
FontWeight weight() const
void setHeight(qreal h)
Sets the height of the rectangle to the given height.
qreal x() const
Returns the x coordinate of this quaternion's vector.
#define QT_END_NAMESPACE
This macro expands to.
QDeclarativeSizeValueType(QObject *parent=0)
virtual void setValue(QVariant value)
void setZ(qreal z)
Sets the z coordinate of this quaternion's vector to the given z coordinate.
The QEasingCurve class provides easing curves for controlling animation.
virtual void read(QObject *, int)
virtual void setValue(QVariant value)
void moveLeft(int pos)
Moves the rectangle horizontally, leaving the rectangle's left edge at the given x coordinate...
qreal period() const
Returns the period.
void moveLeft(qreal pos)
Moves the rectangle horizontally, leaving the rectangle's left edge at the given x coordinate...
virtual void write(QObject *, int, QDeclarativePropertyPrivate::WriteFlags)
bool underline() const
Returns true if underline has been set; otherwise returns false.
void setUnderline(bool)
If enable is true, sets underline on; otherwise sets underline off.
qreal width() const
Returns the width.
void setX(qreal x)
Sets the x coordinate of this quaternion's vector to the given x coordinate.
int pixelSize() const
Returns the pixel size of the font if it was set with setPixelSize().
static QDeclarativeValueType * valueType(int)
The QByteArray class provides an array of bytes.
qreal w() const
Returns the w coordinate of this point.
void setY(qreal y)
Sets the y coordinate of this point to the given y coordinate.
void setCapitalization(Capitalization)
The QVector4D class represents a vector or vertex in 4D space.
The QPointF class defines a point in the plane using floating point precision.
qreal height() const
Returns the height.
virtual void read(QObject *, int)
static void registerValueTypesCompat()
Capitalization capitalization() const
Returns the current capitalization type of the font.
virtual void setValue(QVariant value)
void setFamily(const QString &)
int width() const
Returns the width of the rectangle.
virtual void read(QObject *, int)
static LibLoadStatus status
virtual void write(QObject *, int, QDeclarativePropertyPrivate::WriteFlags)
virtual void read(QObject *, int)
Weight
Qt uses a weighting scale from 0 to 99 similar to, but not the same as, the scales used in Windows or...
long ASN1_INTEGER_get ASN1_INTEGER * a
virtual void setValue(QVariant value)
virtual void setValue(QVariant value)
qreal x() const
Returns the x coordinate of this point.
int height() const
Returns the height of the rectangle.
virtual void read(QObject *, int)
QDeclarativeFontValueType(QObject *parent=0)
The QString class provides a Unicode character string.
void setHeight(int h)
Sets the height to the given height.
void setItalic(bool b)
Sets the style() of the font to QFont::StyleItalic if enable is true; otherwise the style is set to Q...
void setWidth(qreal w)
Sets the width to the given width.
void setX(qreal x)
Sets the x coordinate of this point to the given x coordinate.
Capitalization
Rendering option for text this font applies to.
The QObject class is the base class of all Qt objects.
virtual void write(QObject *, int, QDeclarativePropertyPrivate::WriteFlags)
~QDeclarativeValueTypeFactory()
The QSizeF class defines the size of a two-dimensional object using floating point precision...
QDeclarativeRectValueType(QObject *parent=0)
qreal amplitude() const
Returns the amplitude.
qreal x() const
Returns the x-coordinate of this point.
void setFamily(const QString &)
Sets the family name of the font.
void setWidth(int w)
Sets the width to the given width.
void setLetterSpacing(qreal spacing)
virtual void write(QObject *, int, QDeclarativePropertyPrivate::WriteFlags)
QDeclarativeVector2DValueType(QObject *parent=0)
qreal scalar() const
Returns the scalar component of this quaternion.
int width() const
Returns the width.
Type type() const
Returns the type of the easing curve.
void setPeriod(qreal period)
Sets the period to period.
virtual void write(QObject *, int, QDeclarativePropertyPrivate::WriteFlags)
#define QT_BEGIN_NAMESPACE
This macro expands to.
qreal pointSizeF() const
Returns the point size of the font.
void setUnderline(bool b)
virtual void write(QObject *, int, QDeclarativePropertyPrivate::WriteFlags)
The QRectF class defines a rectangle in the plane using floating point precision. ...
void setBold(bool)
If enable is true sets the font's weight to QFont::Bold ; otherwise sets the weight to QFont::Normal...
virtual void write(QObject *, int, QDeclarativePropertyPrivate::WriteFlags)
QDeclarativeValueTypeFactory()
void setScalar(qreal scalar)
Sets the scalar component of this quaternion to scalar.
virtual void read(QObject *, int)
bool overline() const
Returns true if overline has been set; otherwise returns false.
QDeclarativeValueType * valueTypes[QVariant::UserType - 1]
void setStrikeOut(bool)
If enable is true, sets strikeout on; otherwise sets strikeout off.
qreal x() const
Returns the x coordinate of this point.
void setZ(qreal z)
Sets the z coordinate of this point to the given z coordinate.
virtual void setValue(QVariant value)
qreal height() const
Returns the height of the rectangle.
QDeclarativeMatrix4x4ValueType(QObject *parent=0)
Q_CORE_EXPORT void qWarning(const char *,...)
static void registerValueTypes()
void setX(qreal x)
Sets the x coordinate of this point to the given x coordinate.
The QMatrix4x4 class represents a 4x4 transformation matrix in 3D space.
virtual void write(QObject *, int, QDeclarativePropertyPrivate::WriteFlags)
The QVector2D class represents a vector or vertex in 2D space.
virtual void setValue(QVariant value)
void setOvershoot(qreal overshoot)
Sets the overshoot to overshoot.
void setPointSize(qreal size)
qreal x() const
Returns the x coordinate of this point.
void setWordSpacing(qreal spacing)
qreal width() const
Returns the width of the rectangle.
int Q_DECLARATIVE_EXPORT qmlregister(RegistrationType, void *)
void setWeight(FontWeight)
qreal z() const
Returns the z coordinate of this point.
void setY(qreal y)
Sets the y coordinate of this point to the given y coordinate.
qreal wordSpacing() const
Returns the word spacing for the font.
virtual void write(QObject *, int, QDeclarativePropertyPrivate::WriteFlags)
void setStrikeout(bool b)
virtual void read(QObject *, int)
qreal y() const
Returns the y coordinate of this quaternion's vector.
void setW(qreal w)
Sets the w coordinate of this point to the given w coordinate.
const char * constData() const
Returns a pointer to the data stored in the byte array.
bool bold() const
Returns true if weight() is a value greater than QFont::Normal ; otherwise returns false...
virtual void setValue(QVariant value)
QDeclarativePointFValueType(QObject *parent=0)
void setY(int y)
Sets the y coordinate of this point to the given y coordinate.
virtual void setValue(QVariant value)
QDeclarativeValueType(QObject *parent=0)
virtual void read(QObject *, int)
static bool isValueType(int)
The QFont class specifies a font used for drawing text.
int y() const
Returns the y-coordinate of the rectangle's top edge.
qreal x() const
Returns the x-coordinate of the rectangle's left edge.
void setX(qreal x)
Sets the x coordinate of this point to the given x coordinate.
virtual void write(QObject *, int, QDeclarativePropertyPrivate::WriteFlags)
QString family() const
Returns the requested font family name, i.e.
Q_GUI_EXPORT int qt_defaultDpi()
void setOverline(bool)
If enable is true, sets overline on; otherwise sets overline off.
void setZ(qreal z)
Sets the z coordinate of this point to the given z coordinate.
qreal z() const
Returns the z coordinate of this quaternion's vector.
int x() const
Returns the x-coordinate of the rectangle's left edge.
qreal letterSpacing() const
QObject * parent() const
Returns a pointer to the parent object.
virtual void read(QObject *, int)
virtual void setValue(QVariant value)
The QPoint class defines a point in the plane using integer precision.
QDeclarativeEasingValueType(QObject *parent=0)
Capitalization capitalization() const
qreal y() const
Returns the y coordinate of this point.
void setWidth(int w)
Sets the width of the rectangle to the given width.
virtual void setValue(QVariant value)
void setWeight(int)
Sets the weight the font to weight, which should be a value from the QFont::Weight enumeration...
int height() const
Returns the height.
qreal y() const
Returns the y coordinate of this point.
The QRect class defines a rectangle in the plane using integer precision.
int weight() const
Returns the weight of the font which is one of the enumerated values from QFont::Weight.
The QQuaternion class represents a quaternion consisting of a vector and scalar.
T qvariant_cast(const QVariant &)
virtual void read(QObject *, int)
void setAmplitude(qreal amplitude)
Sets the amplitude to amplitude.
QDeclarativeVector4DValueType(QObject *parent=0)
int y() const
Returns the y coordinate of this point.
void setX(qreal x)
Sets the x coordinate of this point to the given x coordinate.
qreal y() const
Returns the y-coordinate of this point.
QDeclarativeRectFValueType(QObject *parent=0)
void setPointSizeF(qreal)
Sets the point size to pointSize.
QDeclarativePointValueType(QObject *parent=0)
void setHeight(qreal h)
Sets the height to the given height.
QDeclarativeQuaternionValueType(QObject *parent=0)
bool italic() const
Returns true if the style() of the font is not QFont::StyleNormal.
void setPixelSize(int size)
The QSize class defines the size of a two-dimensional object using integer point precision.
void setWidth(qreal w)
Sets the width of the rectangle to the given width.
Type
The type of easing curve.
int x() const
Returns the x coordinate of this point.
virtual void read(QObject *, int)
void setLetterSpacing(SpacingType type, qreal spacing)
Sets the letter spacing for the font to spacing and the type of spacing to type.
virtual void setValue(QVariant value)
void moveTop(int pos)
Moves the rectangle vertically, leaving the rectangle's top edge at the given y coordinate.
void setPixelSize(int)
Sets the font size to pixelSize pixels.
void setY(qreal y)
Sets the y coordinate of this point to the given y coordinate.
bool strikeOut() const
Returns true if strikeout has been set; otherwise returns false.
QDeclarativeSizeFValueType(QObject *parent=0)
qreal z() const
Returns the z coordinate of this point.
QDeclarativeNullableValue< int > dpi
void setY(qreal y)
Sets the y coordinate of this quaternion's vector to the given y coordinate.
void setX(int x)
Sets the x coordinate of this point to the given x coordinate.
static Type type()
Returns the type of application (Tty , GuiClient, or GuiServer).
void setY(qreal y)
Sets the y coordinate of this point to the given y coordinate.
qreal y() const
Returns the y coordinate of this point.
virtual const QMetaObject * metaObject() const
Returns a pointer to the meta-object of this object.
void setType(Type type)
Sets the type of the easing curve to type.
qreal wordSpacing() const
QDeclarativeVector3DValueType(QObject *parent=0)
virtual void write(QObject *, int, QDeclarativePropertyPrivate::WriteFlags)
virtual void setValue(QVariant value)
virtual void write(QObject *, int, QDeclarativePropertyPrivate::WriteFlags)
qreal letterSpacing() const
Returns the letter spacing for the font.