summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-05-27 00:42:51 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-05-27 00:42:51 (GMT)
commit65ba2e6f8a57058305e4ca3bdf77c4e8fed3c243 (patch)
treeebfd7b42b7142702b23580687980a87ba80c2663 /src
parent451c2361bca1c4419b25c1c5fe088d3315924fa5 (diff)
parent861f0fcd140232e8fe94122d640ab69a7c116663 (diff)
downloadQt-65ba2e6f8a57058305e4ca3bdf77c4e8fed3c243.zip
Qt-65ba2e6f8a57058305e4ca3bdf77c4e8fed3c243.tar.gz
Qt-65ba2e6f8a57058305e4ca3bdf77c4e8fed3c243.tar.bz2
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Diffstat (limited to 'src')
-rw-r--r--src/declarative/canvas/qsimplecanvasfilter.h2
-rw-r--r--src/declarative/canvas/qsimplecanvasitem.h6
-rw-r--r--src/declarative/canvas/qsimplecanvasitem_p.h10
-rw-r--r--src/declarative/debugger/qmldebuggerstatus.h2
-rw-r--r--src/declarative/extra/qfxintegermodel.cpp2
-rw-r--r--src/declarative/extra/qfxintegermodel.h6
-rw-r--r--src/declarative/extra/qmlnumberformatter.h2
-rw-r--r--src/declarative/extra/qmlsqlconnection.cpp2
-rw-r--r--src/declarative/extra/qmlsqlconnection.h22
-rw-r--r--src/declarative/extra/qmlsqlquery.cpp4
-rw-r--r--src/declarative/extra/qmlsqlquery.h6
-rw-r--r--src/declarative/extra/qmlxmllistmodel.cpp4
-rw-r--r--src/declarative/extra/qmlxmllistmodel.h4
-rw-r--r--src/declarative/extra/qnumberformat.cpp2
-rw-r--r--src/declarative/extra/qnumberformat.h18
-rw-r--r--src/declarative/fx/qfxanchors.cpp2
-rw-r--r--src/declarative/fx/qfxanchors.h36
-rw-r--r--src/declarative/fx/qfxanimatedimageitem.cpp2
-rw-r--r--src/declarative/fx/qfxanimatedimageitem.h2
-rw-r--r--src/declarative/fx/qfxblendedimage.cpp2
-rw-r--r--src/declarative/fx/qfxblendedimage.h2
-rw-r--r--src/declarative/fx/qfxblurfilter.cpp2
-rw-r--r--src/declarative/fx/qfxblurfilter.h2
-rw-r--r--src/declarative/fx/qfxcomponentinstance.cpp2
-rw-r--r--src/declarative/fx/qfxcomponentinstance.h4
-rw-r--r--src/declarative/fx/qfxcontentwrapper.cpp4
-rw-r--r--src/declarative/fx/qfxcontentwrapper.h4
-rw-r--r--src/declarative/fx/qfxcontentwrapper_p.h2
-rw-r--r--src/declarative/fx/qfxevents.cpp4
-rw-r--r--src/declarative/fx/qfxevents_p.h4
-rw-r--r--src/declarative/fx/qfxflickable.cpp2
-rw-r--r--src/declarative/fx/qfxflickable.h28
-rw-r--r--src/declarative/fx/qfxflickable_p.h2
-rw-r--r--src/declarative/fx/qfxflipable.cpp2
-rw-r--r--src/declarative/fx/qfxflipable.h4
-rw-r--r--src/declarative/fx/qfxfocuspanel.cpp2
-rw-r--r--src/declarative/fx/qfxfocuspanel.h2
-rw-r--r--src/declarative/fx/qfxfocusrealm.cpp2
-rw-r--r--src/declarative/fx/qfxfocusrealm.h2
-rw-r--r--src/declarative/fx/qfxgridview.cpp2
-rw-r--r--src/declarative/fx/qfxgridview.h32
-rw-r--r--src/declarative/fx/qfxhighlightfilter.cpp2
-rw-r--r--src/declarative/fx/qfxhighlightfilter.h2
-rw-r--r--src/declarative/fx/qfximage.cpp2
-rw-r--r--src/declarative/fx/qfximage.h2
-rw-r--r--src/declarative/fx/qfxitem.cpp6
-rw-r--r--src/declarative/fx/qfxitem.h12
-rw-r--r--src/declarative/fx/qfxitem_p.h6
-rw-r--r--src/declarative/fx/qfxkeyactions.cpp2
-rw-r--r--src/declarative/fx/qfxkeyactions.h2
-rw-r--r--src/declarative/fx/qfxkeyproxy.cpp2
-rw-r--r--src/declarative/fx/qfxkeyproxy.h2
-rw-r--r--src/declarative/fx/qfxlayouts.cpp6
-rw-r--r--src/declarative/fx/qfxlayouts.h6
-rw-r--r--src/declarative/fx/qfxlistview.cpp2
-rw-r--r--src/declarative/fx/qfxlistview.h38
-rw-r--r--src/declarative/fx/qfxmouseregion.cpp4
-rw-r--r--src/declarative/fx/qfxmouseregion.h4
-rw-r--r--src/declarative/fx/qfxpainteditem.h6
-rw-r--r--src/declarative/fx/qfxparticles.cpp10
-rw-r--r--src/declarative/fx/qfxparticles.h44
-rw-r--r--src/declarative/fx/qfxpath.cpp16
-rw-r--r--src/declarative/fx/qfxpath.h18
-rw-r--r--src/declarative/fx/qfxpathview.cpp2
-rw-r--r--src/declarative/fx/qfxpathview.h2
-rw-r--r--src/declarative/fx/qfxrect.cpp4
-rw-r--r--src/declarative/fx/qfxrect.h4
-rw-r--r--src/declarative/fx/qfxreflectionfilter.cpp2
-rw-r--r--src/declarative/fx/qfxreflectionfilter.h2
-rw-r--r--src/declarative/fx/qfxrepeater.cpp2
-rw-r--r--src/declarative/fx/qfxrepeater.h2
-rw-r--r--src/declarative/fx/qfxscalegrid.cpp2
-rw-r--r--src/declarative/fx/qfxscalegrid.h2
-rw-r--r--src/declarative/fx/qfxshadowfilter.cpp2
-rw-r--r--src/declarative/fx/qfxshadowfilter.h2
-rw-r--r--src/declarative/fx/qfxtext.cpp2
-rw-r--r--src/declarative/fx/qfxtext.h4
-rw-r--r--src/declarative/fx/qfxtextedit.cpp2
-rw-r--r--src/declarative/fx/qfxtextedit.h2
-rw-r--r--src/declarative/fx/qfxtransform.cpp12
-rw-r--r--src/declarative/fx/qfxtransform.h14
-rw-r--r--src/declarative/fx/qfxvisualitemmodel.cpp4
-rw-r--r--src/declarative/fx/qfxvisualitemmodel.h2
-rw-r--r--src/declarative/fx/qfxwebview.cpp2
-rw-r--r--src/declarative/fx/qfxwebview.h2
-rw-r--r--src/declarative/fx/qfxwidgetcontainer.cpp2
-rw-r--r--src/declarative/fx/qfxwidgetcontainer.h2
-rw-r--r--src/declarative/opengl/glsave.h4
-rw-r--r--src/declarative/opengl/gltexture.h2
-rw-r--r--src/declarative/qml/parser/javascriptlexer.cpp37
-rw-r--r--src/declarative/qml/qml.h14
-rw-r--r--src/declarative/qml/qmlbindablevalue.h6
-rw-r--r--src/declarative/qml/qmlbindablevalue_p.h2
-rw-r--r--src/declarative/qml/qmlcomponent.h4
-rw-r--r--src/declarative/qml/qmlcustomparser_p.h4
-rw-r--r--src/declarative/qml/qmlengine.cpp6
-rw-r--r--src/declarative/qml/qmlparser_p.h2
-rw-r--r--src/declarative/qml/qmlparserstatus.h2
-rw-r--r--src/declarative/qml/qmlprivate.h2
-rw-r--r--src/declarative/qml/qmlpropertyvaluesource.cpp2
-rw-r--r--src/declarative/qml/qmlpropertyvaluesource.h2
-rw-r--r--src/declarative/qml/qmlscriptparser.cpp54
-rw-r--r--src/declarative/qml/qmlscriptparser_p.h40
-rw-r--r--src/declarative/qml/rewriter/rewriter.cpp41
-rw-r--r--src/declarative/qml/rewriter/rewriter.pri9
-rw-r--r--src/declarative/qml/rewriter/rewriter_p.h145
-rw-r--r--src/declarative/qml/rewriter/textwriter.cpp41
-rw-r--r--src/declarative/qml/rewriter/textwriter_p.h91
-rw-r--r--src/declarative/util/qfxperf.h54
-rw-r--r--src/declarative/util/qmlanimation.cpp20
-rw-r--r--src/declarative/util/qmlanimation.h112
-rw-r--r--src/declarative/util/qmlanimation_p.h18
-rw-r--r--src/declarative/util/qmlbehaviour.cpp2
-rw-r--r--src/declarative/util/qmlbehaviour.h10
-rw-r--r--src/declarative/util/qmlbind.cpp2
-rw-r--r--src/declarative/util/qmlbind.h12
-rw-r--r--src/declarative/util/qmlconnection.cpp2
-rw-r--r--src/declarative/util/qmlconnection.h12
-rw-r--r--src/declarative/util/qmldatetimeformatter.cpp2
-rw-r--r--src/declarative/util/qmldatetimeformatter.h2
-rw-r--r--src/declarative/util/qmlfollow.cpp2
-rw-r--r--src/declarative/util/qmlfollow.h18
-rw-r--r--src/declarative/util/qmlfont.cpp2
-rw-r--r--src/declarative/util/qmlfont.h2
-rw-r--r--src/declarative/util/qmllistmodel.cpp14
-rw-r--r--src/declarative/util/qmlpackage.cpp2
-rw-r--r--src/declarative/util/qmlpackage.h6
-rw-r--r--src/declarative/util/qmlscript.cpp2
-rw-r--r--src/declarative/util/qmlscript.h10
-rw-r--r--src/declarative/util/qmlsetproperties.cpp2
-rw-r--r--src/declarative/util/qmlsetproperties.h8
-rw-r--r--src/declarative/util/qmlstate.cpp4
-rw-r--r--src/declarative/util/qmlstate.h14
-rw-r--r--src/declarative/util/qmlstate_p.h2
-rw-r--r--src/declarative/util/qmlstategroup.cpp2
-rw-r--r--src/declarative/util/qmlstategroup.h10
-rw-r--r--src/declarative/util/qmlstateoperations.cpp6
-rw-r--r--src/declarative/util/qmlstateoperations.h22
-rw-r--r--src/declarative/util/qmltransition.cpp2
-rw-r--r--src/declarative/util/qmltransition.h2
-rw-r--r--src/declarative/widgets/graphicslayouts.cpp10
-rw-r--r--src/declarative/widgets/graphicslayouts.h10
-rw-r--r--src/declarative/widgets/graphicswidgets.cpp8
-rw-r--r--src/declarative/widgets/graphicswidgets.h8
144 files changed, 848 insertions, 596 deletions
diff --git a/src/declarative/canvas/qsimplecanvasfilter.h b/src/declarative/canvas/qsimplecanvasfilter.h
index d05dc7e..14bb765 100644
--- a/src/declarative/canvas/qsimplecanvasfilter.h
+++ b/src/declarative/canvas/qsimplecanvasfilter.h
@@ -70,7 +70,7 @@ public:
ChildrenAboveItem = 0x04,
All = 0x07 };
- Q_PROPERTY(bool enabled READ enabled WRITE setEnabled NOTIFY enabledChanged);
+ Q_PROPERTY(bool enabled READ enabled WRITE setEnabled NOTIFY enabledChanged)
bool enabled() const;
void setEnabled(bool);
diff --git a/src/declarative/canvas/qsimplecanvasitem.h b/src/declarative/canvas/qsimplecanvasitem.h
index cf23fc6..b928319 100644
--- a/src/declarative/canvas/qsimplecanvasitem.h
+++ b/src/declarative/canvas/qsimplecanvasitem.h
@@ -74,7 +74,7 @@ class Q_DECLARATIVE_EXPORT QSimpleCanvasItem : public QObject
Q_CAST_INTERFACES(QmlDebuggerStatus)
Q_DECLARE_PRIVATE(QSimpleCanvasItem)
Q_ENUMS(TransformOrigin)
- Q_PROPERTY(TransformOrigin transformOrigin READ transformOrigin WRITE setTransformOrigin);
+ Q_PROPERTY(TransformOrigin transformOrigin READ transformOrigin WRITE setTransformOrigin)
public:
enum ClipType { NoClip = 0x00,
@@ -91,7 +91,7 @@ public:
IsFocusPanel = 0x00000040,
IsFocusRealm = 0x00000080,
AcceptsInputMethods = 0x00000100};
- Q_DECLARE_FLAGS(Options, Option);
+ Q_DECLARE_FLAGS(Options, Option)
QSimpleCanvasItem(QSimpleCanvasItem *parent=0);
virtual ~QSimpleCanvasItem();
@@ -276,7 +276,7 @@ public:
QSimpleCanvasItem(QSimpleCanvasItemPrivate &dd, QSimpleCanvasItem *parent);
};
-Q_DECLARE_OPERATORS_FOR_FLAGS(QSimpleCanvasItem::Options);
+Q_DECLARE_OPERATORS_FOR_FLAGS(QSimpleCanvasItem::Options)
class QSimpleCanvasLayer : public QSimpleCanvasItem
{
diff --git a/src/declarative/canvas/qsimplecanvasitem_p.h b/src/declarative/canvas/qsimplecanvasitem_p.h
index f0b44e0..e2deab2 100644
--- a/src/declarative/canvas/qsimplecanvasitem_p.h
+++ b/src/declarative/canvas/qsimplecanvasitem_p.h
@@ -133,7 +133,7 @@ class QSimpleCanvasFilter;
class QGraphicsQSimpleCanvasItem;
class QSimpleCanvasItemPrivate : public QObjectPrivate
{
- Q_DECLARE_PUBLIC(QSimpleCanvasItem);
+ Q_DECLARE_PUBLIC(QSimpleCanvasItem)
public:
QSimpleCanvasItemPrivate()
: parent(0), canvas(0), debuggerStatus(0), filter(0),
@@ -250,16 +250,16 @@ public:
InRealm = 0x02,
InActiveFocusedRealm = 0x04
};
- Q_DECLARE_FLAGS(FocusStateCheckDatas, FocusStateCheckData);
+ Q_DECLARE_FLAGS(FocusStateCheckDatas, FocusStateCheckData)
enum FocusStateCheckRData { NoCheckRData = 0x00,
SeenFocus = 0x01,
SeenActiveFocus = 0x02 };
- Q_DECLARE_FLAGS(FocusStateCheckRDatas, FocusStateCheckRData);
+ Q_DECLARE_FLAGS(FocusStateCheckRDatas, FocusStateCheckRData)
bool checkFocusState(FocusStateCheckDatas, FocusStateCheckRDatas *);
};
-Q_DECLARE_OPERATORS_FOR_FLAGS(QSimpleCanvasItemPrivate::FocusStateCheckDatas);
-Q_DECLARE_OPERATORS_FOR_FLAGS(QSimpleCanvasItemPrivate::FocusStateCheckRDatas);
+Q_DECLARE_OPERATORS_FOR_FLAGS(QSimpleCanvasItemPrivate::FocusStateCheckDatas)
+Q_DECLARE_OPERATORS_FOR_FLAGS(QSimpleCanvasItemPrivate::FocusStateCheckRDatas)
#endif // QSIMPLECANVASITEM_P_H
diff --git a/src/declarative/debugger/qmldebuggerstatus.h b/src/declarative/debugger/qmldebuggerstatus.h
index 8c6355d..62336de 100644
--- a/src/declarative/debugger/qmldebuggerstatus.h
+++ b/src/declarative/debugger/qmldebuggerstatus.h
@@ -57,7 +57,7 @@ public:
virtual void setSelectedState(bool);
};
-Q_DECLARE_INTERFACE(QmlDebuggerStatus, "com.trolltech.qml.QmlDebuggerStatus");
+Q_DECLARE_INTERFACE(QmlDebuggerStatus, "com.trolltech.qml.QmlDebuggerStatus")
QT_END_NAMESPACE
diff --git a/src/declarative/extra/qfxintegermodel.cpp b/src/declarative/extra/qfxintegermodel.cpp
index 3c4d0d9..2a85ee1 100644
--- a/src/declarative/extra/qfxintegermodel.cpp
+++ b/src/declarative/extra/qfxintegermodel.cpp
@@ -43,7 +43,7 @@
QT_BEGIN_NAMESPACE
-QML_DEFINE_TYPE(QFxIntegerModel, IntegerModel);
+QML_DEFINE_TYPE(QFxIntegerModel, IntegerModel)
class QFxIntegerModelPrivate
{
diff --git a/src/declarative/extra/qfxintegermodel.h b/src/declarative/extra/qfxintegermodel.h
index 2f5c756..43504d8 100644
--- a/src/declarative/extra/qfxintegermodel.h
+++ b/src/declarative/extra/qfxintegermodel.h
@@ -60,11 +60,11 @@ public:
QFxIntegerModel(QObject *parent=0);
~QFxIntegerModel();
- Q_PROPERTY(int minimum READ minimum WRITE setMinimum);
+ Q_PROPERTY(int minimum READ minimum WRITE setMinimum)
int minimum() const;
void setMinimum(int);
- Q_PROPERTY(int maximum READ maximum WRITE setMaximum);
+ Q_PROPERTY(int maximum READ maximum WRITE setMaximum)
int maximum() const;
void setMaximum(int);
@@ -77,7 +77,7 @@ private:
QFxIntegerModelPrivate *d;
};
-QML_DECLARE_TYPE(QFxIntegerModel);
+QML_DECLARE_TYPE(QFxIntegerModel)
QT_END_NAMESPACE
diff --git a/src/declarative/extra/qmlnumberformatter.h b/src/declarative/extra/qmlnumberformatter.h
index cdd6b58..e4efc03 100644
--- a/src/declarative/extra/qmlnumberformatter.h
+++ b/src/declarative/extra/qmlnumberformatter.h
@@ -83,7 +83,7 @@ private:
Q_DECLARE_PRIVATE(QmlNumberFormatter)
};
-QML_DECLARE_TYPE(QmlNumberFormatter);
+QML_DECLARE_TYPE(QmlNumberFormatter)
QT_END_NAMESPACE
diff --git a/src/declarative/extra/qmlsqlconnection.cpp b/src/declarative/extra/qmlsqlconnection.cpp
index 25ab033..b65fe35 100644
--- a/src/declarative/extra/qmlsqlconnection.cpp
+++ b/src/declarative/extra/qmlsqlconnection.cpp
@@ -51,7 +51,7 @@
QT_BEGIN_NAMESPACE
-QML_DEFINE_TYPE(QmlSqlConnection, SqlConnection);
+QML_DEFINE_TYPE(QmlSqlConnection, SqlConnection)
class QmlSqlConnectionPrivate: public QObjectPrivate
{
diff --git a/src/declarative/extra/qmlsqlconnection.h b/src/declarative/extra/qmlsqlconnection.h
index 0fff1b0..306db8d 100644
--- a/src/declarative/extra/qmlsqlconnection.h
+++ b/src/declarative/extra/qmlsqlconnection.h
@@ -57,16 +57,16 @@ class Q_DECLARATIVE_EXPORT QmlSqlConnection : public QObject, public QmlParserSt
Q_OBJECT
Q_INTERFACES(QmlParserStatus)
- Q_PROPERTY(QString name READ name WRITE setName);
- Q_PROPERTY(QStringList tables READ tables);
- Q_PROPERTY(QString databaseName READ databaseName WRITE setDatabaseName);
- Q_PROPERTY(QString driver READ driver WRITE setDriver);
- Q_PROPERTY(QString connectOptions READ connectOptions WRITE setConnectOptions);
- Q_PROPERTY(QString hostName READ hostName WRITE setHostName);
- Q_PROPERTY(int port READ port WRITE setPort);
- Q_PROPERTY(QString userName READ userName WRITE setUserName);
- Q_PROPERTY(QString password READ password WRITE setPassword);
- Q_PROPERTY(QString lastError READ lastError);
+ Q_PROPERTY(QString name READ name WRITE setName)
+ Q_PROPERTY(QStringList tables READ tables)
+ Q_PROPERTY(QString databaseName READ databaseName WRITE setDatabaseName)
+ Q_PROPERTY(QString driver READ driver WRITE setDriver)
+ Q_PROPERTY(QString connectOptions READ connectOptions WRITE setConnectOptions)
+ Q_PROPERTY(QString hostName READ hostName WRITE setHostName)
+ Q_PROPERTY(int port READ port WRITE setPort)
+ Q_PROPERTY(QString userName READ userName WRITE setUserName)
+ Q_PROPERTY(QString password READ password WRITE setPassword)
+ Q_PROPERTY(QString lastError READ lastError)
Q_CLASSINFO("DefaultProperty", "name")
public:
QmlSqlConnection(QObject *parent = 0);
@@ -108,7 +108,7 @@ private:
Q_DECLARE_PRIVATE(QmlSqlConnection)
};
-QML_DECLARE_TYPE(QmlSqlConnection);
+QML_DECLARE_TYPE(QmlSqlConnection)
QT_END_NAMESPACE
diff --git a/src/declarative/extra/qmlsqlquery.cpp b/src/declarative/extra/qmlsqlquery.cpp
index 5bd1459..0e2e91b 100644
--- a/src/declarative/extra/qmlsqlquery.cpp
+++ b/src/declarative/extra/qmlsqlquery.cpp
@@ -52,8 +52,8 @@
#include <QSqlDriver>
QT_BEGIN_NAMESPACE
-QML_DEFINE_TYPE(QmlSqlBind, SqlBind);
-QML_DEFINE_TYPE(QmlSqlQuery, SqlQuery);
+QML_DEFINE_TYPE(QmlSqlBind, SqlBind)
+QML_DEFINE_TYPE(QmlSqlQuery, SqlQuery)
class QmlSqlBindPrivate : public QObjectPrivate
{
diff --git a/src/declarative/extra/qmlsqlquery.h b/src/declarative/extra/qmlsqlquery.h
index 3fff127..dca3596 100644
--- a/src/declarative/extra/qmlsqlquery.h
+++ b/src/declarative/extra/qmlsqlquery.h
@@ -60,7 +60,7 @@ class Q_DECLARATIVE_EXPORT QmlSqlBind : public QObject, public QmlParserStatus
Q_PROPERTY(QString name READ name WRITE setName)
Q_PROPERTY(QVariant value READ value WRITE setValue)
- Q_CLASSINFO("DefaultValue", "value");
+ Q_CLASSINFO("DefaultValue", "value")
public:
QmlSqlBind(QObject *parent = 0);
@@ -82,7 +82,7 @@ private:
Q_DECLARE_PRIVATE(QmlSqlBind)
};
-QML_DECLARE_TYPE(QmlSqlBind);
+QML_DECLARE_TYPE(QmlSqlBind)
class QSqlQuery;
class QmlSqlQueryPrivate;
@@ -134,7 +134,7 @@ private:
Q_DECLARE_PRIVATE(QmlSqlQuery)
};
-QML_DECLARE_TYPE(QmlSqlQuery);
+QML_DECLARE_TYPE(QmlSqlQuery)
QT_END_NAMESPACE
diff --git a/src/declarative/extra/qmlxmllistmodel.cpp b/src/declarative/extra/qmlxmllistmodel.cpp
index 9259c83..a7f5d72 100644
--- a/src/declarative/extra/qmlxmllistmodel.cpp
+++ b/src/declarative/extra/qmlxmllistmodel.cpp
@@ -58,8 +58,8 @@
QT_BEGIN_NAMESPACE
-QML_DEFINE_TYPE(XmlListModelRole, Role);
-QML_DEFINE_TYPE(QmlXmlListModel, XmlListModel);
+QML_DEFINE_TYPE(XmlListModelRole, Role)
+QML_DEFINE_TYPE(QmlXmlListModel, XmlListModel)
class QmlXmlListModelPrivate;
diff --git a/src/declarative/extra/qmlxmllistmodel.h b/src/declarative/extra/qmlxmllistmodel.h
index cf2f5f4..052a0c2 100644
--- a/src/declarative/extra/qmlxmllistmodel.h
+++ b/src/declarative/extra/qmlxmllistmodel.h
@@ -82,7 +82,7 @@ private:
bool m_isList;
bool m_isCData;
};
-QML_DECLARE_TYPE(XmlListModelRole);
+QML_DECLARE_TYPE(XmlListModelRole)
class QmlXmlListModelPrivate;
class Q_DECLARATIVE_EXPORT QmlXmlListModel : public QListModelInterface, public QmlParserStatus
@@ -141,7 +141,7 @@ private:
Q_DISABLE_COPY(QmlXmlListModel)
};
-QML_DECLARE_TYPE(QmlXmlListModel);
+QML_DECLARE_TYPE(QmlXmlListModel)
QT_END_NAMESPACE
diff --git a/src/declarative/extra/qnumberformat.cpp b/src/declarative/extra/qnumberformat.cpp
index 79e328a..424c125 100644
--- a/src/declarative/extra/qnumberformat.cpp
+++ b/src/declarative/extra/qnumberformat.cpp
@@ -43,7 +43,7 @@
QT_BEGIN_NAMESPACE
-QML_DEFINE_TYPE(QNumberFormat,NumberFormat);
+QML_DEFINE_TYPE(QNumberFormat,NumberFormat)
QNumberFormat::QNumberFormat(QObject *parent) : QObject(parent), _number(0), _type(Decimal),
_groupingSize(0)
diff --git a/src/declarative/extra/qnumberformat.h b/src/declarative/extra/qnumberformat.h
index 75224ec..fba9872 100644
--- a/src/declarative/extra/qnumberformat.h
+++ b/src/declarative/extra/qnumberformat.h
@@ -74,18 +74,18 @@ public:
};
//external property, only visible
- Q_PROPERTY(QString text READ text NOTIFY textChanged);
+ Q_PROPERTY(QString text READ text NOTIFY textChanged)
//mutatable properties to modify the output (text)
- Q_PROPERTY(qreal number READ number WRITE setNumber);
- Q_PROPERTY(QString format READ format WRITE setFormat);
- Q_PROPERTY(QLocale locale READ locale WRITE setLocale);
+ Q_PROPERTY(qreal number READ number WRITE setNumber)
+ Q_PROPERTY(QString format READ format WRITE setFormat)
+ Q_PROPERTY(QLocale locale READ locale WRITE setLocale)
//Format specific settings
- Q_PROPERTY(unsigned short groupingSeparator READ groupingSeparator WRITE setGroupingSeparator);
- Q_PROPERTY(unsigned short decimalSeperator READ decimalSeparator WRITE setDecimalSeparator);
- Q_PROPERTY(unsigned int groupingSize READ groupingSize WRITE setGroupingSize);
- Q_PROPERTY(unsigned short currencySymbol READ currencySymbol WRITE setCurrencySymbol);
+ Q_PROPERTY(unsigned short groupingSeparator READ groupingSeparator WRITE setGroupingSeparator)
+ Q_PROPERTY(unsigned short decimalSeperator READ decimalSeparator WRITE setDecimalSeparator)
+ Q_PROPERTY(unsigned int groupingSize READ groupingSize WRITE setGroupingSize)
+ Q_PROPERTY(unsigned short currencySymbol READ currencySymbol WRITE setCurrencySymbol)
QString text() const { return _text; }
@@ -163,7 +163,7 @@ private:
QString _text;
};
-QML_DECLARE_TYPE(QNumberFormat);
+QML_DECLARE_TYPE(QNumberFormat)
QT_END_NAMESPACE
diff --git a/src/declarative/fx/qfxanchors.cpp b/src/declarative/fx/qfxanchors.cpp
index 681a9fa..bd5520a 100644
--- a/src/declarative/fx/qfxanchors.cpp
+++ b/src/declarative/fx/qfxanchors.cpp
@@ -48,7 +48,7 @@
QT_BEGIN_NAMESPACE
-QML_DEFINE_TYPE(QFxAnchors,Anchors);
+QML_DEFINE_TYPE(QFxAnchors,Anchors)
//TODO: should we cache relationships, so we don't have to check each time (parent-child or sibling)?
//TODO: baseline support
diff --git a/src/declarative/fx/qfxanchors.h b/src/declarative/fx/qfxanchors.h
index 3f142c4..0e44223 100644
--- a/src/declarative/fx/qfxanchors.h
+++ b/src/declarative/fx/qfxanchors.h
@@ -78,28 +78,28 @@ public:
AnchorLine anchorLine;
};
-Q_DECLARE_METATYPE(QFxAnchorLine);
+Q_DECLARE_METATYPE(QFxAnchorLine)
class QFxAnchorsPrivate;
class Q_DECLARATIVE_EXPORT QFxAnchors : public QObject
{
Q_OBJECT
- Q_PROPERTY(QFxAnchorLine left READ left WRITE setLeft RESET resetLeft);
- Q_PROPERTY(QFxAnchorLine right READ right WRITE setRight RESET resetRight);
- Q_PROPERTY(QFxAnchorLine horizontalCenter READ horizontalCenter WRITE setHorizontalCenter RESET resetHorizontalCenter);
- Q_PROPERTY(QFxAnchorLine top READ top WRITE setTop RESET resetTop);
- Q_PROPERTY(QFxAnchorLine bottom READ bottom WRITE setBottom RESET resetBottom);
- Q_PROPERTY(QFxAnchorLine verticalCenter READ verticalCenter WRITE setVerticalCenter RESET resetVerticalCenter);
- Q_PROPERTY(QFxAnchorLine baseline READ baseline WRITE setBaseline RESET resetBaseline);
- Q_PROPERTY(int leftMargin READ leftMargin WRITE setLeftMargin NOTIFY leftMarginChanged);
- Q_PROPERTY(int rightMargin READ rightMargin WRITE setRightMargin NOTIFY rightMarginChanged);
- Q_PROPERTY(int horizontalCenterOffset READ horizontalCenterOffset WRITE setHorizontalCenterOffset NOTIFY horizontalCenterOffsetChanged());
- Q_PROPERTY(int topMargin READ topMargin WRITE setTopMargin NOTIFY topMarginChanged);
- Q_PROPERTY(int bottomMargin READ bottomMargin WRITE setBottomMargin NOTIFY bottomMarginChanged);
- Q_PROPERTY(int verticalCenterOffset READ verticalCenterOffset WRITE setVerticalCenterOffset NOTIFY verticalCenterOffsetChanged());
- Q_PROPERTY(QFxItem *fill READ fill WRITE setFill);
- Q_PROPERTY(QFxItem *centeredIn READ centeredIn WRITE setCenteredIn);
+ Q_PROPERTY(QFxAnchorLine left READ left WRITE setLeft RESET resetLeft)
+ Q_PROPERTY(QFxAnchorLine right READ right WRITE setRight RESET resetRight)
+ Q_PROPERTY(QFxAnchorLine horizontalCenter READ horizontalCenter WRITE setHorizontalCenter RESET resetHorizontalCenter)
+ Q_PROPERTY(QFxAnchorLine top READ top WRITE setTop RESET resetTop)
+ Q_PROPERTY(QFxAnchorLine bottom READ bottom WRITE setBottom RESET resetBottom)
+ Q_PROPERTY(QFxAnchorLine verticalCenter READ verticalCenter WRITE setVerticalCenter RESET resetVerticalCenter)
+ Q_PROPERTY(QFxAnchorLine baseline READ baseline WRITE setBaseline RESET resetBaseline)
+ Q_PROPERTY(int leftMargin READ leftMargin WRITE setLeftMargin NOTIFY leftMarginChanged)
+ Q_PROPERTY(int rightMargin READ rightMargin WRITE setRightMargin NOTIFY rightMarginChanged)
+ Q_PROPERTY(int horizontalCenterOffset READ horizontalCenterOffset WRITE setHorizontalCenterOffset NOTIFY horizontalCenterOffsetChanged())
+ Q_PROPERTY(int topMargin READ topMargin WRITE setTopMargin NOTIFY topMarginChanged)
+ Q_PROPERTY(int bottomMargin READ bottomMargin WRITE setBottomMargin NOTIFY bottomMarginChanged)
+ Q_PROPERTY(int verticalCenterOffset READ verticalCenterOffset WRITE setVerticalCenterOffset NOTIFY verticalCenterOffsetChanged())
+ Q_PROPERTY(QFxItem *fill READ fill WRITE setFill)
+ Q_PROPERTY(QFxItem *centeredIn READ centeredIn WRITE setCenteredIn)
public:
QFxAnchors(QObject *parent=0);
@@ -116,7 +116,7 @@ public:
Horizontal_Mask = HasLeftAnchor | HasRightAnchor | HasHCenterAnchor,
Vertical_Mask = HasTopAnchor | HasBottomAnchor | HasVCenterAnchor | HasBaselineAnchor
};
- Q_DECLARE_FLAGS(UsedAnchors, UsedAnchor);
+ Q_DECLARE_FLAGS(UsedAnchors, UsedAnchor)
QFxAnchorLine left() const;
void setLeft(const QFxAnchorLine &edge);
@@ -188,7 +188,7 @@ private:
Q_DECLARE_PRIVATE(QFxAnchors)
};
-QML_DECLARE_TYPE(QFxAnchors);
+QML_DECLARE_TYPE(QFxAnchors)
QT_END_NAMESPACE
diff --git a/src/declarative/fx/qfxanimatedimageitem.cpp b/src/declarative/fx/qfxanimatedimageitem.cpp
index 7a1cb7f..029206b 100644
--- a/src/declarative/fx/qfxanimatedimageitem.cpp
+++ b/src/declarative/fx/qfxanimatedimageitem.cpp
@@ -77,7 +77,7 @@ Item {
\endqml
\endtable
*/
-QML_DEFINE_TYPE(QFxAnimatedImageItem, AnimatedImage);
+QML_DEFINE_TYPE(QFxAnimatedImageItem, AnimatedImage)
QFxAnimatedImageItem::QFxAnimatedImageItem(QFxItem *parent)
: QFxImage(*(new QFxAnimatedImageItemPrivate), parent)
diff --git a/src/declarative/fx/qfxanimatedimageitem.h b/src/declarative/fx/qfxanimatedimageitem.h
index a332c8b..a0d14c4 100644
--- a/src/declarative/fx/qfxanimatedimageitem.h
+++ b/src/declarative/fx/qfxanimatedimageitem.h
@@ -91,7 +91,7 @@ private:
Q_DECLARE_PRIVATE(QFxAnimatedImageItem)
};
-QML_DECLARE_TYPE(QFxAnimatedImageItem);
+QML_DECLARE_TYPE(QFxAnimatedImageItem)
QT_END_NAMESPACE
diff --git a/src/declarative/fx/qfxblendedimage.cpp b/src/declarative/fx/qfxblendedimage.cpp
index 79b8e41..73eb3c4 100644
--- a/src/declarative/fx/qfxblendedimage.cpp
+++ b/src/declarative/fx/qfxblendedimage.cpp
@@ -292,6 +292,6 @@ void QFxBlendedImage::paintGLContents(GLPainter &p)
}
#endif
-QML_DEFINE_TYPE(QFxBlendedImage,BlendedImage);
+QML_DEFINE_TYPE(QFxBlendedImage,BlendedImage)
QT_END_NAMESPACE
diff --git a/src/declarative/fx/qfxblendedimage.h b/src/declarative/fx/qfxblendedimage.h
index 2fdf15b..4e6204d 100644
--- a/src/declarative/fx/qfxblendedimage.h
+++ b/src/declarative/fx/qfxblendedimage.h
@@ -102,7 +102,7 @@ private:
QFxPixmap primPix;
QFxPixmap secPix;
};
-QML_DECLARE_TYPE(QFxBlendedImage);
+QML_DECLARE_TYPE(QFxBlendedImage)
QT_END_NAMESPACE
diff --git a/src/declarative/fx/qfxblurfilter.cpp b/src/declarative/fx/qfxblurfilter.cpp
index baa2253..84799ec 100644
--- a/src/declarative/fx/qfxblurfilter.cpp
+++ b/src/declarative/fx/qfxblurfilter.cpp
@@ -463,5 +463,5 @@ void QFxBlurFilter::filterGL(QSimpleCanvasItem::GLPainter &p)
}
-QML_DEFINE_TYPE(QFxBlurFilter,Blur);
+QML_DEFINE_TYPE(QFxBlurFilter,Blur)
QT_END_NAMESPACE
diff --git a/src/declarative/fx/qfxblurfilter.h b/src/declarative/fx/qfxblurfilter.h
index 576debf..90285de 100644
--- a/src/declarative/fx/qfxblurfilter.h
+++ b/src/declarative/fx/qfxblurfilter.h
@@ -73,7 +73,7 @@ protected:
private:
QFxBlurFilterPrivate *d;
};
-QML_DECLARE_TYPE(QFxBlurFilter);
+QML_DECLARE_TYPE(QFxBlurFilter)
QT_END_NAMESPACE
diff --git a/src/declarative/fx/qfxcomponentinstance.cpp b/src/declarative/fx/qfxcomponentinstance.cpp
index 472b98b..d3f7061 100644
--- a/src/declarative/fx/qfxcomponentinstance.cpp
+++ b/src/declarative/fx/qfxcomponentinstance.cpp
@@ -47,7 +47,7 @@
QT_BEGIN_NAMESPACE
-QML_DEFINE_TYPE(QFxComponentInstance,ComponentInstance);
+QML_DEFINE_TYPE(QFxComponentInstance,ComponentInstance)
/*!
\internal
diff --git a/src/declarative/fx/qfxcomponentinstance.h b/src/declarative/fx/qfxcomponentinstance.h
index 9f84043..e749272 100644
--- a/src/declarative/fx/qfxcomponentinstance.h
+++ b/src/declarative/fx/qfxcomponentinstance.h
@@ -55,7 +55,7 @@ class Q_DECLARATIVE_EXPORT QFxComponentInstance : public QFxItem
{
Q_OBJECT
Q_PROPERTY(QmlComponent *component READ component WRITE setComponent)
- Q_PROPERTY(QFxItem *instance READ instance);
+ Q_PROPERTY(QFxItem *instance READ instance)
Q_CLASSINFO("DefaultProperty", "component")
public:
QFxComponentInstance(QFxItem *parent=0);
@@ -80,7 +80,7 @@ protected:
private:
Q_DECLARE_PRIVATE(QFxComponentInstance)
};
-QML_DECLARE_TYPE(QFxComponentInstance);
+QML_DECLARE_TYPE(QFxComponentInstance)
QT_END_NAMESPACE
diff --git a/src/declarative/fx/qfxcontentwrapper.cpp b/src/declarative/fx/qfxcontentwrapper.cpp
index d493990..482442b 100644
--- a/src/declarative/fx/qfxcontentwrapper.cpp
+++ b/src/declarative/fx/qfxcontentwrapper.cpp
@@ -44,7 +44,7 @@
QT_BEGIN_NAMESPACE
-QML_DEFINE_TYPE(QFxContentWrapper,ContentWrapper);
+QML_DEFINE_TYPE(QFxContentWrapper,ContentWrapper)
/*!
\qmlclass ContentWrapper QFxContentWrapper
@@ -129,7 +129,7 @@ QFxItem *QFxContentWrapper::findContent(QList<QSimpleCanvasItem *> &nodes)
return findContent(nodes);
}
-QML_DEFINE_TYPE(QFxContent,Content);
+QML_DEFINE_TYPE(QFxContent,Content)
/*!
\qmlclass Content QFxContent
diff --git a/src/declarative/fx/qfxcontentwrapper.h b/src/declarative/fx/qfxcontentwrapper.h
index 0b7253e..d8fe0b8 100644
--- a/src/declarative/fx/qfxcontentwrapper.h
+++ b/src/declarative/fx/qfxcontentwrapper.h
@@ -73,7 +73,7 @@ protected:
private:
Q_DECLARE_PRIVATE(QFxContentWrapper)
};
-QML_DECLARE_TYPE(QFxContentWrapper);
+QML_DECLARE_TYPE(QFxContentWrapper)
class Q_DECLARATIVE_EXPORT QFxContent : public QFxItem
{
@@ -81,7 +81,7 @@ class Q_DECLARATIVE_EXPORT QFxContent : public QFxItem
public:
QFxContent(QFxItem *parent=0) : QFxItem(parent) {}
};
-QML_DECLARE_TYPE(QFxContent);
+QML_DECLARE_TYPE(QFxContent)
QT_END_NAMESPACE
diff --git a/src/declarative/fx/qfxcontentwrapper_p.h b/src/declarative/fx/qfxcontentwrapper_p.h
index 4f42e00..a75fa1e 100644
--- a/src/declarative/fx/qfxcontentwrapper_p.h
+++ b/src/declarative/fx/qfxcontentwrapper_p.h
@@ -60,7 +60,7 @@
QT_BEGIN_NAMESPACE
class QFxContentWrapperPrivate : public QFxItemPrivate
{
- Q_DECLARE_PUBLIC(QFxContentWrapper);
+ Q_DECLARE_PUBLIC(QFxContentWrapper)
public:
QFxContentWrapperPrivate() { }
diff --git a/src/declarative/fx/qfxevents.cpp b/src/declarative/fx/qfxevents.cpp
index 195d1e5..94c2d2e 100644
--- a/src/declarative/fx/qfxevents.cpp
+++ b/src/declarative/fx/qfxevents.cpp
@@ -176,7 +176,7 @@ MouseRegion {
\endqml
*/
-QML_DEFINE_NOCREATE_TYPE(QFxKeyEvent);
-QML_DEFINE_NOCREATE_TYPE(QFxMouseEvent);
+QML_DEFINE_NOCREATE_TYPE(QFxKeyEvent)
+QML_DEFINE_NOCREATE_TYPE(QFxMouseEvent)
QT_END_NAMESPACE
diff --git a/src/declarative/fx/qfxevents_p.h b/src/declarative/fx/qfxevents_p.h
index bcd9f2d..2eb29af 100644
--- a/src/declarative/fx/qfxevents_p.h
+++ b/src/declarative/fx/qfxevents_p.h
@@ -78,7 +78,7 @@ private:
QKeyEvent event;
};
-QML_DECLARE_TYPE(QFxKeyEvent);
+QML_DECLARE_TYPE(QFxKeyEvent)
class QFxMouseEvent : public QObject
{
@@ -120,7 +120,7 @@ private:
bool _accepted;
};
-QML_DECLARE_TYPE(QFxMouseEvent);
+QML_DECLARE_TYPE(QFxMouseEvent)
QT_END_NAMESPACE
diff --git a/src/declarative/fx/qfxflickable.cpp b/src/declarative/fx/qfxflickable.cpp
index 4248ebb..bc4a5fc 100644
--- a/src/declarative/fx/qfxflickable.cpp
+++ b/src/declarative/fx/qfxflickable.cpp
@@ -228,7 +228,7 @@ void QFxFlickablePrivate::updateBeginningEnd()
static const int FlickThreshold = 5;
-QML_DEFINE_TYPE(QFxFlickable,Flickable);
+QML_DEFINE_TYPE(QFxFlickable,Flickable)
/*!
\qmlclass Flickable
diff --git a/src/declarative/fx/qfxflickable.h b/src/declarative/fx/qfxflickable.h
index 3857017..77aaf50 100644
--- a/src/declarative/fx/qfxflickable.h
+++ b/src/declarative/fx/qfxflickable.h
@@ -58,8 +58,8 @@ class Q_DECLARATIVE_EXPORT QFxFlickable : public QFxItem
Q_PROPERTY(bool overShoot READ overShoot WRITE setOverShoot)
Q_PROPERTY(int viewportWidth READ viewportWidth WRITE setViewportWidth NOTIFY viewportWidthChanged)
Q_PROPERTY(int viewportHeight READ viewportHeight WRITE setViewportHeight NOTIFY viewportHeightChanged)
- Q_PROPERTY(qreal xPosition READ xPosition WRITE setXPosition NOTIFY positionChanged);
- Q_PROPERTY(qreal yPosition READ yPosition WRITE setYPosition NOTIFY positionChanged);
+ Q_PROPERTY(qreal xPosition READ xPosition WRITE setXPosition NOTIFY positionChanged)
+ Q_PROPERTY(qreal yPosition READ yPosition WRITE setYPosition NOTIFY positionChanged)
Q_PROPERTY(bool moving READ isMoving NOTIFY movingChanged)
Q_PROPERTY(bool flicking READ isFlicking NOTIFY flickingChanged)
Q_PROPERTY(int velocityDecay READ velocityDecay WRITE setVelocityDecay NOTIFY velocityDecayChanged)
@@ -68,17 +68,17 @@ class Q_DECLARATIVE_EXPORT QFxFlickable : public QFxItem
Q_PROPERTY(DragMode dragMode READ dragMode WRITE setDragMode)
Q_PROPERTY(qreal xVelocity READ xVelocity NOTIFY velocityChanged)
Q_PROPERTY(qreal yVelocity READ yVelocity NOTIFY velocityChanged)
- Q_PROPERTY(bool atXEnd READ isAtXEnd NOTIFY isAtBoundaryChanged);
- Q_PROPERTY(bool atYEnd READ isAtYEnd NOTIFY isAtBoundaryChanged);
- Q_PROPERTY(bool atXBeginning READ isAtXBeginning NOTIFY isAtBoundaryChanged);
- Q_PROPERTY(bool atYBeginning READ isAtYBeginning NOTIFY isAtBoundaryChanged);
- Q_PROPERTY(qreal pageXPosition READ pageXPosition NOTIFY pageChanged);
- Q_PROPERTY(qreal pageYPosition READ pageYPosition NOTIFY pageChanged);
- Q_PROPERTY(qreal pageWidth READ pageWidth NOTIFY pageChanged);
- Q_PROPERTY(qreal pageHeight READ pageHeight NOTIFY pageChanged);
-
- Q_PROPERTY(QmlList<QObject *>* flickableData READ flickableData);
- Q_PROPERTY(QmlList<QFxItem *>* flickableChildren READ flickableChildren);
+ Q_PROPERTY(bool atXEnd READ isAtXEnd NOTIFY isAtBoundaryChanged)
+ Q_PROPERTY(bool atYEnd READ isAtYEnd NOTIFY isAtBoundaryChanged)
+ Q_PROPERTY(bool atXBeginning READ isAtXBeginning NOTIFY isAtBoundaryChanged)
+ Q_PROPERTY(bool atYBeginning READ isAtYBeginning NOTIFY isAtBoundaryChanged)
+ Q_PROPERTY(qreal pageXPosition READ pageXPosition NOTIFY pageChanged)
+ Q_PROPERTY(qreal pageYPosition READ pageYPosition NOTIFY pageChanged)
+ Q_PROPERTY(qreal pageWidth READ pageWidth NOTIFY pageChanged)
+ Q_PROPERTY(qreal pageHeight READ pageHeight NOTIFY pageChanged)
+
+ Q_PROPERTY(QmlList<QObject *>* flickableData READ flickableData)
+ Q_PROPERTY(QmlList<QFxItem *>* flickableChildren READ flickableChildren)
Q_CLASSINFO("DefaultProperty", "flickableData")
public:
@@ -186,7 +186,7 @@ private:
Q_DISABLE_COPY(QFxFlickable)
Q_DECLARE_PRIVATE(QFxFlickable)
};
-QML_DECLARE_TYPE(QFxFlickable);
+QML_DECLARE_TYPE(QFxFlickable)
QT_END_NAMESPACE
diff --git a/src/declarative/fx/qfxflickable_p.h b/src/declarative/fx/qfxflickable_p.h
index ebd0327..a3b1500 100644
--- a/src/declarative/fx/qfxflickable_p.h
+++ b/src/declarative/fx/qfxflickable_p.h
@@ -162,7 +162,7 @@ public:
void data_insert(int, QObject *);
QObject *data_at(int) const;
void data_clear();
- QML_DECLARE_LIST_PROXY(QFxFlickablePrivate, QObject *, data);
+ QML_DECLARE_LIST_PROXY(QFxFlickablePrivate, QObject *, data)
};
QT_END_NAMESPACE
diff --git a/src/declarative/fx/qfxflipable.cpp b/src/declarative/fx/qfxflipable.cpp
index edcc7cb..4c02e74 100644
--- a/src/declarative/fx/qfxflipable.cpp
+++ b/src/declarative/fx/qfxflipable.cpp
@@ -44,7 +44,7 @@
#include "qfxtransform.h"
#include <QtDeclarative/qmlinfo.h>
-QML_DEFINE_TYPE(QFxFlipable,Flipable);
+QML_DEFINE_TYPE(QFxFlipable,Flipable)
class QFxFlipablePrivate : public QFxItemPrivate
{
diff --git a/src/declarative/fx/qfxflipable.h b/src/declarative/fx/qfxflipable.h
index 62b62a5..6630633 100644
--- a/src/declarative/fx/qfxflipable.h
+++ b/src/declarative/fx/qfxflipable.h
@@ -61,7 +61,7 @@ class Q_DECLARATIVE_EXPORT QFxFlipable : public QFxItem
{
Q_OBJECT
- Q_ENUMS(Side);
+ Q_ENUMS(Side)
Q_PROPERTY(QFxItem *front READ front WRITE setFront)
Q_PROPERTY(QFxItem *back READ back WRITE setBack)
Q_PROPERTY(QFxAxis *axis READ axis WRITE setAxis)
@@ -97,7 +97,7 @@ private:
Q_DISABLE_COPY(QFxFlipable)
Q_DECLARE_PRIVATE(QFxFlipable)
};
-QML_DECLARE_TYPE(QFxFlipable);
+QML_DECLARE_TYPE(QFxFlipable)
QT_END_NAMESPACE
diff --git a/src/declarative/fx/qfxfocuspanel.cpp b/src/declarative/fx/qfxfocuspanel.cpp
index 5d62e66..6da8564 100644
--- a/src/declarative/fx/qfxfocuspanel.cpp
+++ b/src/declarative/fx/qfxfocuspanel.cpp
@@ -43,7 +43,7 @@
QT_BEGIN_NAMESPACE
-QML_DEFINE_TYPE(QFxFocusPanel,FocusPanel);
+QML_DEFINE_TYPE(QFxFocusPanel,FocusPanel)
/*!
\qmlclass FocusPanel
diff --git a/src/declarative/fx/qfxfocuspanel.h b/src/declarative/fx/qfxfocuspanel.h
index cec12a1..60f9118 100644
--- a/src/declarative/fx/qfxfocuspanel.h
+++ b/src/declarative/fx/qfxfocuspanel.h
@@ -72,7 +72,7 @@ private:
Q_DISABLE_COPY(QFxFocusPanel)
};
-QML_DECLARE_TYPE(QFxFocusPanel);
+QML_DECLARE_TYPE(QFxFocusPanel)
QT_END_NAMESPACE
diff --git a/src/declarative/fx/qfxfocusrealm.cpp b/src/declarative/fx/qfxfocusrealm.cpp
index 07849fa..9270bb2 100644
--- a/src/declarative/fx/qfxfocusrealm.cpp
+++ b/src/declarative/fx/qfxfocusrealm.cpp
@@ -43,7 +43,7 @@
QT_BEGIN_NAMESPACE
-QML_DEFINE_TYPE(QFxFocusRealm,FocusRealm);
+QML_DEFINE_TYPE(QFxFocusRealm,FocusRealm)
/*!
\qmlclass FocusRealm
diff --git a/src/declarative/fx/qfxfocusrealm.h b/src/declarative/fx/qfxfocusrealm.h
index fdf1525..d2aadce 100644
--- a/src/declarative/fx/qfxfocusrealm.h
+++ b/src/declarative/fx/qfxfocusrealm.h
@@ -58,7 +58,7 @@ public:
virtual ~QFxFocusRealm();
};
-QML_DECLARE_TYPE(QFxFocusRealm);
+QML_DECLARE_TYPE(QFxFocusRealm)
QT_END_NAMESPACE
diff --git a/src/declarative/fx/qfxgridview.cpp b/src/declarative/fx/qfxgridview.cpp
index db54aea..dde8fcf 100644
--- a/src/declarative/fx/qfxgridview.cpp
+++ b/src/declarative/fx/qfxgridview.cpp
@@ -1421,7 +1421,7 @@ QObject *QFxGridView::qmlAttachedProperties(QObject *obj)
return QFxGridViewAttached::properties(obj);
}
-QML_DEFINE_TYPE(QFxGridView,GridView);
+QML_DEFINE_TYPE(QFxGridView,GridView)
QT_END_NAMESPACE
diff --git a/src/declarative/fx/qfxgridview.h b/src/declarative/fx/qfxgridview.h
index 99c7cff..1514451 100644
--- a/src/declarative/fx/qfxgridview.h
+++ b/src/declarative/fx/qfxgridview.h
@@ -54,21 +54,21 @@ class QFxGridViewPrivate;
class Q_DECLARATIVE_EXPORT QFxGridView : public QFxFlickable
{
Q_OBJECT
- Q_DECLARE_PRIVATE(QFxGridView);
-
- Q_PROPERTY(QVariant model READ model WRITE setModel);
- Q_CLASSINFO("DefaultProperty", "delegate");
- Q_PROPERTY(QmlComponent *delegate READ delegate WRITE setDelegate);
- Q_PROPERTY(int currentIndex READ currentIndex WRITE setCurrentIndex NOTIFY currentIndexChanged);
- Q_PROPERTY(QFxItem *current READ currentItem NOTIFY currentIndexChanged);
- Q_PROPERTY(int count READ count NOTIFY countChanged);
- Q_PROPERTY(QmlComponent *highlight READ highlight WRITE setHighlight);
- Q_PROPERTY(bool autoHighlight READ autoHighlight WRITE setAutoHighlight);
- Q_PROPERTY(Flow flow READ flow WRITE setFlow);
- Q_PROPERTY(bool wrap READ isWrapEnabled WRITE setWrapEnabled);
- Q_PROPERTY(int cacheBuffer READ cacheBuffer WRITE setCacheBuffer);
- Q_PROPERTY(int cellWidth READ cellWidth WRITE setCellWidth NOTIFY cellSizeChanged);
- Q_PROPERTY(int cellHeight READ cellHeight WRITE setCellHeight NOTIFY cellSizeChanged);
+ Q_DECLARE_PRIVATE(QFxGridView)
+
+ Q_PROPERTY(QVariant model READ model WRITE setModel)
+ Q_CLASSINFO("DefaultProperty", "delegate")
+ Q_PROPERTY(QmlComponent *delegate READ delegate WRITE setDelegate)
+ Q_PROPERTY(int currentIndex READ currentIndex WRITE setCurrentIndex NOTIFY currentIndexChanged)
+ Q_PROPERTY(QFxItem *current READ currentItem NOTIFY currentIndexChanged)
+ Q_PROPERTY(int count READ count NOTIFY countChanged)
+ Q_PROPERTY(QmlComponent *highlight READ highlight WRITE setHighlight)
+ Q_PROPERTY(bool autoHighlight READ autoHighlight WRITE setAutoHighlight)
+ Q_PROPERTY(Flow flow READ flow WRITE setFlow)
+ Q_PROPERTY(bool wrap READ isWrapEnabled WRITE setWrapEnabled)
+ Q_PROPERTY(int cacheBuffer READ cacheBuffer WRITE setCacheBuffer)
+ Q_PROPERTY(int cellWidth READ cellWidth WRITE setCellWidth NOTIFY cellSizeChanged)
+ Q_PROPERTY(int cellHeight READ cellHeight WRITE setCellHeight NOTIFY cellSizeChanged)
public:
QFxGridView(QFxItem *parent=0);
@@ -139,7 +139,7 @@ private:
void refill();
};
-QML_DECLARE_TYPE(QFxGridView);
+QML_DECLARE_TYPE(QFxGridView)
QT_END_NAMESPACE
diff --git a/src/declarative/fx/qfxhighlightfilter.cpp b/src/declarative/fx/qfxhighlightfilter.cpp
index a22ad98..9807e21 100644
--- a/src/declarative/fx/qfxhighlightfilter.cpp
+++ b/src/declarative/fx/qfxhighlightfilter.cpp
@@ -314,6 +314,6 @@ void QFxHighlightFilter::filterGL(QSimpleCanvasItem::GLPainter &p)
#endif
}
-QML_DEFINE_TYPE(QFxHighlightFilter,Highlight);
+QML_DEFINE_TYPE(QFxHighlightFilter,Highlight)
QT_END_NAMESPACE
diff --git a/src/declarative/fx/qfxhighlightfilter.h b/src/declarative/fx/qfxhighlightfilter.h
index 92a3dc7..19e95ac 100644
--- a/src/declarative/fx/qfxhighlightfilter.h
+++ b/src/declarative/fx/qfxhighlightfilter.h
@@ -89,7 +89,7 @@ protected:
private:
QFxHighlightFilterPrivate *d;
};
-QML_DECLARE_TYPE(QFxHighlightFilter);
+QML_DECLARE_TYPE(QFxHighlightFilter)
QT_END_NAMESPACE
diff --git a/src/declarative/fx/qfximage.cpp b/src/declarative/fx/qfximage.cpp
index 064580e..6226e45 100644
--- a/src/declarative/fx/qfximage.cpp
+++ b/src/declarative/fx/qfximage.cpp
@@ -53,7 +53,7 @@
QT_BEGIN_NAMESPACE
-QML_DEFINE_TYPE(QFxImage,Image);
+QML_DEFINE_TYPE(QFxImage,Image)
/*!
\qmlclass Image QFxImage
diff --git a/src/declarative/fx/qfximage.h b/src/declarative/fx/qfximage.h
index 1436551..4d5f134 100644
--- a/src/declarative/fx/qfximage.h
+++ b/src/declarative/fx/qfximage.h
@@ -120,7 +120,7 @@ private:
Q_DECLARE_PRIVATE(QFxImage)
void setGridScaledImage(const QFxGridScaledImage& sci);
};
-QML_DECLARE_TYPE(QFxImage);
+QML_DECLARE_TYPE(QFxImage)
QT_END_NAMESPACE
diff --git a/src/declarative/fx/qfxitem.cpp b/src/declarative/fx/qfxitem.cpp
index 3e29f13..7129757 100644
--- a/src/declarative/fx/qfxitem.cpp
+++ b/src/declarative/fx/qfxitem.cpp
@@ -71,9 +71,9 @@ QT_BEGIN_NAMESPACE
#define INT_MAX 2147483647
#endif
-QML_DEFINE_NOCREATE_TYPE(QFxContents);
-QML_DEFINE_TYPE(QFxItem,Item);
-QML_DEFINE_NOCREATE_TYPE(QSimpleCanvasFilter);
+QML_DEFINE_NOCREATE_TYPE(QFxContents)
+QML_DEFINE_TYPE(QFxItem,Item)
+QML_DEFINE_NOCREATE_TYPE(QSimpleCanvasFilter)
/*!
\group group_animation
diff --git a/src/declarative/fx/qfxitem.h b/src/declarative/fx/qfxitem.h
index 0b4f897..8ca1f9e 100644
--- a/src/declarative/fx/qfxitem.h
+++ b/src/declarative/fx/qfxitem.h
@@ -63,8 +63,8 @@ QT_MODULE(Declarative)
class Q_DECLARATIVE_EXPORT QFxContents : public QObject
{
Q_OBJECT
- Q_PROPERTY(int height READ height NOTIFY heightChanged);
- Q_PROPERTY(int width READ width NOTIFY widthChanged);
+ Q_PROPERTY(int height READ height NOTIFY heightChanged)
+ Q_PROPERTY(int width READ width NOTIFY widthChanged)
public:
QFxContents();
@@ -87,8 +87,8 @@ private:
int _height;
int _width;
};
-QML_DECLARE_TYPE(QFxContents);
-Q_DECLARE_OPERATORS_FOR_FLAGS(QFxAnchors::UsedAnchors);
+QML_DECLARE_TYPE(QFxContents)
+Q_DECLARE_OPERATORS_FOR_FLAGS(QFxAnchors::UsedAnchors)
class QmlState;
class QmlTransition;
@@ -267,9 +267,9 @@ private:
Q_DISABLE_COPY(QFxItem)
Q_DECLARE_PRIVATE(QFxItem)
};
-QML_DECLARE_TYPE(QFxItem);
+QML_DECLARE_TYPE(QFxItem)
-QML_DECLARE_TYPE(QSimpleCanvasFilter);
+QML_DECLARE_TYPE(QSimpleCanvasFilter)
QT_END_NAMESPACE
diff --git a/src/declarative/fx/qfxitem_p.h b/src/declarative/fx/qfxitem_p.h
index b5f9554..a54f523 100644
--- a/src/declarative/fx/qfxitem_p.h
+++ b/src/declarative/fx/qfxitem_p.h
@@ -100,7 +100,7 @@ public:
void data_insert(int, QObject *);
QObject *data_at(int) const;
void data_clear();
- QML_DECLARE_LIST_PROXY(QFxItemPrivate, QObject *, data);
+ QML_DECLARE_LIST_PROXY(QFxItemPrivate, QObject *, data)
// resources property
void resources_removeAt(int);
@@ -109,7 +109,7 @@ public:
void resources_insert(int, QObject *);
QObject *resources_at(int) const;
void resources_clear();
- QML_DECLARE_LIST_PROXY(QFxItemPrivate, QObject *, resources);
+ QML_DECLARE_LIST_PROXY(QFxItemPrivate, QObject *, resources)
// children property
void children_removeAt(int);
@@ -118,7 +118,7 @@ public:
void children_insert(int, QFxItem *);
QFxItem *children_at(int) const;
void children_clear();
- QML_DECLARE_LIST_PROXY(QFxItemPrivate, QFxItem *, children);
+ QML_DECLARE_LIST_PROXY(QFxItemPrivate, QFxItem *, children)
QList<QFxTransform *> _transform;
QFxAnchors *anchors() {
diff --git a/src/declarative/fx/qfxkeyactions.cpp b/src/declarative/fx/qfxkeyactions.cpp
index a07f047..5a1fd7d 100644
--- a/src/declarative/fx/qfxkeyactions.cpp
+++ b/src/declarative/fx/qfxkeyactions.cpp
@@ -44,7 +44,7 @@
QT_BEGIN_NAMESPACE
-QML_DEFINE_TYPE(QFxKeyActions,KeyActions);
+QML_DEFINE_TYPE(QFxKeyActions,KeyActions)
class QFxKeyActionsPrivate
{
diff --git a/src/declarative/fx/qfxkeyactions.h b/src/declarative/fx/qfxkeyactions.h
index a5aec2e..cea992a 100644
--- a/src/declarative/fx/qfxkeyactions.h
+++ b/src/declarative/fx/qfxkeyactions.h
@@ -310,7 +310,7 @@ private:
QFxKeyActionsPrivate *d;
};
-QML_DECLARE_TYPE(QFxKeyActions);
+QML_DECLARE_TYPE(QFxKeyActions)
QT_END_NAMESPACE
diff --git a/src/declarative/fx/qfxkeyproxy.cpp b/src/declarative/fx/qfxkeyproxy.cpp
index 848b2d9..e80f2c7 100644
--- a/src/declarative/fx/qfxkeyproxy.cpp
+++ b/src/declarative/fx/qfxkeyproxy.cpp
@@ -43,7 +43,7 @@
QT_BEGIN_NAMESPACE
-QML_DEFINE_TYPE(QFxKeyProxy,KeyProxy);
+QML_DEFINE_TYPE(QFxKeyProxy,KeyProxy)
/*!
\qmlclass KeyProxy
diff --git a/src/declarative/fx/qfxkeyproxy.h b/src/declarative/fx/qfxkeyproxy.h
index 6cf0c0d..38cff7a 100644
--- a/src/declarative/fx/qfxkeyproxy.h
+++ b/src/declarative/fx/qfxkeyproxy.h
@@ -69,7 +69,7 @@ private:
QFxKeyProxyPrivate *d;
};
-QML_DECLARE_TYPE(QFxKeyProxy);
+QML_DECLARE_TYPE(QFxKeyProxy)
QT_END_NAMESPACE
diff --git a/src/declarative/fx/qfxlayouts.cpp b/src/declarative/fx/qfxlayouts.cpp
index 53b367a..a975778 100644
--- a/src/declarative/fx/qfxlayouts.cpp
+++ b/src/declarative/fx/qfxlayouts.cpp
@@ -450,7 +450,7 @@ void QFxBaseLayout::applyRemove(const QList<QPair<QString, QVariant> >& changes,
applyTransition(changes,target, remove());
}
-QML_DEFINE_TYPE(QFxVerticalLayout, VerticalLayout);
+QML_DEFINE_TYPE(QFxVerticalLayout, VerticalLayout)
/*!
\qmlclass VerticalLayout
\brief The VerticalLayout item arranges its children in a vertical layout.
@@ -651,7 +651,7 @@ void QFxVerticalLayout::doLayout()
setMovingItem(0);
}
-QML_DEFINE_TYPE(QFxHorizontalLayout,HorizontalLayout);
+QML_DEFINE_TYPE(QFxHorizontalLayout,HorizontalLayout)
/*!
\qmlclass HorizontalLayout
\brief The HorizontalLayout item arranges its children in a horizontal layout.
@@ -815,7 +815,7 @@ void QFxHorizontalLayout::doLayout()
setWidth(hoffset);
}
-QML_DEFINE_TYPE(QFxGridLayout,GridLayout);
+QML_DEFINE_TYPE(QFxGridLayout,GridLayout)
/*!
\qmlclass GridLayout QFxGridLayout
diff --git a/src/declarative/fx/qfxlayouts.h b/src/declarative/fx/qfxlayouts.h
index 35e41d8..b119d6f 100644
--- a/src/declarative/fx/qfxlayouts.h
+++ b/src/declarative/fx/qfxlayouts.h
@@ -128,7 +128,7 @@ protected Q_SLOTS:
private:
Q_DISABLE_COPY(QFxVerticalLayout)
};
-QML_DECLARE_TYPE(QFxVerticalLayout);
+QML_DECLARE_TYPE(QFxVerticalLayout)
class Q_DECLARATIVE_EXPORT QFxHorizontalLayout: public QFxBaseLayout
{
@@ -140,7 +140,7 @@ protected Q_SLOTS:
private:
Q_DISABLE_COPY(QFxHorizontalLayout)
};
-QML_DECLARE_TYPE(QFxHorizontalLayout);
+QML_DECLARE_TYPE(QFxHorizontalLayout)
class Q_DECLARATIVE_EXPORT QFxGridLayout : public QFxBaseLayout
{
@@ -163,7 +163,7 @@ private:
int _columns;
Q_DISABLE_COPY(QFxGridLayout)
};
-QML_DECLARE_TYPE(QFxGridLayout);
+QML_DECLARE_TYPE(QFxGridLayout)
QT_END_NAMESPACE
diff --git a/src/declarative/fx/qfxlistview.cpp b/src/declarative/fx/qfxlistview.cpp
index 247f64b..432c6ac 100644
--- a/src/declarative/fx/qfxlistview.cpp
+++ b/src/declarative/fx/qfxlistview.cpp
@@ -1643,7 +1643,7 @@ QObject *QFxListView::qmlAttachedProperties(QObject *obj)
return QFxListViewAttached::properties(obj);
}
-QML_DEFINE_TYPE(QFxListView,ListView);
+QML_DEFINE_TYPE(QFxListView,ListView)
QT_END_NAMESPACE
#include "qfxlistview.moc"
diff --git a/src/declarative/fx/qfxlistview.h b/src/declarative/fx/qfxlistview.h
index 87a851b..5dfb0e4 100644
--- a/src/declarative/fx/qfxlistview.h
+++ b/src/declarative/fx/qfxlistview.h
@@ -55,24 +55,24 @@ class QFxListViewPrivate;
class Q_DECLARATIVE_EXPORT QFxListView : public QFxFlickable
{
Q_OBJECT
- Q_DECLARE_PRIVATE(QFxListView);
-
- Q_ENUMS(CurrentItemPositioning);
- Q_PROPERTY(QVariant model READ model WRITE setModel);
- Q_CLASSINFO("DefaultProperty", "delegate");
- Q_PROPERTY(QmlComponent *delegate READ delegate WRITE setDelegate);
- Q_PROPERTY(int currentIndex READ currentIndex WRITE setCurrentIndex NOTIFY currentIndexChanged);
- Q_PROPERTY(QFxItem *current READ currentItem NOTIFY currentIndexChanged);
- Q_PROPERTY(int count READ count NOTIFY countChanged);
- Q_PROPERTY(QmlComponent *highlight READ highlight WRITE setHighlight);
- Q_PROPERTY(bool autoHighlight READ autoHighlight WRITE setAutoHighlight);
- Q_PROPERTY(CurrentItemPositioning currentItemPositioning READ currentItemPositioning WRITE setCurrentItemPositioning);
- Q_PROPERTY(int snapPosition READ snapPosition WRITE setSnapPosition);
- Q_PROPERTY(Qt::Orientation orientation READ orientation WRITE setOrientation);
- Q_PROPERTY(bool wrap READ isWrapEnabled WRITE setWrapEnabled);
- Q_PROPERTY(int cacheBuffer READ cacheBuffer WRITE setCacheBuffer);
- Q_PROPERTY(QString sectionExpression READ sectionExpression WRITE setSectionExpression NOTIFY sectionExpressionChanged);
- Q_PROPERTY(QString currentSection READ currentSection NOTIFY currentSectionChanged);
+ Q_DECLARE_PRIVATE(QFxListView)
+
+ Q_ENUMS(CurrentItemPositioning)
+ Q_PROPERTY(QVariant model READ model WRITE setModel)
+ Q_CLASSINFO("DefaultProperty", "delegate")
+ Q_PROPERTY(QmlComponent *delegate READ delegate WRITE setDelegate)
+ Q_PROPERTY(int currentIndex READ currentIndex WRITE setCurrentIndex NOTIFY currentIndexChanged)
+ Q_PROPERTY(QFxItem *current READ currentItem NOTIFY currentIndexChanged)
+ Q_PROPERTY(int count READ count NOTIFY countChanged)
+ Q_PROPERTY(QmlComponent *highlight READ highlight WRITE setHighlight)
+ Q_PROPERTY(bool autoHighlight READ autoHighlight WRITE setAutoHighlight)
+ Q_PROPERTY(CurrentItemPositioning currentItemPositioning READ currentItemPositioning WRITE setCurrentItemPositioning)
+ Q_PROPERTY(int snapPosition READ snapPosition WRITE setSnapPosition)
+ Q_PROPERTY(Qt::Orientation orientation READ orientation WRITE setOrientation)
+ Q_PROPERTY(bool wrap READ isWrapEnabled WRITE setWrapEnabled)
+ Q_PROPERTY(int cacheBuffer READ cacheBuffer WRITE setCacheBuffer)
+ Q_PROPERTY(QString sectionExpression READ sectionExpression WRITE setSectionExpression NOTIFY sectionExpressionChanged)
+ Q_PROPERTY(QString currentSection READ currentSection NOTIFY currentSectionChanged)
public:
QFxListView(QFxItem *parent=0);
@@ -145,7 +145,7 @@ private Q_SLOTS:
void destroyingItem(QFxItem *item);
};
-QML_DECLARE_TYPE(QFxListView);
+QML_DECLARE_TYPE(QFxListView)
QT_END_NAMESPACE
diff --git a/src/declarative/fx/qfxmouseregion.cpp b/src/declarative/fx/qfxmouseregion.cpp
index a60ddc4..6eb358b 100644
--- a/src/declarative/fx/qfxmouseregion.cpp
+++ b/src/declarative/fx/qfxmouseregion.cpp
@@ -49,7 +49,7 @@ QT_BEGIN_NAMESPACE
static const int DragThreshold = 5;
static const int PressAndHoldDelay = 800;
-QML_DEFINE_TYPE(QFxDrag,Drag);
+QML_DEFINE_TYPE(QFxDrag,Drag)
QFxDrag::QFxDrag(QObject *parent)
: QObject(parent), _target(0), _xmin(0), _xmax(0), _ymin(0), _ymax(0)
{
@@ -249,7 +249,7 @@ void QFxDrag::setYmax(int m)
position of the release of the click, and whether the click wasHeld.
*/
-QML_DEFINE_TYPE(QFxMouseRegion,MouseRegion);
+QML_DEFINE_TYPE(QFxMouseRegion,MouseRegion)
/*!
\internal
diff --git a/src/declarative/fx/qfxmouseregion.h b/src/declarative/fx/qfxmouseregion.h
index 1d1ec93..d7db1dc 100644
--- a/src/declarative/fx/qfxmouseregion.h
+++ b/src/declarative/fx/qfxmouseregion.h
@@ -86,7 +86,7 @@ private:
int _ymax;
Q_DISABLE_COPY(QFxDrag)
};
-QML_DECLARE_TYPE(QFxDrag);
+QML_DECLARE_TYPE(QFxDrag)
class QFxMouseEvent;
class QFxMouseRegionPrivate;
@@ -154,7 +154,7 @@ private:
Q_DISABLE_COPY(QFxMouseRegion)
Q_DECLARE_PRIVATE(QFxMouseRegion)
};
-QML_DECLARE_TYPE(QFxMouseRegion);
+QML_DECLARE_TYPE(QFxMouseRegion)
QT_END_NAMESPACE
diff --git a/src/declarative/fx/qfxpainteditem.h b/src/declarative/fx/qfxpainteditem.h
index 6cd21e6..e086894 100644
--- a/src/declarative/fx/qfxpainteditem.h
+++ b/src/declarative/fx/qfxpainteditem.h
@@ -60,8 +60,8 @@ public:
QFxPaintedItem(QFxItem *parent=0);
~QFxPaintedItem();
- Q_PROPERTY(QSize contentsSize READ contentsSize WRITE setContentsSize);
- Q_PROPERTY(bool smooth READ isSmooth WRITE setSmooth);
+ Q_PROPERTY(QSize contentsSize READ contentsSize WRITE setContentsSize)
+ Q_PROPERTY(bool smooth READ isSmooth WRITE setSmooth)
#if defined(QFX_RENDER_QPAINTER)
void paintContents(QPainter &painter);
@@ -88,7 +88,7 @@ private:
Q_DISABLE_COPY(QFxPaintedItem)
Q_DECLARE_PRIVATE(QFxPaintedItem)
};
-QML_DECLARE_TYPE(QFxPaintedItem);
+QML_DECLARE_TYPE(QFxPaintedItem)
QT_END_NAMESPACE
diff --git a/src/declarative/fx/qfxparticles.cpp b/src/declarative/fx/qfxparticles.cpp
index 67c1208..e9f38b0 100644
--- a/src/declarative/fx/qfxparticles.cpp
+++ b/src/declarative/fx/qfxparticles.cpp
@@ -105,7 +105,7 @@ public:
//---------------------------------------------------------------------------
-QML_DEFINE_TYPE(QFxParticleMotion,ParticleMotion);
+QML_DEFINE_TYPE(QFxParticleMotion,ParticleMotion)
/*!
\class QFxParticleMotion
@@ -165,7 +165,7 @@ void QFxParticleMotion::destroy(QFxParticle &particle)
\brief The QFxParticleMotionLinear class moves the particles linearly.
*/
-QML_DEFINE_TYPE(QFxParticleMotionLinear,ParticleMotionLinear);
+QML_DEFINE_TYPE(QFxParticleMotionLinear,ParticleMotionLinear)
void QFxParticleMotionLinear::advance(QFxParticle &p, int interval)
{
@@ -187,7 +187,7 @@ void QFxParticleMotionLinear::advance(QFxParticle &p, int interval)
\brief The QFxParticleMotionGravity class moves the particles towards a point.
*/
-QML_DEFINE_TYPE(QFxParticleMotionGravity,ParticleMotionGravity);
+QML_DEFINE_TYPE(QFxParticleMotionGravity,ParticleMotionGravity)
/*!
\qmlproperty int ParticleMotionGravity::xattractor
@@ -289,7 +289,7 @@ Rect {
This property holds how quickly the paricles will move from side to side.
*/
-QML_DEFINE_TYPE(QFxParticleMotionWander,ParticleMotionWander);
+QML_DEFINE_TYPE(QFxParticleMotionWander,ParticleMotionWander)
void QFxParticleMotionWander::advance(QFxParticle &p, int interval)
{
@@ -546,7 +546,7 @@ void QFxParticlesPrivate::updateOpacity(QFxParticle &p, int age)
}
}
-QML_DEFINE_TYPE(QFxParticles,Particles);
+QML_DEFINE_TYPE(QFxParticles,Particles)
/*!
\qmlclass Particles
diff --git a/src/declarative/fx/qfxparticles.h b/src/declarative/fx/qfxparticles.h
index 31a00fb..6ef2582 100644
--- a/src/declarative/fx/qfxparticles.h
+++ b/src/declarative/fx/qfxparticles.h
@@ -66,7 +66,7 @@ public:
virtual void created(QFxParticle &);
virtual void destroy(QFxParticle &);
};
-QML_DECLARE_TYPE(QFxParticleMotion);
+QML_DECLARE_TYPE(QFxParticleMotion)
class Q_DECLARATIVE_EXPORT QFxParticleMotionLinear : public QFxParticleMotion
{
@@ -77,7 +77,7 @@ public:
virtual void advance(QFxParticle &, int interval);
};
-QML_DECLARE_TYPE(QFxParticleMotionLinear);
+QML_DECLARE_TYPE(QFxParticleMotionLinear)
class Q_DECLARATIVE_EXPORT QFxParticleMotionGravity : public QFxParticleMotion
{
@@ -106,7 +106,7 @@ private:
int _yAttr;
qreal _accel;
};
-QML_DECLARE_TYPE(QFxParticleMotionGravity);
+QML_DECLARE_TYPE(QFxParticleMotionGravity)
class Q_DECLARATIVE_EXPORT QFxParticleMotionWander : public QFxParticleMotion
{
@@ -128,15 +128,15 @@ public:
qreal y_var;
};
- Q_PROPERTY(int xvariance READ xVariance WRITE setXVariance);
+ Q_PROPERTY(int xvariance READ xVariance WRITE setXVariance)
int xVariance() const { return int(_xvariance * 1000); }
void setXVariance(int var) { _xvariance = var / 1000.0; }
- Q_PROPERTY(int yvariance READ yVariance WRITE setYVariance);
+ Q_PROPERTY(int yvariance READ yVariance WRITE setYVariance)
int yVariance() const { return int(_yvariance * 1000); }
void setYVariance(int var) { _yvariance = var / 1000.0; }
- Q_PROPERTY(int pace READ pace WRITE setPace);
+ Q_PROPERTY(int pace READ pace WRITE setPace)
int pace() const { return int(_pace * 1000); }
void setPace(int pace) { _pace = pace / 1000.0; }
@@ -146,27 +146,27 @@ private:
qreal _yvariance;
qreal _pace;
};
-QML_DECLARE_TYPE(QFxParticleMotionWander);
+QML_DECLARE_TYPE(QFxParticleMotionWander)
class QFxParticlesPrivate;
class Q_DECLARATIVE_EXPORT QFxParticles : public QFxItem
{
Q_OBJECT
- Q_PROPERTY(QString source READ source WRITE setSource);
- Q_PROPERTY(int count READ count WRITE setCount);
- Q_PROPERTY(int lifeSpan READ lifeSpan WRITE setLifeSpan);
- Q_PROPERTY(int lifeSpanDeviation READ lifeSpanDeviation WRITE setLifeSpanDeviation);
- Q_PROPERTY(int fadeInDuration READ fadeInDuration WRITE setFadeInDuration);
- Q_PROPERTY(int fadeOutDuration READ fadeOutDuration WRITE setFadeOutDuration);
- Q_PROPERTY(qreal angle READ angle WRITE setAngle);
- Q_PROPERTY(qreal angleDeviation READ angleDeviation WRITE setAngleDeviation);
- Q_PROPERTY(qreal velocity READ velocity WRITE setVelocity);
- Q_PROPERTY(qreal velocityDeviation READ velocityDeviation WRITE setVelocityDeviation);
- Q_PROPERTY(bool streamIn READ streamIn WRITE setStreamIn);
- Q_PROPERTY(bool emitting READ emitting WRITE setEmitting);
- Q_PROPERTY(QFxParticleMotion *motion READ motion WRITE setMotion);
- Q_CLASSINFO("DefaultProperty", "motion");
+ Q_PROPERTY(QString source READ source WRITE setSource)
+ Q_PROPERTY(int count READ count WRITE setCount)
+ Q_PROPERTY(int lifeSpan READ lifeSpan WRITE setLifeSpan)
+ Q_PROPERTY(int lifeSpanDeviation READ lifeSpanDeviation WRITE setLifeSpanDeviation)
+ Q_PROPERTY(int fadeInDuration READ fadeInDuration WRITE setFadeInDuration)
+ Q_PROPERTY(int fadeOutDuration READ fadeOutDuration WRITE setFadeOutDuration)
+ Q_PROPERTY(qreal angle READ angle WRITE setAngle)
+ Q_PROPERTY(qreal angleDeviation READ angleDeviation WRITE setAngleDeviation)
+ Q_PROPERTY(qreal velocity READ velocity WRITE setVelocity)
+ Q_PROPERTY(qreal velocityDeviation READ velocityDeviation WRITE setVelocityDeviation)
+ Q_PROPERTY(bool streamIn READ streamIn WRITE setStreamIn)
+ Q_PROPERTY(bool emitting READ emitting WRITE setEmitting)
+ Q_PROPERTY(QFxParticleMotion *motion READ motion WRITE setMotion)
+ Q_CLASSINFO("DefaultProperty", "motion")
public:
QFxParticles(QFxItem *parent=0);
@@ -231,7 +231,7 @@ private:
Q_DISABLE_COPY(QFxParticles)
Q_DECLARE_PRIVATE(QFxParticles)
};
-QML_DECLARE_TYPE(QFxParticles);
+QML_DECLARE_TYPE(QFxParticles)
QT_END_NAMESPACE
diff --git a/src/declarative/fx/qfxpath.cpp b/src/declarative/fx/qfxpath.cpp
index 5bbdf64..5deaaa5 100644
--- a/src/declarative/fx/qfxpath.cpp
+++ b/src/declarative/fx/qfxpath.cpp
@@ -46,14 +46,14 @@
QT_BEGIN_NAMESPACE
-QML_DEFINE_TYPE(QFxPath,Path);
-QML_DEFINE_NOCREATE_TYPE(QFxPathElement);
-QML_DEFINE_NOCREATE_TYPE(QFxCurve);
-QML_DEFINE_TYPE(QFxPathAttribute,PathAttribute);
-QML_DEFINE_TYPE(QFxPathPercent,PathPercent);
-QML_DEFINE_TYPE(QFxPathLine,PathLine);
-QML_DEFINE_TYPE(QFxPathQuad,PathQuad);
-QML_DEFINE_TYPE(QFxPathCubic,PathCubic);
+QML_DEFINE_TYPE(QFxPath,Path)
+QML_DEFINE_NOCREATE_TYPE(QFxPathElement)
+QML_DEFINE_NOCREATE_TYPE(QFxCurve)
+QML_DEFINE_TYPE(QFxPathAttribute,PathAttribute)
+QML_DEFINE_TYPE(QFxPathPercent,PathPercent)
+QML_DEFINE_TYPE(QFxPathLine,PathLine)
+QML_DEFINE_TYPE(QFxPathQuad,PathQuad)
+QML_DEFINE_TYPE(QFxPathCubic,PathCubic)
/*!
\qmlclass PathElement
diff --git a/src/declarative/fx/qfxpath.h b/src/declarative/fx/qfxpath.h
index 10cf252..39b9d01 100644
--- a/src/declarative/fx/qfxpath.h
+++ b/src/declarative/fx/qfxpath.h
@@ -61,7 +61,7 @@ public:
Q_SIGNALS:
void changed();
};
-QML_DECLARE_TYPE(QFxPathElement);
+QML_DECLARE_TYPE(QFxPathElement)
class Q_DECLARATIVE_EXPORT QFxPathAttribute : public QFxPathElement
{
@@ -83,7 +83,7 @@ private:
QString _name;
qreal _value;
};
-QML_DECLARE_TYPE(QFxPathAttribute);
+QML_DECLARE_TYPE(QFxPathAttribute)
class Q_DECLARATIVE_EXPORT QFxCurve : public QFxPathElement
{
@@ -106,7 +106,7 @@ private:
qreal _x;
qreal _y;
};
-QML_DECLARE_TYPE(QFxCurve);
+QML_DECLARE_TYPE(QFxCurve)
class Q_DECLARATIVE_EXPORT QFxPathLine : public QFxCurve
{
@@ -116,7 +116,7 @@ public:
void addToPath(QPainterPath &path);
};
-QML_DECLARE_TYPE(QFxPathLine);
+QML_DECLARE_TYPE(QFxPathLine)
class Q_DECLARATIVE_EXPORT QFxPathQuad : public QFxCurve
{
@@ -139,7 +139,7 @@ private:
qreal _controlX;
qreal _controlY;
};
-QML_DECLARE_TYPE(QFxPathQuad);
+QML_DECLARE_TYPE(QFxPathQuad)
class Q_DECLARATIVE_EXPORT QFxPathCubic : public QFxCurve
{
@@ -172,7 +172,7 @@ private:
int _control2X;
int _control2Y;
};
-QML_DECLARE_TYPE(QFxPathCubic);
+QML_DECLARE_TYPE(QFxPathCubic)
class Q_DECLARATIVE_EXPORT QFxPathPercent : public QFxPathElement
{
@@ -187,14 +187,14 @@ public:
private:
qreal _value;
};
-QML_DECLARE_TYPE(QFxPathPercent);
+QML_DECLARE_TYPE(QFxPathPercent)
class QFxPathPrivate;
class Q_DECLARATIVE_EXPORT QFxPath : public QObject, public QmlParserStatus
{
Q_OBJECT
- Q_INTERFACES(QmlParserStatus);
+ Q_INTERFACES(QmlParserStatus)
Q_PROPERTY(QList<QFxPathElement *>* pathElements READ pathElements)
Q_PROPERTY(qreal startX READ startX WRITE setStartX)
Q_PROPERTY(qreal startY READ startY WRITE setStartY)
@@ -249,7 +249,7 @@ private:
Q_DISABLE_COPY(QFxPath)
Q_DECLARE_PRIVATE(QFxPath)
};
-QML_DECLARE_TYPE(QFxPath);
+QML_DECLARE_TYPE(QFxPath)
QT_END_NAMESPACE
diff --git a/src/declarative/fx/qfxpathview.cpp b/src/declarative/fx/qfxpathview.cpp
index 3f2e77a..625d778 100644
--- a/src/declarative/fx/qfxpathview.cpp
+++ b/src/declarative/fx/qfxpathview.cpp
@@ -55,7 +55,7 @@ static const int FlickThreshold = 5;
QT_BEGIN_NAMESPACE
-QML_DEFINE_TYPE(QFxPathView,PathView);
+QML_DEFINE_TYPE(QFxPathView,PathView)
class QFxPathViewAttached : public QObject
{
diff --git a/src/declarative/fx/qfxpathview.h b/src/declarative/fx/qfxpathview.h
index 33db566..cbdafa8 100644
--- a/src/declarative/fx/qfxpathview.h
+++ b/src/declarative/fx/qfxpathview.h
@@ -127,7 +127,7 @@ private:
Q_DISABLE_COPY(QFxPathView)
Q_DECLARE_PRIVATE(QFxPathView)
};
-QML_DECLARE_TYPE(QFxPathView);
+QML_DECLARE_TYPE(QFxPathView)
QT_END_NAMESPACE
diff --git a/src/declarative/fx/qfxrect.cpp b/src/declarative/fx/qfxrect.cpp
index f81f9b3..90170da 100644
--- a/src/declarative/fx/qfxrect.cpp
+++ b/src/declarative/fx/qfxrect.cpp
@@ -44,7 +44,7 @@
QT_BEGIN_NAMESPACE
-QML_DEFINE_TYPE(QFxPen,Pen);
+QML_DEFINE_TYPE(QFxPen,Pen)
/*!
\internal
@@ -118,7 +118,7 @@ void QFxPen::setWidth(int w)
-QML_DEFINE_TYPE(QFxRect,Rect);
+QML_DEFINE_TYPE(QFxRect,Rect)
/*!
\qmlclass Rect QFxRect
diff --git a/src/declarative/fx/qfxrect.h b/src/declarative/fx/qfxrect.h
index 420ec44..209a8ef 100644
--- a/src/declarative/fx/qfxrect.h
+++ b/src/declarative/fx/qfxrect.h
@@ -77,7 +77,7 @@ private:
QColor _color;
bool _valid;
};
-QML_DECLARE_TYPE(QFxPen);
+QML_DECLARE_TYPE(QFxPen)
class QFxRectPrivate;
class Q_DECLARATIVE_EXPORT QFxRect : public QFxItem
@@ -131,7 +131,7 @@ private:
Q_DISABLE_COPY(QFxRect)
Q_DECLARE_PRIVATE(QFxRect)
};
-QML_DECLARE_TYPE(QFxRect);
+QML_DECLARE_TYPE(QFxRect)
QT_END_NAMESPACE
diff --git a/src/declarative/fx/qfxreflectionfilter.cpp b/src/declarative/fx/qfxreflectionfilter.cpp
index 0bc01a7..2e57aa7 100644
--- a/src/declarative/fx/qfxreflectionfilter.cpp
+++ b/src/declarative/fx/qfxreflectionfilter.cpp
@@ -348,5 +348,5 @@ QRectF QFxReflectionFilter::itemBoundingRect(const QRectF &r) const
return rv;
}
-QML_DEFINE_TYPE(QFxReflectionFilter,Reflection);
+QML_DEFINE_TYPE(QFxReflectionFilter,Reflection)
QT_END_NAMESPACE
diff --git a/src/declarative/fx/qfxreflectionfilter.h b/src/declarative/fx/qfxreflectionfilter.h
index 383e12f..6e56b5e 100644
--- a/src/declarative/fx/qfxreflectionfilter.h
+++ b/src/declarative/fx/qfxreflectionfilter.h
@@ -87,7 +87,7 @@ private:
Q_DISABLE_COPY(QFxReflectionFilter)
QFxReflectionFilterPrivate *d;
};
-QML_DECLARE_TYPE(QFxReflectionFilter);
+QML_DECLARE_TYPE(QFxReflectionFilter)
QT_END_NAMESPACE
diff --git a/src/declarative/fx/qfxrepeater.cpp b/src/declarative/fx/qfxrepeater.cpp
index 23b4e01..0211ebb 100644
--- a/src/declarative/fx/qfxrepeater.cpp
+++ b/src/declarative/fx/qfxrepeater.cpp
@@ -71,7 +71,7 @@ QFxItem *QFxRepeaterPrivate::addItem(QmlContext *ctxt, QFxItem *lastItem)
return item;
}
-QML_DEFINE_TYPE(QFxRepeater,Repeater);
+QML_DEFINE_TYPE(QFxRepeater,Repeater)
/*!
\qmlclass Repeater
diff --git a/src/declarative/fx/qfxrepeater.h b/src/declarative/fx/qfxrepeater.h
index 362242b..c1b194a 100644
--- a/src/declarative/fx/qfxrepeater.h
+++ b/src/declarative/fx/qfxrepeater.h
@@ -80,7 +80,7 @@ private:
Q_DISABLE_COPY(QFxRepeater)
Q_DECLARE_PRIVATE(QFxRepeater)
};
-QML_DECLARE_TYPE(QFxRepeater);
+QML_DECLARE_TYPE(QFxRepeater)
QT_END_NAMESPACE
diff --git a/src/declarative/fx/qfxscalegrid.cpp b/src/declarative/fx/qfxscalegrid.cpp
index 325f7d9..abe8e0d 100644
--- a/src/declarative/fx/qfxscalegrid.cpp
+++ b/src/declarative/fx/qfxscalegrid.cpp
@@ -71,7 +71,7 @@ QT_BEGIN_NAMESPACE
imageFile: picture.png
\endcode
*/
-QML_DEFINE_NOCREATE_TYPE(QFxScaleGrid);
+QML_DEFINE_NOCREATE_TYPE(QFxScaleGrid)
QFxScaleGrid::QFxScaleGrid() : QObject(), _left(0), _top(0), _right(0), _bottom(0)
{
diff --git a/src/declarative/fx/qfxscalegrid.h b/src/declarative/fx/qfxscalegrid.h
index d0f735f..2a20de7 100644
--- a/src/declarative/fx/qfxscalegrid.h
+++ b/src/declarative/fx/qfxscalegrid.h
@@ -111,7 +111,7 @@ private:
int _b;
QString _pix;
};
-QML_DECLARE_TYPE(QFxScaleGrid);
+QML_DECLARE_TYPE(QFxScaleGrid)
QT_END_NAMESPACE
diff --git a/src/declarative/fx/qfxshadowfilter.cpp b/src/declarative/fx/qfxshadowfilter.cpp
index 83c1b47..10c332c 100644
--- a/src/declarative/fx/qfxshadowfilter.cpp
+++ b/src/declarative/fx/qfxshadowfilter.cpp
@@ -209,6 +209,6 @@ void QFxShadowFilter::filterGL(QSimpleCanvasItem::GLPainter &p)
#endif
}
-QML_DEFINE_TYPE(QFxShadowFilter,Shadow);
+QML_DEFINE_TYPE(QFxShadowFilter,Shadow)
QT_END_NAMESPACE
diff --git a/src/declarative/fx/qfxshadowfilter.h b/src/declarative/fx/qfxshadowfilter.h
index fc54e01..67d165a 100644
--- a/src/declarative/fx/qfxshadowfilter.h
+++ b/src/declarative/fx/qfxshadowfilter.h
@@ -77,7 +77,7 @@ protected:
private:
QFxShadowFilterPrivate *d;
};
-QML_DECLARE_TYPE(QFxShadowFilter);
+QML_DECLARE_TYPE(QFxShadowFilter)
QT_END_NAMESPACE
diff --git a/src/declarative/fx/qfxtext.cpp b/src/declarative/fx/qfxtext.cpp
index 315b451..94a1712 100644
--- a/src/declarative/fx/qfxtext.cpp
+++ b/src/declarative/fx/qfxtext.cpp
@@ -57,7 +57,7 @@
QT_BEGIN_NAMESPACE
-QML_DEFINE_TYPE(QFxText,Text);
+QML_DEFINE_TYPE(QFxText,Text)
/*!
\qmlclass Text QFxText
diff --git a/src/declarative/fx/qfxtext.h b/src/declarative/fx/qfxtext.h
index ee9082b..99ab2be 100644
--- a/src/declarative/fx/qfxtext.h
+++ b/src/declarative/fx/qfxtext.h
@@ -68,7 +68,7 @@ class Q_DECLARATIVE_EXPORT QFxText : public QFxItem
Q_PROPERTY(VAlignment vAlign READ vAlign WRITE setVAlign)
Q_PROPERTY(bool wrap READ wrap WRITE setWrap)
Q_PROPERTY(Qt::TextElideMode elide READ elideMode WRITE setElideMode)
- Q_PROPERTY(QString activeLink READ activeLink);
+ Q_PROPERTY(QString activeLink READ activeLink)
Q_CLASSINFO("DefaultProperty", "text")
public:
@@ -144,7 +144,7 @@ private:
Q_DISABLE_COPY(QFxText)
Q_DECLARE_PRIVATE(QFxText)
};
-QML_DECLARE_TYPE(QFxText);
+QML_DECLARE_TYPE(QFxText)
QT_END_NAMESPACE
diff --git a/src/declarative/fx/qfxtextedit.cpp b/src/declarative/fx/qfxtextedit.cpp
index f59e0ae..fc73ecd 100644
--- a/src/declarative/fx/qfxtextedit.cpp
+++ b/src/declarative/fx/qfxtextedit.cpp
@@ -58,7 +58,7 @@
QT_BEGIN_NAMESPACE
-QML_DEFINE_TYPE(QFxTextEdit, TextEdit);
+QML_DEFINE_TYPE(QFxTextEdit, TextEdit)
/*!
\qmlclass TextEdit
diff --git a/src/declarative/fx/qfxtextedit.h b/src/declarative/fx/qfxtextedit.h
index 1456cd8..37bc327 100644
--- a/src/declarative/fx/qfxtextedit.h
+++ b/src/declarative/fx/qfxtextedit.h
@@ -198,7 +198,7 @@ private:
Q_DISABLE_COPY(QFxTextEdit)
Q_DECLARE_PRIVATE(QFxTextEdit)
};
-QML_DECLARE_TYPE(QFxTextEdit);
+QML_DECLARE_TYPE(QFxTextEdit)
QT_END_NAMESPACE
diff --git a/src/declarative/fx/qfxtransform.cpp b/src/declarative/fx/qfxtransform.cpp
index d99af27..a4c5d22 100644
--- a/src/declarative/fx/qfxtransform.cpp
+++ b/src/declarative/fx/qfxtransform.cpp
@@ -99,7 +99,7 @@ void QFxTransform::update()
\endqml
*/
-QML_DEFINE_TYPE(QFxAxis, Axis);
+QML_DEFINE_TYPE(QFxAxis, Axis)
QFxAxis::QFxAxis(QObject *parent)
: QObject(parent), _startX(0), _startY(0), _endX(0), _endY(0), _endZ(0)
@@ -286,7 +286,7 @@ void QFxRotation::update()
QFxTransform::update();
}
-QML_DEFINE_TYPE(QFxRotation, Rotation);
+QML_DEFINE_TYPE(QFxRotation, Rotation)
/*!
\qmlclass Rotation3D
@@ -298,7 +298,7 @@ QML_DEFINE_TYPE(QFxRotation, Rotation);
\image axisrotation.png
*/
-QML_DEFINE_TYPE(QFxRotation3D,Rotation3D);
+QML_DEFINE_TYPE(QFxRotation3D,Rotation3D)
QFxRotation3D::QFxRotation3D(QObject *parent)
: QFxTransform(parent), _angle(0), _dirty(true)
@@ -448,7 +448,7 @@ Image {
\endqml
*/
-QML_DEFINE_TYPE(QFxTranslation3D,Translation3D);
+QML_DEFINE_TYPE(QFxTranslation3D,Translation3D)
QFxTranslation3D::QFxTranslation3D(QObject *parent)
: QFxTransform(parent), _distance(0), _dirty(true)
@@ -568,7 +568,7 @@ void QFxTranslation3D::update()
OpenGL. When running under software rasterization it has no effect.
*/
-QML_DEFINE_TYPE(QFxPerspective,Perspective);
+QML_DEFINE_TYPE(QFxPerspective,Perspective)
QFxPerspective::QFxPerspective(QObject *parent)
: QFxTransform(parent)
@@ -683,7 +683,7 @@ QMatrix4x4 QFxPerspective::transform() const
\image squish.png
*/
-QML_DEFINE_TYPE(QFxSquish,Squish);
+QML_DEFINE_TYPE(QFxSquish,Squish)
QFxSquish::QFxSquish(QObject *parent)
: QFxTransform(parent)
diff --git a/src/declarative/fx/qfxtransform.h b/src/declarative/fx/qfxtransform.h
index 31374df..7be8adc 100644
--- a/src/declarative/fx/qfxtransform.h
+++ b/src/declarative/fx/qfxtransform.h
@@ -67,7 +67,7 @@ public:
virtual bool isIdentity() const;
virtual QSimpleCanvas::Matrix transform() const;
};
-QML_DECLARE_TYPE(QFxTransform);
+QML_DECLARE_TYPE(QFxTransform)
class Q_DECLARATIVE_EXPORT QFxAxis : public QObject
{
@@ -107,7 +107,7 @@ private:
qreal _endY;
qreal _endZ;
};
-QML_DECLARE_TYPE(QFxAxis);
+QML_DECLARE_TYPE(QFxAxis)
class Q_DECLARATIVE_EXPORT QFxRotation : public QFxTransform
{
@@ -145,7 +145,7 @@ private:
mutable bool _dirty;
mutable QSimpleCanvas::Matrix _transform;
};
-QML_DECLARE_TYPE(QFxRotation);
+QML_DECLARE_TYPE(QFxRotation)
class Q_DECLARATIVE_EXPORT QFxRotation3D : public QFxTransform
{
@@ -174,7 +174,7 @@ private:
mutable bool _dirty;
mutable QSimpleCanvas::Matrix _transform;
};
-QML_DECLARE_TYPE(QFxRotation3D);
+QML_DECLARE_TYPE(QFxRotation3D)
class Q_DECLARATIVE_EXPORT QFxTranslation3D : public QFxTransform
{
@@ -203,7 +203,7 @@ private:
mutable bool _dirty;
mutable QSimpleCanvas::Matrix _transform;
};
-QML_DECLARE_TYPE(QFxTranslation3D);
+QML_DECLARE_TYPE(QFxTranslation3D)
class Q_DECLARATIVE_EXPORT QFxPerspective : public QFxTransform
{
@@ -244,7 +244,7 @@ private:
qreal _angle;
qreal _aspect;
};
-QML_DECLARE_TYPE(QFxPerspective);
+QML_DECLARE_TYPE(QFxPerspective)
class Q_DECLARATIVE_EXPORT QFxSquish : public QFxTransform
{
@@ -310,7 +310,7 @@ private:
QSizeF s;
QPointF p1, p2, p3, p4;
};
-QML_DECLARE_TYPE(QFxSquish);
+QML_DECLARE_TYPE(QFxSquish)
QT_END_NAMESPACE
diff --git a/src/declarative/fx/qfxvisualitemmodel.cpp b/src/declarative/fx/qfxvisualitemmodel.cpp
index 3e06ff8..c60a379 100644
--- a/src/declarative/fx/qfxvisualitemmodel.cpp
+++ b/src/declarative/fx/qfxvisualitemmodel.cpp
@@ -54,7 +54,7 @@
QT_BEGIN_NAMESPACE
-QML_DECLARE_TYPE(QListModelInterface);
+QML_DECLARE_TYPE(QListModelInterface)
class QFxVisualItemModelParts;
class QFxVisualItemModelData;
@@ -765,7 +765,7 @@ void QFxVisualItemModel::_q_destroyingPackage(QmlPackage *package)
emit destroyingItem(qobject_cast<QFxItem*>(package->part(d->m_part)));
}
-QML_DEFINE_TYPE(QFxVisualItemModel,VisualModel);
+QML_DEFINE_TYPE(QFxVisualItemModel,VisualModel)
QT_END_NAMESPACE
#include "qfxvisualitemmodel.moc"
diff --git a/src/declarative/fx/qfxvisualitemmodel.h b/src/declarative/fx/qfxvisualitemmodel.h
index 622065c..968cc2e 100644
--- a/src/declarative/fx/qfxvisualitemmodel.h
+++ b/src/declarative/fx/qfxvisualitemmodel.h
@@ -123,7 +123,7 @@ private Q_SLOTS:
private:
Q_DISABLE_COPY(QFxVisualItemModel)
};
-QML_DECLARE_TYPE(QFxVisualItemModel);
+QML_DECLARE_TYPE(QFxVisualItemModel)
QT_END_NAMESPACE
diff --git a/src/declarative/fx/qfxwebview.cpp b/src/declarative/fx/qfxwebview.cpp
index 7998711..4c35cae 100644
--- a/src/declarative/fx/qfxwebview.cpp
+++ b/src/declarative/fx/qfxwebview.cpp
@@ -71,7 +71,7 @@
#include <private/qfxpainteditem_p.h>
QT_BEGIN_NAMESPACE
-QML_DEFINE_TYPE(QFxWebView,WebView);
+QML_DEFINE_TYPE(QFxWebView,WebView)
static const int MAX_DOUBLECLICK_TIME=500; // XXX need better gesture system
diff --git a/src/declarative/fx/qfxwebview.h b/src/declarative/fx/qfxwebview.h
index 6a3dad5..28ef6c3 100644
--- a/src/declarative/fx/qfxwebview.h
+++ b/src/declarative/fx/qfxwebview.h
@@ -207,7 +207,7 @@ private:
Q_DISABLE_COPY(QFxWebView)
Q_DECLARE_PRIVATE(QFxWebView)
};
-QML_DECLARE_TYPE(QFxWebView);
+QML_DECLARE_TYPE(QFxWebView)
QT_END_NAMESPACE
diff --git a/src/declarative/fx/qfxwidgetcontainer.cpp b/src/declarative/fx/qfxwidgetcontainer.cpp
index fccdad1..421c2f7 100644
--- a/src/declarative/fx/qfxwidgetcontainer.cpp
+++ b/src/declarative/fx/qfxwidgetcontainer.cpp
@@ -56,7 +56,7 @@ QT_BEGIN_NAMESPACE
\brief The QFxWidgetContainer class allows you to add QGraphicsWidgets into Fluid UI applications.
*/
-QML_DEFINE_TYPE(QFxWidgetContainer, WidgetContainer);
+QML_DEFINE_TYPE(QFxWidgetContainer, WidgetContainer)
QFxWidgetContainer::QFxWidgetContainer(QFxItem *parent)
: QFxItem(parent), _graphicsWidget(0)
diff --git a/src/declarative/fx/qfxwidgetcontainer.h b/src/declarative/fx/qfxwidgetcontainer.h
index 3b1f016..cc36010 100644
--- a/src/declarative/fx/qfxwidgetcontainer.h
+++ b/src/declarative/fx/qfxwidgetcontainer.h
@@ -72,7 +72,7 @@ protected:
private:
QGraphicsWidget *_graphicsWidget;
};
-QML_DECLARE_TYPE(QFxWidgetContainer);
+QML_DECLARE_TYPE(QFxWidgetContainer)
QT_END_NAMESPACE
diff --git a/src/declarative/opengl/glsave.h b/src/declarative/opengl/glsave.h
index 8256162..ad6c0ec 100644
--- a/src/declarative/opengl/glsave.h
+++ b/src/declarative/opengl/glsave.h
@@ -67,7 +67,7 @@ public:
}
private:
- Q_DISABLE_COPY(GLSaveViewport);
+ Q_DISABLE_COPY(GLSaveViewport)
GLint viewport[4];
};
@@ -100,7 +100,7 @@ public:
}
private:
- Q_DISABLE_COPY(GLSaveScissor);
+ Q_DISABLE_COPY(GLSaveScissor)
GLint box[4];
GLboolean enabled;
};
diff --git a/src/declarative/opengl/gltexture.h b/src/declarative/opengl/gltexture.h
index 8704498..787c9a5 100644
--- a/src/declarative/opengl/gltexture.h
+++ b/src/declarative/opengl/gltexture.h
@@ -105,7 +105,7 @@ public:
GLuint texture() const;
private:
- Q_DISABLE_COPY(GLTexture);
+ Q_DISABLE_COPY(GLTexture)
GLTexturePrivate *d;
};
diff --git a/src/declarative/qml/parser/javascriptlexer.cpp b/src/declarative/qml/parser/javascriptlexer.cpp
index fda6ad2..ea36a7a 100644
--- a/src/declarative/qml/parser/javascriptlexer.cpp
+++ b/src/declarative/qml/parser/javascriptlexer.cpp
@@ -758,49 +758,54 @@ int Lexer::lex()
flags = noSuffix;
- if (current == 'e' && next1 == 'm') {
+ const ushort c = QChar::toLower(current);
+ const ushort n1 = QChar::toLower(next1);
+ const ushort n2 = QChar::toLower(next2);
+ const ushort n3 = QChar::toLower(next3);
+
+ if (c == 'e' && n1 == 'm') {
flags = emSuffix;
shift(2);
- } else if (current == 'e' && next1 == 'x') {
+ } else if (c == 'e' && n1 == 'x') {
flags = exSuffix;
shift(2);
- } else if (current == 'p' && next1 == 'x') {
+ } else if (c == 'p' && n1 == 'x') {
flags = pxSuffix;
shift(2);
- } else if (current == 'c' && next1 == 'm') {
+ } else if (c == 'c' && n1 == 'm') {
flags = cmSuffix;
shift(2);
- } else if (current == 'm' && next1 == 'm') {
+ } else if (c == 'm' && n1 == 'm') {
flags = mmSuffix;
shift(2);
- } else if (current == 'i' && next1 == 'n') {
+ } else if (c == 'i' && n1 == 'n') {
flags = inSuffix;
shift(2);
- } else if (current == 'p' && next1 == 't') {
+ } else if (c == 'p' && n1 == 't') {
flags = ptSuffix;
shift(2);
- } else if (current == 'p' && next1 == 'c') {
+ } else if (c == 'p' && n1 == 'c') {
flags = pcSuffix;
shift(1);
- } else if (current == 'd' && next1 == 'e' && next2 == 'g') {
+ } else if (c == 'd' && n1 == 'e' && n2 == 'g') {
flags = degSuffix;
shift(3);
- } else if (current == 'r' && next1 == 'a' && next2 == 'd') {
+ } else if (c == 'r' && n1 == 'a' && n2 == 'd') {
flags = radSuffix;
shift(3);
- } else if (current == 'g' && next1 == 'r' && next2 == 'a' && next3 == 'd') {
+ } else if (c == 'g' && n1 == 'r' && n2 == 'a' && n3 == 'd') {
flags = gradSuffix;
shift(4);
- } else if (current == 'm' && next1 == 's') {
+ } else if (c == 'm' && n1 == 's') {
flags = msSuffix;
shift(2);
- } else if (current == 's') {
+ } else if (c == 's') {
flags = sSuffix;
shift(1);
- } else if (current == 'h' && next1 == 'z') {
+ } else if (c == 'h' && n1 == 'z') {
flags = hzSuffix;
shift(2);
- } else if (current == 'k' && next1 == 'h' && next2 == 'z') {
+ } else if (c == 'k' && n1 == 'h' && n2 == 'z') {
flags = khzSuffix;
shift(3);
}
@@ -811,7 +816,7 @@ int Lexer::lex()
&& isIdentLetter(current)) {
state = Bad;
err = IllegalIdentifier;
- errmsg = QLatin1String("Identifier cannot start with numeric literal `%1'");
+ errmsg = QLatin1String("Identifier cannot start with numeric literal");
}
// terminate string
diff --git a/src/declarative/qml/qml.h b/src/declarative/qml/qml.h
index b435e94..370bb58 100644
--- a/src/declarative/qml/qml.h
+++ b/src/declarative/qml/qml.h
@@ -59,13 +59,13 @@ QT_BEGIN_NAMESPACE
QT_MODULE(Declarative)
#define QML_DECLARE_TYPE(TYPE) \
- Q_DECLARE_METATYPE(TYPE *); \
- Q_DECLARE_METATYPE(QList<TYPE *> *); \
- Q_DECLARE_METATYPE(QmlList<TYPE *> *);
+ Q_DECLARE_METATYPE(TYPE *) \
+ Q_DECLARE_METATYPE(QList<TYPE *> *) \
+ Q_DECLARE_METATYPE(QmlList<TYPE *> *)
#define QML_DECLARE_TYPE_HASMETATYPE(TYPE) \
- Q_DECLARE_METATYPE(QList<TYPE *> *); \
- Q_DECLARE_METATYPE(QmlList<TYPE *> *);
+ Q_DECLARE_METATYPE(QList<TYPE *> *) \
+ Q_DECLARE_METATYPE(QmlList<TYPE *> *)
#define QML_DECLARE_INTERFACE(INTERFACE) \
QML_DECLARE_TYPE(INTERFACE)
@@ -109,8 +109,8 @@ QObject *qmlAttachedPropertiesObject(const QObject *obj)
return qmlAttachedPropertiesObjectById(idx, obj);
}
-QML_DECLARE_TYPE(QObject);
-Q_DECLARE_METATYPE(QVariant);
+QML_DECLARE_TYPE(QObject)
+Q_DECLARE_METATYPE(QVariant)
QT_END_NAMESPACE
diff --git a/src/declarative/qml/qmlbindablevalue.h b/src/declarative/qml/qmlbindablevalue.h
index 7831177..c5bb97b 100644
--- a/src/declarative/qml/qmlbindablevalue.h
+++ b/src/declarative/qml/qmlbindablevalue.h
@@ -70,8 +70,8 @@ public:
virtual void setTarget(const QmlMetaProperty &);
QmlMetaProperty property() const;
- Q_CLASSINFO("DefaultProperty", "expression");
- Q_PROPERTY(QString expression READ expression WRITE setExpression);
+ Q_CLASSINFO("DefaultProperty", "expression")
+ Q_PROPERTY(QString expression READ expression WRITE setExpression)
virtual void setExpression(const QString &);
void init();
@@ -85,7 +85,7 @@ protected:
private:
Q_DECLARE_PRIVATE(QmlBindableValue)
};
-QML_DECLARE_TYPE(QmlBindableValue);
+QML_DECLARE_TYPE(QmlBindableValue)
QT_END_NAMESPACE
diff --git a/src/declarative/qml/qmlbindablevalue_p.h b/src/declarative/qml/qmlbindablevalue_p.h
index 9973bdc..9476b80 100644
--- a/src/declarative/qml/qmlbindablevalue_p.h
+++ b/src/declarative/qml/qmlbindablevalue_p.h
@@ -50,7 +50,7 @@ QT_BEGIN_NAMESPACE
class QmlBindableValuePrivate : public QObjectPrivate
{
- Q_DECLARE_PUBLIC(QmlBindableValue);
+ Q_DECLARE_PUBLIC(QmlBindableValue)
public:
QmlBindableValuePrivate();
diff --git a/src/declarative/qml/qmlcomponent.h b/src/declarative/qml/qmlcomponent.h
index 90f7467..e7386d9 100644
--- a/src/declarative/qml/qmlcomponent.h
+++ b/src/declarative/qml/qmlcomponent.h
@@ -60,7 +60,7 @@ class QmlEngine;
class Q_DECLARATIVE_EXPORT QmlComponent : public QObject
{
Q_OBJECT
- Q_DECLARE_PRIVATE(QmlComponent);
+ Q_DECLARE_PRIVATE(QmlComponent)
public:
QmlComponent(QObject *parent = 0);
@@ -101,7 +101,7 @@ private:
friend class QmlVME;
friend struct QmlCompositeTypeData;
};
-QML_DECLARE_TYPE(QmlComponent);
+QML_DECLARE_TYPE(QmlComponent)
QT_END_NAMESPACE
diff --git a/src/declarative/qml/qmlcustomparser_p.h b/src/declarative/qml/qmlcustomparser_p.h
index fd780d6..75da579 100644
--- a/src/declarative/qml/qmlcustomparser_p.h
+++ b/src/declarative/qml/qmlcustomparser_p.h
@@ -74,7 +74,7 @@ private:
friend class QmlCustomParserPropertyPrivate;
QmlCustomParserPropertyPrivate *d;
};
-Q_DECLARE_METATYPE(QmlCustomParserProperty);
+Q_DECLARE_METATYPE(QmlCustomParserProperty)
class QmlCustomParserNodePrivate;
class Q_DECLARATIVE_EXPORT QmlCustomParserNode
@@ -93,7 +93,7 @@ private:
friend class QmlCustomParserNodePrivate;
QmlCustomParserNodePrivate *d;
};
-Q_DECLARE_METATYPE(QmlCustomParserNode);
+Q_DECLARE_METATYPE(QmlCustomParserNode)
class Q_DECLARATIVE_EXPORT QmlCustomParser
{
diff --git a/src/declarative/qml/qmlengine.cpp b/src/declarative/qml/qmlengine.cpp
index c0ea463..3db8d92 100644
--- a/src/declarative/qml/qmlengine.cpp
+++ b/src/declarative/qml/qmlengine.cpp
@@ -75,11 +75,11 @@
QT_BEGIN_NAMESPACE
-DEFINE_BOOL_CONFIG_OPTION(qmlDebugger, QML_DEBUGGER);
+DEFINE_BOOL_CONFIG_OPTION(qmlDebugger, QML_DEBUGGER)
-Q_DECLARE_METATYPE(QmlMetaProperty);
+Q_DECLARE_METATYPE(QmlMetaProperty)
-QML_DEFINE_TYPE(QObject,Object);
+QML_DEFINE_TYPE(QObject,Object)
static QScriptValue qmlMetaProperty_emit(QScriptContext *ctx, QScriptEngine *engine)
{
diff --git a/src/declarative/qml/qmlparser_p.h b/src/declarative/qml/qmlparser_p.h
index add5773..721f1a8 100644
--- a/src/declarative/qml/qmlparser_p.h
+++ b/src/declarative/qml/qmlparser_p.h
@@ -272,7 +272,7 @@ namespace QmlParser
void dump(int = 0) const;
};
}
-Q_DECLARE_METATYPE(QmlParser::Variant);
+Q_DECLARE_METATYPE(QmlParser::Variant)
QT_END_NAMESPACE
diff --git a/src/declarative/qml/qmlparserstatus.h b/src/declarative/qml/qmlparserstatus.h
index 0e58229..7c2e141 100644
--- a/src/declarative/qml/qmlparserstatus.h
+++ b/src/declarative/qml/qmlparserstatus.h
@@ -66,7 +66,7 @@ private:
friend class QmlEnginePrivate;
QmlParserStatus **d;
};
-Q_DECLARE_INTERFACE(QmlParserStatus, "com.trolltech.qml.QmlParserStatus");
+Q_DECLARE_INTERFACE(QmlParserStatus, "com.trolltech.qml.QmlParserStatus")
QT_END_NAMESPACE
diff --git a/src/declarative/qml/qmlprivate.h b/src/declarative/qml/qmlprivate.h
index 2a9c503..62524aa 100644
--- a/src/declarative/qml/qmlprivate.h
+++ b/src/declarative/qml/qmlprivate.h
@@ -237,7 +237,7 @@ namespace QmlPrivate
return new T(other);
}
};
-};
+}
template<typename T>
int QmlPrivate::list_op(QmlPrivate::ListOp op, int val,
diff --git a/src/declarative/qml/qmlpropertyvaluesource.cpp b/src/declarative/qml/qmlpropertyvaluesource.cpp
index 4770929..18092c8 100644
--- a/src/declarative/qml/qmlpropertyvaluesource.cpp
+++ b/src/declarative/qml/qmlpropertyvaluesource.cpp
@@ -48,7 +48,7 @@ QT_BEGIN_NAMESPACE
\class QmlPropertyValueSource
\brief The QmlPropertyValueSource class is inherited by property value sources such as animations and bindings.
*/
-QML_DEFINE_NOCREATE_TYPE(QmlPropertyValueSource);
+QML_DEFINE_NOCREATE_TYPE(QmlPropertyValueSource)
/*!
Constructs a QmlPropertyValueSource with parent \a parent.
diff --git a/src/declarative/qml/qmlpropertyvaluesource.h b/src/declarative/qml/qmlpropertyvaluesource.h
index 736b25f..9cef150 100644
--- a/src/declarative/qml/qmlpropertyvaluesource.h
+++ b/src/declarative/qml/qmlpropertyvaluesource.h
@@ -69,7 +69,7 @@ protected:
private:
Q_DISABLE_COPY(QmlPropertyValueSource)
};
-QML_DECLARE_TYPE(QmlPropertyValueSource);
+QML_DECLARE_TYPE(QmlPropertyValueSource)
#endif // QMLPROPERTYVALUESOURCE_H
diff --git a/src/declarative/qml/qmlscriptparser.cpp b/src/declarative/qml/qmlscriptparser.cpp
index fde2771..5c5b25e 100644
--- a/src/declarative/qml/qmlscriptparser.cpp
+++ b/src/declarative/qml/qmlscriptparser.cpp
@@ -1,3 +1,43 @@
+/****************************************************************************
+**
+** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
+** Contact: Qt Software Information (qt-info@nokia.com)
+**
+** This file is part of the QtDeclarative module of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** No Commercial Usage
+** This file contains pre-release code and may not be distributed.
+** You may use this file in accordance with the terms and conditions
+** contained in the either Technology Preview License Agreement or the
+** Beta Release License Agreement.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Nokia gives you certain
+** additional rights. These rights are described in the Nokia Qt LGPL
+** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
+** package.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 3.0 as published by the Free Software
+** Foundation and appearing in the file LICENSE.GPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU General Public License version 3.0 requirements will be
+** met: http://www.gnu.org/copyleft/gpl.html.
+**
+** If you are unsure which license is appropriate for your use, please
+** contact the sales department at qt-sales@nokia.com.
+** $QT_END_LICENSE$
+**
+****************************************************************************/
#include "qmlscriptparser_p.h"
#include "qmlparser_p.h"
@@ -27,16 +67,18 @@ namespace {
class RewriteNumericLiterals: protected AST::Visitor
{
unsigned _position;
- TextWriter _writer;
+ TextWriter *_writer;
public:
QString operator()(QString code, unsigned position, AST::Node *node)
{
+ TextWriter w;
+ _writer = &w;
_position = position;
AST::Node::acceptChild(node, this);
- _writer.write(&code);
+ w.write(&code);
return code;
}
@@ -54,10 +96,10 @@ protected:
pre += QChar(QLatin1Char(suffixSpell[0])).toUpper();
pre += QLatin1String(&suffixSpell[1]);
pre += QLatin1Char('(');
- _writer.replace(node->literalToken.begin() - _position, 0, pre);
- _writer.replace(node->literalToken.end() - _position - suffixLength,
- suffixLength,
- QLatin1String(")"));
+ _writer->replace(node->literalToken.begin() - _position, 0, pre);
+ _writer->replace(node->literalToken.end() - _position - suffixLength,
+ suffixLength,
+ QLatin1String(")"));
}
return false;
diff --git a/src/declarative/qml/qmlscriptparser_p.h b/src/declarative/qml/qmlscriptparser_p.h
index 8a5466f..a9ffa47 100644
--- a/src/declarative/qml/qmlscriptparser_p.h
+++ b/src/declarative/qml/qmlscriptparser_p.h
@@ -1,3 +1,43 @@
+/****************************************************************************
+**
+** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
+** Contact: Qt Software Information (qt-info@nokia.com)
+**
+** This file is part of the QtDeclarative module of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** No Commercial Usage
+** This file contains pre-release code and may not be distributed.
+** You may use this file in accordance with the terms and conditions
+** contained in the either Technology Preview License Agreement or the
+** Beta Release License Agreement.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Nokia gives you certain
+** additional rights. These rights are described in the Nokia Qt LGPL
+** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
+** package.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 3.0 as published by the Free Software
+** Foundation and appearing in the file LICENSE.GPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU General Public License version 3.0 requirements will be
+** met: http://www.gnu.org/copyleft/gpl.html.
+**
+** If you are unsure which license is appropriate for your use, please
+** contact the sales department at qt-sales@nokia.com.
+** $QT_END_LICENSE$
+**
+****************************************************************************/
#ifndef QMLSCRIPTPARSER_P_H
#define QMLSCRIPTPARSER_P_H
diff --git a/src/declarative/qml/rewriter/rewriter.cpp b/src/declarative/qml/rewriter/rewriter.cpp
index ec504fa..fce4fdf 100644
--- a/src/declarative/qml/rewriter/rewriter.cpp
+++ b/src/declarative/qml/rewriter/rewriter.cpp
@@ -1,3 +1,44 @@
+/****************************************************************************
+**
+** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
+** Contact: Qt Software Information (qt-info@nokia.com)
+**
+** This file is part of the QtDeclarative module of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** No Commercial Usage
+** This file contains pre-release code and may not be distributed.
+** You may use this file in accordance with the terms and conditions
+** contained in the either Technology Preview License Agreement or the
+** Beta Release License Agreement.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Nokia gives you certain
+** additional rights. These rights are described in the Nokia Qt LGPL
+** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
+** package.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 3.0 as published by the Free Software
+** Foundation and appearing in the file LICENSE.GPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU General Public License version 3.0 requirements will be
+** met: http://www.gnu.org/copyleft/gpl.html.
+**
+** If you are unsure which license is appropriate for your use, please
+** contact the sales department at qt-sales@nokia.com.
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
#include "rewriter_p.h"
#include "javascriptast_p.h"
diff --git a/src/declarative/qml/rewriter/rewriter.pri b/src/declarative/qml/rewriter/rewriter.pri
index 987e26d..de3c298 100644
--- a/src/declarative/qml/rewriter/rewriter.pri
+++ b/src/declarative/qml/rewriter/rewriter.pri
@@ -1,4 +1,9 @@
INCLUDEPATH += $$PWD
-HEADERS += $$PWD/rewriter_p.h $$PWD/textwriter_p.h
-SOURCES += $$PWD/rewriter.cpp $$PWD/textwriter.cpp
+HEADERS += $$PWD/textwriter_p.h
+SOURCES += $$PWD/textwriter.cpp
+
+!no_ast_rewriter {
+ HEADERS += $$PWD/rewriter_p.h
+ SOURCES += $$PWD/rewriter.cpp
+}
diff --git a/src/declarative/qml/rewriter/rewriter_p.h b/src/declarative/qml/rewriter/rewriter_p.h
index 892c006..02b4ee4 100644
--- a/src/declarative/qml/rewriter/rewriter_p.h
+++ b/src/declarative/qml/rewriter/rewriter_p.h
@@ -1,3 +1,44 @@
+/****************************************************************************
+**
+** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
+** Contact: Qt Software Information (qt-info@nokia.com)
+**
+** This file is part of the QtDeclarative module of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** No Commercial Usage
+** This file contains pre-release code and may not be distributed.
+** You may use this file in accordance with the terms and conditions
+** contained in the either Technology Preview License Agreement or the
+** Beta Release License Agreement.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Nokia gives you certain
+** additional rights. These rights are described in the Nokia Qt LGPL
+** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
+** package.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 3.0 as published by the Free Software
+** Foundation and appearing in the file LICENSE.GPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU General Public License version 3.0 requirements will be
+** met: http://www.gnu.org/copyleft/gpl.html.
+**
+** If you are unsure which license is appropriate for your use, please
+** contact the sales department at qt-sales@nokia.com.
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
#ifndef REWRITER_H
#define REWRITER_H
@@ -10,8 +51,6 @@
QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE
-QT_MODULE(Declarative)
-
namespace JavaScript {
////////////////////////////////////////////////////////////////////////////////
@@ -19,21 +58,21 @@ namespace JavaScript {
////////////////////////////////////////////////////////////////////////////////
class Replacement
{
- int _offset;
- int _length;
- QString _text;
+ int _offset;
+ int _length;
+ QString _text;
public:
- Replacement(int offset = 0, int length = 0, const QString &text = QString())
- : _offset(offset), _length(length), _text(text)
- { }
+ Replacement(int offset = 0, int length = 0, const QString &text = QString())
+ : _offset(offset), _length(length), _text(text)
+ { }
- bool isNull() const { return _offset == _length; }
- operator bool() const { return ! isNull(); }
+ bool isNull() const { return _offset == _length; }
+ operator bool() const { return ! isNull(); }
- int offset() const { return _offset; }
- int length() const { return _length; }
- QString text() const { return _text; }
+ int offset() const { return _offset; }
+ int length() const { return _length; }
+ QString text() const { return _text; }
};
@@ -44,64 +83,64 @@ public:
class Rewriter: public AST::Visitor
{
protected:
- TextWriter textWriter;
+ TextWriter textWriter;
public:
- //
- // Token based API
- //
+ //
+ // Token based API
+ //
- /// Returns the text of the token at the given \a location.
- QString textAt(const AST::SourceLocation &location) const;
+ /// Returns the text of the token at the given \a location.
+ QString textAt(const AST::SourceLocation &location) const;
- QString textAt(const AST::SourceLocation &firstLoc,
- const AST::SourceLocation &lastLoc) const;
+ QString textAt(const AST::SourceLocation &firstLoc,
+ const AST::SourceLocation &lastLoc) const;
- /// Replace the token at \a loc with the given \a text.
- void replace(const AST::SourceLocation &loc, const QString &text);
+ /// Replace the token at \a loc with the given \a text.
+ void replace(const AST::SourceLocation &loc, const QString &text);
- /// Remove the token at the given \a location.
- void remove(const AST::SourceLocation &location);
+ /// Remove the token at the given \a location.
+ void remove(const AST::SourceLocation &location);
- /// Remove all tokens in the range [\a firstLoc, \a lastLoc].
- void remove(const AST::SourceLocation &firstLoc, const AST::SourceLocation &lastLoc);
+ /// Remove all tokens in the range [\a firstLoc, \a lastLoc].
+ void remove(const AST::SourceLocation &firstLoc, const AST::SourceLocation &lastLoc);
- /// Insert \a text before the token at the given \a location.
- void insertTextBefore(const AST::SourceLocation &location, const QString &text);
+ /// Insert \a text before the token at the given \a location.
+ void insertTextBefore(const AST::SourceLocation &location, const QString &text);
- /// Insert \a text after the token at the given \a location.
- void insertTextAfter(const AST::SourceLocation &loc, const QString &text);
+ /// Insert \a text after the token at the given \a location.
+ void insertTextAfter(const AST::SourceLocation &loc, const QString &text);
- void moveTextBefore(const AST::SourceLocation &firstLoc,
- const AST::SourceLocation &lastLoc,
- const AST::SourceLocation &loc);
+ void moveTextBefore(const AST::SourceLocation &firstLoc,
+ const AST::SourceLocation &lastLoc,
+ const AST::SourceLocation &loc);
- void moveTextAfter(const AST::SourceLocation &firstLoc,
- const AST::SourceLocation &lastLoc,
- const AST::SourceLocation &loc);
+ void moveTextAfter(const AST::SourceLocation &firstLoc,
+ const AST::SourceLocation &lastLoc,
+ const AST::SourceLocation &loc);
- //
- // low-level offset based API
- //
- void replace(int offset, int length, const QString &text);
- void insertText(int offset, const QString &text);
- void removeText(int offset, int length);
+ //
+ // low-level offset based API
+ //
+ void replace(int offset, int length, const QString &text);
+ void insertText(int offset, const QString &text);
+ void removeText(int offset, int length);
- /// Visit the given \a node.
- void accept(AST::Node *node);
+ /// Visit the given \a node.
+ void accept(AST::Node *node);
- /// Returns the original unchanged source code.
- QString code() const { return _code; }
+ /// Returns the original unchanged source code.
+ QString code() const { return _code; }
- /// Returns the list of replacements.
- QList<Replacement> replacementList() const { return _replacementList; }
+ /// Returns the list of replacements.
+ QList<Replacement> replacementList() const { return _replacementList; }
protected:
- /// \internal
- void setCode(const QString &code) { _code = code; }
+ /// \internal
+ void setCode(const QString &code) { _code = code; }
private:
- QString _code;
- QList<Replacement> _replacementList;
+ QString _code;
+ QList<Replacement> _replacementList;
};
} // end of namespace JavaScript
diff --git a/src/declarative/qml/rewriter/textwriter.cpp b/src/declarative/qml/rewriter/textwriter.cpp
index d56c9a1..21122ff 100644
--- a/src/declarative/qml/rewriter/textwriter.cpp
+++ b/src/declarative/qml/rewriter/textwriter.cpp
@@ -1,3 +1,44 @@
+/****************************************************************************
+**
+** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
+** Contact: Qt Software Information (qt-info@nokia.com)
+**
+** This file is part of the QtDeclarative module of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** No Commercial Usage
+** This file contains pre-release code and may not be distributed.
+** You may use this file in accordance with the terms and conditions
+** contained in the either Technology Preview License Agreement or the
+** Beta Release License Agreement.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Nokia gives you certain
+** additional rights. These rights are described in the Nokia Qt LGPL
+** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
+** package.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 3.0 as published by the Free Software
+** Foundation and appearing in the file LICENSE.GPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU General Public License version 3.0 requirements will be
+** met: http://www.gnu.org/copyleft/gpl.html.
+**
+** If you are unsure which license is appropriate for your use, please
+** contact the sales department at qt-sales@nokia.com.
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
#include "textwriter_p.h"
QT_BEGIN_NAMESPACE
diff --git a/src/declarative/qml/rewriter/textwriter_p.h b/src/declarative/qml/rewriter/textwriter_p.h
index 52d18d3..57800bf 100644
--- a/src/declarative/qml/rewriter/textwriter_p.h
+++ b/src/declarative/qml/rewriter/textwriter_p.h
@@ -1,3 +1,44 @@
+/****************************************************************************
+**
+** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
+** Contact: Qt Software Information (qt-info@nokia.com)
+**
+** This file is part of the QtDeclarative module of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** No Commercial Usage
+** This file contains pre-release code and may not be distributed.
+** You may use this file in accordance with the terms and conditions
+** contained in the either Technology Preview License Agreement or the
+** Beta Release License Agreement.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Nokia gives you certain
+** additional rights. These rights are described in the Nokia Qt LGPL
+** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
+** package.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 3.0 as published by the Free Software
+** Foundation and appearing in the file LICENSE.GPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU General Public License version 3.0 requirements will be
+** met: http://www.gnu.org/copyleft/gpl.html.
+**
+** If you are unsure which license is appropriate for your use, please
+** contact the sales department at qt-sales@nokia.com.
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
#ifndef TEXTWRITER_H
#define TEXTWRITER_H
@@ -8,47 +49,45 @@
QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE
-QT_MODULE(Declarative)
-
namespace JavaScript {
class TextWriter
{
- QString *string;
- QTextCursor *cursor;
+ QString *string;
+ QTextCursor *cursor;
- struct Replace {
- int pos;
- int length;
- QString replacement;
- };
+ struct Replace {
+ int pos;
+ int length;
+ QString replacement;
+ };
- QList<Replace> replaceList;
+ QList<Replace> replaceList;
- struct Move {
- int pos;
- int length;
- int to;
- };
+ struct Move {
+ int pos;
+ int length;
+ int to;
+ };
- QList<Move> moveList;
+ QList<Move> moveList;
- bool hasOverlap(int pos, int length);
- bool hasMoveInto(int pos, int length);
+ bool hasOverlap(int pos, int length);
+ bool hasMoveInto(int pos, int length);
- void doReplace(const Replace &replace);
- void doMove(const Move &move);
+ void doReplace(const Replace &replace);
+ void doMove(const Move &move);
- void write_helper();
+ void write_helper();
public:
- TextWriter();
+ TextWriter();
- void replace(int pos, int length, const QString &replacement);
- void move(int pos, int length, int to);
+ void replace(int pos, int length, const QString &replacement);
+ void move(int pos, int length, int to);
- void write(QString *s);
- void write(QTextCursor *textCursor);
+ void write(QString *s);
+ void write(QTextCursor *textCursor);
};
diff --git a/src/declarative/util/qfxperf.h b/src/declarative/util/qfxperf.h
index 3430658..23de8b5 100644
--- a/src/declarative/util/qfxperf.h
+++ b/src/declarative/util/qfxperf.h
@@ -50,33 +50,33 @@ QT_BEGIN_NAMESPACE
QT_MODULE(Declarative)
Q_DECLARE_PERFORMANCE_LOG(QFxPerf) {
- Q_DECLARE_PERFORMANCE_METRIC(QmlParsing);
- Q_DECLARE_PERFORMANCE_METRIC(Compile);
- Q_DECLARE_PERFORMANCE_METRIC(CompileRun);
- Q_DECLARE_PERFORMANCE_METRIC(CreateComponent);
- Q_DECLARE_PERFORMANCE_METRIC(BindInit);
- Q_DECLARE_PERFORMANCE_METRIC(BindCompile);
- Q_DECLARE_PERFORMANCE_METRIC(BindValue);
- Q_DECLARE_PERFORMANCE_METRIC(BindValueSSE);
- Q_DECLARE_PERFORMANCE_METRIC(BindValueQt);
- Q_DECLARE_PERFORMANCE_METRIC(ContextQuery);
- Q_DECLARE_PERFORMANCE_METRIC(ContextProperty);
- Q_DECLARE_PERFORMANCE_METRIC(ObjectQuery);
- Q_DECLARE_PERFORMANCE_METRIC(ObjectProperty);
- Q_DECLARE_PERFORMANCE_METRIC(ObjectSetProperty);
- Q_DECLARE_PERFORMANCE_METRIC(BindableValueUpdate);
- Q_DECLARE_PERFORMANCE_METRIC(PixmapLoad);
- Q_DECLARE_PERFORMANCE_METRIC(MetaProperty);
- Q_DECLARE_PERFORMANCE_METRIC(PathCache);
- Q_DECLARE_PERFORMANCE_METRIC(CreateParticle);
- Q_DECLARE_PERFORMANCE_METRIC(FontDatabase);
- Q_DECLARE_PERFORMANCE_METRIC(ItemComponentComplete);
- Q_DECLARE_PERFORMANCE_METRIC(ImageComponentComplete);
- Q_DECLARE_PERFORMANCE_METRIC(ComponentInstanceComponentComplete);
- Q_DECLARE_PERFORMANCE_METRIC(BaseLayoutComponentComplete);
- Q_DECLARE_PERFORMANCE_METRIC(TextComponentComplete);
- Q_DECLARE_PERFORMANCE_METRIC(QFxText_setText);
- Q_DECLARE_PERFORMANCE_METRIC(AddScript);
+ Q_DECLARE_PERFORMANCE_METRIC(QmlParsing)
+ Q_DECLARE_PERFORMANCE_METRIC(Compile)
+ Q_DECLARE_PERFORMANCE_METRIC(CompileRun)
+ Q_DECLARE_PERFORMANCE_METRIC(CreateComponent)
+ Q_DECLARE_PERFORMANCE_METRIC(BindInit)
+ Q_DECLARE_PERFORMANCE_METRIC(BindCompile)
+ Q_DECLARE_PERFORMANCE_METRIC(BindValue)
+ Q_DECLARE_PERFORMANCE_METRIC(BindValueSSE)
+ Q_DECLARE_PERFORMANCE_METRIC(BindValueQt)
+ Q_DECLARE_PERFORMANCE_METRIC(ContextQuery)
+ Q_DECLARE_PERFORMANCE_METRIC(ContextProperty)
+ Q_DECLARE_PERFORMANCE_METRIC(ObjectQuery)
+ Q_DECLARE_PERFORMANCE_METRIC(ObjectProperty)
+ Q_DECLARE_PERFORMANCE_METRIC(ObjectSetProperty)
+ Q_DECLARE_PERFORMANCE_METRIC(BindableValueUpdate)
+ Q_DECLARE_PERFORMANCE_METRIC(PixmapLoad)
+ Q_DECLARE_PERFORMANCE_METRIC(MetaProperty)
+ Q_DECLARE_PERFORMANCE_METRIC(PathCache)
+ Q_DECLARE_PERFORMANCE_METRIC(CreateParticle)
+ Q_DECLARE_PERFORMANCE_METRIC(FontDatabase)
+ Q_DECLARE_PERFORMANCE_METRIC(ItemComponentComplete)
+ Q_DECLARE_PERFORMANCE_METRIC(ImageComponentComplete)
+ Q_DECLARE_PERFORMANCE_METRIC(ComponentInstanceComponentComplete)
+ Q_DECLARE_PERFORMANCE_METRIC(BaseLayoutComponentComplete)
+ Q_DECLARE_PERFORMANCE_METRIC(TextComponentComplete)
+ Q_DECLARE_PERFORMANCE_METRIC(QFxText_setText)
+ Q_DECLARE_PERFORMANCE_METRIC(AddScript)
}
#endif // _QFXPERF_H_
diff --git a/src/declarative/util/qmlanimation.cpp b/src/declarative/util/qmlanimation.cpp
index 24bcac98..d4aea81 100644
--- a/src/declarative/util/qmlanimation.cpp
+++ b/src/declarative/util/qmlanimation.cpp
@@ -137,7 +137,7 @@ QEasingCurve stringToCurve(const QString &curve)
return easingCurve;
}
-QML_DEFINE_NOCREATE_TYPE(QmlAbstractAnimation);
+QML_DEFINE_NOCREATE_TYPE(QmlAbstractAnimation)
/*!
\qmlclass Animation
@@ -554,7 +554,7 @@ void QmlAbstractAnimation::timelineComplete()
\l{xmlPauseAnimation} {&lt;PauseAnimation&gt;}.
*/
-QML_DEFINE_TYPE(QmlPauseAnimation,PauseAnimation);
+QML_DEFINE_TYPE(QmlPauseAnimation,PauseAnimation)
QmlPauseAnimation::QmlPauseAnimation(QObject *parent)
: QmlAbstractAnimation(*(new QmlPauseAnimationPrivate), parent)
{
@@ -924,7 +924,7 @@ void QmlColorAnimationPrivate::valueChanged(qreal v)
property.write(newColor);
}
}
-QML_DEFINE_TYPE(QmlColorAnimation,ColorAnimation);
+QML_DEFINE_TYPE(QmlColorAnimation,ColorAnimation)
/*!
\qmlclass RunScriptAction QmlRunScriptAction
@@ -1018,7 +1018,7 @@ QAbstractAnimation *QmlRunScriptAction::qtAnimation()
return d->rsa;
}
-QML_DEFINE_TYPE(QmlRunScriptAction, RunScriptAction);
+QML_DEFINE_TYPE(QmlRunScriptAction, RunScriptAction)
/*!
\qmlclass SetPropertyAction QmlSetPropertyAction
@@ -1215,7 +1215,7 @@ void QmlSetPropertyAction::transition(QmlStateActions &actions,
}
}
-QML_DEFINE_TYPE(QmlSetPropertyAction,SetPropertyAction);
+QML_DEFINE_TYPE(QmlSetPropertyAction,SetPropertyAction)
/*!
\qmlclass ParentChangeAction QmlParentChangeAction
@@ -1325,7 +1325,7 @@ void QmlParentChangeAction::transition(QmlStateActions &actions,
}
}
-QML_DEFINE_TYPE(QmlParentChangeAction,ParentChangeAction);
+QML_DEFINE_TYPE(QmlParentChangeAction,ParentChangeAction)
/*!
\qmlclass NumericAnimation QmlNumericAnimation
@@ -1707,7 +1707,7 @@ void QmlNumericAnimation::transition(QmlStateActions &actions,
}
}
-QML_DEFINE_TYPE(QmlNumericAnimation,NumericAnimation);
+QML_DEFINE_TYPE(QmlNumericAnimation,NumericAnimation)
QmlAnimationGroup::QmlAnimationGroup(QObject *parent)
: QmlAbstractAnimation(*(new QmlAnimationGroupPrivate), parent)
@@ -1799,7 +1799,7 @@ void QmlSequentialAnimation::transition(QmlStateActions &actions,
//d->ag->setDirection(direction == Backward ? QAbstractAnimation::Backward : QAbstractAnimation::Forward);
}
-QML_DEFINE_TYPE(QmlSequentialAnimation,SequentialAnimation);
+QML_DEFINE_TYPE(QmlSequentialAnimation,SequentialAnimation)
/*!
\qmlclass ParallelAnimation QmlParallelAnimation
@@ -1875,7 +1875,7 @@ void QmlParallelAnimation::transition(QmlStateActions &actions,
}
}
-QML_DEFINE_TYPE(QmlParallelAnimation,ParallelAnimation);
+QML_DEFINE_TYPE(QmlParallelAnimation,ParallelAnimation)
QVariant QmlVariantAnimationPrivate::interpolateVariant(const QVariant &from, const QVariant &to, qreal progress)
{
@@ -2262,6 +2262,6 @@ void QmlVariantAnimation::transition(QmlStateActions &actions,
}
//XXX whats the best name for this? (just Animation?)
-QML_DEFINE_TYPE(QmlVariantAnimation,VariantAnimation);
+QML_DEFINE_TYPE(QmlVariantAnimation,VariantAnimation)
QT_END_NAMESPACE
diff --git a/src/declarative/util/qmlanimation.h b/src/declarative/util/qmlanimation.h
index 8bd53e2..8b9ecc2 100644
--- a/src/declarative/util/qmlanimation.h
+++ b/src/declarative/util/qmlanimation.h
@@ -63,13 +63,13 @@ class QmlAbstractAnimation : public QmlPropertyValueSource, public QmlParserStat
Q_OBJECT
Q_DECLARE_PRIVATE(QmlAbstractAnimation)
- Q_INTERFACES(QmlParserStatus);
- Q_PROPERTY(bool running READ isRunning WRITE setRunning NOTIFY runningChanged);
- Q_PROPERTY(bool finishPlaying READ finishPlaying WRITE setFinishPlaying NOTIFY finishPlayingChanged());
- Q_PROPERTY(bool repeat READ repeat WRITE setRepeat NOTIFY repeatChanged);
- Q_PROPERTY(QObject *target READ target WRITE setTarget NOTIFY targetChanged);
- Q_PROPERTY(QString property READ property WRITE setProperty NOTIFY targetChanged);
- Q_CLASSINFO("DefaultMethod", "start()");
+ Q_INTERFACES(QmlParserStatus)
+ Q_PROPERTY(bool running READ isRunning WRITE setRunning NOTIFY runningChanged)
+ Q_PROPERTY(bool finishPlaying READ finishPlaying WRITE setFinishPlaying NOTIFY finishPlayingChanged())
+ Q_PROPERTY(bool repeat READ repeat WRITE setRepeat NOTIFY repeatChanged)
+ Q_PROPERTY(QObject *target READ target WRITE setTarget NOTIFY targetChanged)
+ Q_PROPERTY(QString property READ property WRITE setProperty NOTIFY targetChanged)
+ Q_CLASSINFO("DefaultMethod", "start()")
Q_INTERFACES(QmlParserStatus)
public:
@@ -124,15 +124,15 @@ private Q_SLOTS:
void timelineComplete();
};
-QML_DECLARE_TYPE(QmlAbstractAnimation);
+QML_DECLARE_TYPE(QmlAbstractAnimation)
class QmlPauseAnimationPrivate;
class QmlPauseAnimation : public QmlAbstractAnimation
{
Q_OBJECT
- Q_DECLARE_PRIVATE(QmlPauseAnimation);
+ Q_DECLARE_PRIVATE(QmlPauseAnimation)
- Q_PROPERTY(int duration READ duration WRITE setDuration NOTIFY durationChanged);
+ Q_PROPERTY(int duration READ duration WRITE setDuration NOTIFY durationChanged)
public:
QmlPauseAnimation(QObject *parent=0);
@@ -148,19 +148,19 @@ protected:
virtual QAbstractAnimation *qtAnimation();
virtual void prepare(QmlMetaProperty &);
};
-QML_DECLARE_TYPE(QmlPauseAnimation);
+QML_DECLARE_TYPE(QmlPauseAnimation)
class QmlColorAnimationPrivate;
class QmlColorAnimation : public QmlAbstractAnimation
{
Q_OBJECT
- Q_DECLARE_PRIVATE(QmlColorAnimation);
- Q_PROPERTY(int duration READ duration WRITE setDuration NOTIFY durationChanged);
- Q_PROPERTY(QColor from READ from WRITE setFrom NOTIFY fromChanged);
- Q_PROPERTY(QColor to READ to WRITE setTo NOTIFY toChanged);
- Q_PROPERTY(QString easing READ easing WRITE setEasing NOTIFY easingChanged);
- Q_PROPERTY(QList<QObject *>* filter READ filter);
- Q_PROPERTY(QList<QObject *>* exclude READ exclude);
+ Q_DECLARE_PRIVATE(QmlColorAnimation)
+ Q_PROPERTY(int duration READ duration WRITE setDuration NOTIFY durationChanged)
+ Q_PROPERTY(QColor from READ from WRITE setFrom NOTIFY fromChanged)
+ Q_PROPERTY(QColor to READ to WRITE setTo NOTIFY toChanged)
+ Q_PROPERTY(QString easing READ easing WRITE setEasing NOTIFY easingChanged)
+ Q_PROPERTY(QList<QObject *>* filter READ filter)
+ Q_PROPERTY(QList<QObject *>* exclude READ exclude)
public:
QmlColorAnimation(QObject *parent=0);
@@ -195,16 +195,16 @@ Q_SIGNALS:
void toChanged(const QColor &);
void easingChanged(const QString &);
};
-QML_DECLARE_TYPE(QmlColorAnimation);
+QML_DECLARE_TYPE(QmlColorAnimation)
class QmlRunScriptActionPrivate;
class QmlRunScriptAction : public QmlAbstractAnimation
{
Q_OBJECT
- Q_DECLARE_PRIVATE(QmlRunScriptAction);
+ Q_DECLARE_PRIVATE(QmlRunScriptAction)
- Q_PROPERTY(QString script READ script WRITE setScript NOTIFY scriptChanged);
- Q_PROPERTY(QString file READ file WRITE setFile NOTIFY fileChanged);
+ Q_PROPERTY(QString script READ script WRITE setScript NOTIFY scriptChanged)
+ Q_PROPERTY(QString file READ file WRITE setFile NOTIFY fileChanged)
public:
QmlRunScriptAction(QObject *parent=0);
@@ -223,18 +223,18 @@ Q_SIGNALS:
protected:
virtual QAbstractAnimation *qtAnimation();
};
-QML_DECLARE_TYPE(QmlRunScriptAction);
+QML_DECLARE_TYPE(QmlRunScriptAction)
class QmlSetPropertyActionPrivate;
class QmlSetPropertyAction : public QmlAbstractAnimation
{
Q_OBJECT
- Q_DECLARE_PRIVATE(QmlSetPropertyAction);
+ Q_DECLARE_PRIVATE(QmlSetPropertyAction)
- Q_PROPERTY(QString properties READ properties WRITE setProperties NOTIFY propertiesChanged);
- Q_PROPERTY(QList<QObject *>* filter READ filter);
- Q_PROPERTY(QList<QObject *>* exclude READ exclude);
- Q_PROPERTY(QVariant value READ value WRITE setValue NOTIFY valueChanged);
+ Q_PROPERTY(QString properties READ properties WRITE setProperties NOTIFY propertiesChanged)
+ Q_PROPERTY(QList<QObject *>* filter READ filter)
+ Q_PROPERTY(QList<QObject *>* exclude READ exclude)
+ Q_PROPERTY(QVariant value READ value WRITE setValue NOTIFY valueChanged)
public:
QmlSetPropertyAction(QObject *parent=0);
@@ -260,13 +260,13 @@ protected:
virtual QAbstractAnimation *qtAnimation();
virtual void prepare(QmlMetaProperty &);
};
-QML_DECLARE_TYPE(QmlSetPropertyAction);
+QML_DECLARE_TYPE(QmlSetPropertyAction)
class QmlParentChangeActionPrivate;
class QmlParentChangeAction : public QmlAbstractAnimation
{
Q_OBJECT
- Q_DECLARE_PRIVATE(QmlParentChangeAction);
+ Q_DECLARE_PRIVATE(QmlParentChangeAction)
//XXX should have parent property as well for when it isn't part of a transition
@@ -281,21 +281,21 @@ protected:
virtual QAbstractAnimation *qtAnimation();
virtual void prepare(QmlMetaProperty &);
};
-QML_DECLARE_TYPE(QmlParentChangeAction);
+QML_DECLARE_TYPE(QmlParentChangeAction)
class QmlNumericAnimationPrivate;
class QmlNumericAnimation : public QmlAbstractAnimation
{
Q_OBJECT
- Q_DECLARE_PRIVATE(QmlNumericAnimation);
+ Q_DECLARE_PRIVATE(QmlNumericAnimation)
- Q_PROPERTY(int duration READ duration WRITE setDuration NOTIFY durationChanged);
- Q_PROPERTY(qreal from READ from WRITE setFrom NOTIFY fromChanged);
- Q_PROPERTY(qreal to READ to WRITE setTo NOTIFY toChanged);
- Q_PROPERTY(QString easing READ easing WRITE setEasing NOTIFY easingChanged);
- Q_PROPERTY(QString properties READ properties WRITE setProperties NOTIFY propertiesChanged);
- Q_PROPERTY(QList<QObject *>* filter READ filter);
- Q_PROPERTY(QList<QObject *>* exclude READ exclude);
+ Q_PROPERTY(int duration READ duration WRITE setDuration NOTIFY durationChanged)
+ Q_PROPERTY(qreal from READ from WRITE setFrom NOTIFY fromChanged)
+ Q_PROPERTY(qreal to READ to WRITE setTo NOTIFY toChanged)
+ Q_PROPERTY(QString easing READ easing WRITE setEasing NOTIFY easingChanged)
+ Q_PROPERTY(QString properties READ properties WRITE setProperties NOTIFY propertiesChanged)
+ Q_PROPERTY(QList<QObject *>* filter READ filter)
+ Q_PROPERTY(QList<QObject *>* exclude READ exclude)
public:
QmlNumericAnimation(QObject *parent=0);
@@ -333,7 +333,7 @@ Q_SIGNALS:
void easingChanged(const QString &);
void propertiesChanged(const QString &);
};
-QML_DECLARE_TYPE(QmlNumericAnimation);
+QML_DECLARE_TYPE(QmlNumericAnimation)
#if 0
class QmlDiscreteAnimation : public QmlAbstractAnimation
@@ -346,10 +346,10 @@ class QmlAnimationGroupPrivate;
class QmlAnimationGroup : public QmlAbstractAnimation
{
Q_OBJECT
- Q_DECLARE_PRIVATE(QmlAnimationGroup);
+ Q_DECLARE_PRIVATE(QmlAnimationGroup)
- Q_CLASSINFO("DefaultProperty", "animations");
- Q_PROPERTY(QmlList<QmlAbstractAnimation *> *animations READ animations);
+ Q_CLASSINFO("DefaultProperty", "animations")
+ Q_PROPERTY(QmlList<QmlAbstractAnimation *> *animations READ animations)
public:
QmlAnimationGroup(QObject *parent);
@@ -361,7 +361,7 @@ public:
class QmlSequentialAnimation : public QmlAnimationGroup
{
Q_OBJECT
- Q_DECLARE_PRIVATE(QmlAnimationGroup);
+ Q_DECLARE_PRIVATE(QmlAnimationGroup)
public:
QmlSequentialAnimation(QObject *parent=0);
@@ -374,12 +374,12 @@ protected:
virtual QAbstractAnimation *qtAnimation();
virtual void prepare(QmlMetaProperty &);
};
-QML_DECLARE_TYPE(QmlSequentialAnimation);
+QML_DECLARE_TYPE(QmlSequentialAnimation)
class QmlParallelAnimation : public QmlAnimationGroup
{
Q_OBJECT
- Q_DECLARE_PRIVATE(QmlAnimationGroup);
+ Q_DECLARE_PRIVATE(QmlAnimationGroup)
public:
QmlParallelAnimation(QObject *parent=0);
@@ -392,21 +392,21 @@ protected:
virtual QAbstractAnimation *qtAnimation();
virtual void prepare(QmlMetaProperty &);
};
-QML_DECLARE_TYPE(QmlParallelAnimation);
+QML_DECLARE_TYPE(QmlParallelAnimation)
class QmlVariantAnimationPrivate;
class QmlVariantAnimation : public QmlAbstractAnimation
{
Q_OBJECT
- Q_DECLARE_PRIVATE(QmlVariantAnimation);
+ Q_DECLARE_PRIVATE(QmlVariantAnimation)
- Q_PROPERTY(int duration READ duration WRITE setDuration NOTIFY durationChanged);
- Q_PROPERTY(QVariant from READ from WRITE setFrom NOTIFY fromChanged);
- Q_PROPERTY(QVariant to READ to WRITE setTo NOTIFY toChanged);
- Q_PROPERTY(QString easing READ easing WRITE setEasing NOTIFY easingChanged);
- Q_PROPERTY(QString properties READ properties WRITE setProperties NOTIFY propertiesChanged);
- Q_PROPERTY(QList<QObject *>* filter READ filter);
- Q_PROPERTY(QList<QObject *>* exclude READ exclude);
+ Q_PROPERTY(int duration READ duration WRITE setDuration NOTIFY durationChanged)
+ Q_PROPERTY(QVariant from READ from WRITE setFrom NOTIFY fromChanged)
+ Q_PROPERTY(QVariant to READ to WRITE setTo NOTIFY toChanged)
+ Q_PROPERTY(QString easing READ easing WRITE setEasing NOTIFY easingChanged)
+ Q_PROPERTY(QString properties READ properties WRITE setProperties NOTIFY propertiesChanged)
+ Q_PROPERTY(QList<QObject *>* filter READ filter)
+ Q_PROPERTY(QList<QObject *>* exclude READ exclude)
public:
QmlVariantAnimation(QObject *parent=0);
@@ -444,7 +444,7 @@ Q_SIGNALS:
void easingChanged(const QString &);
void propertiesChanged(const QString &);
};
-QML_DECLARE_TYPE(QmlVariantAnimation);
+QML_DECLARE_TYPE(QmlVariantAnimation)
#endif // QMLANIMATION_H
diff --git a/src/declarative/util/qmlanimation_p.h b/src/declarative/util/qmlanimation_p.h
index 36b826f..e5a7384 100644
--- a/src/declarative/util/qmlanimation_p.h
+++ b/src/declarative/util/qmlanimation_p.h
@@ -169,7 +169,7 @@ private:
class QmlAbstractAnimationPrivate : public QObjectPrivate
{
- Q_DECLARE_PUBLIC(QmlAbstractAnimation);
+ Q_DECLARE_PUBLIC(QmlAbstractAnimation)
public:
QmlAbstractAnimationPrivate()
: running(false), finishPlaying(false), repeat(false),
@@ -196,7 +196,7 @@ public:
class QmlPauseAnimationPrivate : public QmlAbstractAnimationPrivate
{
- Q_DECLARE_PUBLIC(QmlPauseAnimation);
+ Q_DECLARE_PUBLIC(QmlPauseAnimation)
public:
QmlPauseAnimationPrivate()
: QmlAbstractAnimationPrivate(), pa(0) {}
@@ -208,7 +208,7 @@ public:
class QmlColorAnimationPrivate : public QmlAbstractAnimationPrivate
{
- Q_DECLARE_PUBLIC(QmlColorAnimation);
+ Q_DECLARE_PUBLIC(QmlColorAnimation)
public:
QmlColorAnimationPrivate()
: QmlAbstractAnimationPrivate(), fromSourced(false), fromIsDefined(false), toIsDefined(false),
@@ -242,7 +242,7 @@ public:
class QmlRunScriptActionPrivate : public QmlAbstractAnimationPrivate
{
- Q_DECLARE_PUBLIC(QmlRunScriptAction);
+ Q_DECLARE_PUBLIC(QmlRunScriptAction)
public:
QmlRunScriptActionPrivate()
: QmlAbstractAnimationPrivate(), proxy(this), rsa(0) {}
@@ -261,7 +261,7 @@ public:
class QmlSetPropertyActionPrivate : public QmlAbstractAnimationPrivate
{
- Q_DECLARE_PUBLIC(QmlSetPropertyAction);
+ Q_DECLARE_PUBLIC(QmlSetPropertyAction)
public:
QmlSetPropertyActionPrivate()
: QmlAbstractAnimationPrivate(), proxy(this), spa(0) {}
@@ -283,7 +283,7 @@ public:
class QmlParentChangeActionPrivate : public QmlAbstractAnimationPrivate
{
- Q_DECLARE_PUBLIC(QmlParentChangeAction);
+ Q_DECLARE_PUBLIC(QmlParentChangeAction)
public:
QmlParentChangeActionPrivate()
: QmlAbstractAnimationPrivate() {}
@@ -296,7 +296,7 @@ public:
class QmlNumericAnimationPrivate : public QmlAbstractAnimationPrivate
{
- Q_DECLARE_PUBLIC(QmlNumericAnimation);
+ Q_DECLARE_PUBLIC(QmlNumericAnimation)
public:
QmlNumericAnimationPrivate()
: QmlAbstractAnimationPrivate(), fromSourced(false), na(0), value(this, &QmlNumericAnimationPrivate::valueChanged) {}
@@ -322,7 +322,7 @@ public:
class QmlAnimationGroupPrivate : public QmlAbstractAnimationPrivate
{
- Q_DECLARE_PUBLIC(QmlAnimationGroup);
+ Q_DECLARE_PUBLIC(QmlAnimationGroup)
public:
QmlAnimationGroupPrivate()
: QmlAbstractAnimationPrivate(), animations(this), ag(0) {}
@@ -361,7 +361,7 @@ public:
class QmlVariantAnimationPrivate : public QmlAbstractAnimationPrivate
{
- Q_DECLARE_PUBLIC(QmlVariantAnimation);
+ Q_DECLARE_PUBLIC(QmlVariantAnimation)
public:
QmlVariantAnimationPrivate()
: QmlAbstractAnimationPrivate(), fromSourced(false), fromIsDefined(false), toIsDefined(false),
diff --git a/src/declarative/util/qmlbehaviour.cpp b/src/declarative/util/qmlbehaviour.cpp
index 354c7e3..077f666 100644
--- a/src/declarative/util/qmlbehaviour.cpp
+++ b/src/declarative/util/qmlbehaviour.cpp
@@ -47,7 +47,7 @@
QT_BEGIN_NAMESPACE
-QML_DEFINE_TYPE(QmlBehaviour,Behaviour);
+QML_DEFINE_TYPE(QmlBehaviour,Behaviour)
class QmlBehaviourData : public QObject
diff --git a/src/declarative/util/qmlbehaviour.h b/src/declarative/util/qmlbehaviour.h
index 7a54d63..aef53a3 100644
--- a/src/declarative/util/qmlbehaviour.h
+++ b/src/declarative/util/qmlbehaviour.h
@@ -60,10 +60,10 @@ class Q_DECLARATIVE_EXPORT QmlBehaviour : public QmlPropertyValueSource,
Q_DECLARE_PRIVATE(QmlBehaviour)
Q_INTERFACES(QmlParserStatus)
- Q_PROPERTY(QVariant from READ fromValue WRITE setFromValue);
- Q_PROPERTY(QVariant to READ toValue WRITE setToValue);
- Q_CLASSINFO("DefaultProperty", "operations");
- Q_PROPERTY(QmlList<QmlAbstractAnimation *>* operations READ operations);
+ Q_PROPERTY(QVariant from READ fromValue WRITE setFromValue)
+ Q_PROPERTY(QVariant to READ toValue WRITE setToValue)
+ Q_CLASSINFO("DefaultProperty", "operations")
+ Q_PROPERTY(QmlList<QmlAbstractAnimation *>* operations READ operations)
public:
QmlBehaviour(QObject *parent=0);
@@ -86,7 +86,7 @@ protected:
private Q_SLOTS:
void propertyValueChanged();
};
-QML_DECLARE_TYPE(QmlBehaviour);
+QML_DECLARE_TYPE(QmlBehaviour)
#endif // QMLBEHAVIOUR_H
diff --git a/src/declarative/util/qmlbind.cpp b/src/declarative/util/qmlbind.cpp
index 59bfd75..b45d07d 100644
--- a/src/declarative/util/qmlbind.cpp
+++ b/src/declarative/util/qmlbind.cpp
@@ -63,7 +63,7 @@ public:
QmlNullableValue<QVariant> value;
};
-QML_DEFINE_TYPE(QmlBind,Bind);
+QML_DEFINE_TYPE(QmlBind,Bind)
/*!
\qmlclass Bind QmlBind
\brief The Bind element allows arbitrary property bindings to be created.
diff --git a/src/declarative/util/qmlbind.h b/src/declarative/util/qmlbind.h
index 5576957..706e202 100644
--- a/src/declarative/util/qmlbind.h
+++ b/src/declarative/util/qmlbind.h
@@ -55,17 +55,17 @@ class QmlBindPrivate;
class Q_DECLARATIVE_EXPORT QmlBind : public QObject
{
Q_OBJECT
- Q_DECLARE_PRIVATE(QmlBind);
+ Q_DECLARE_PRIVATE(QmlBind)
- Q_PROPERTY(QObject *target READ object WRITE setObject);
- Q_PROPERTY(QString property READ property WRITE setProperty);
- Q_PROPERTY(QVariant value READ value WRITE setValue);
+ Q_PROPERTY(QObject *target READ object WRITE setObject)
+ Q_PROPERTY(QString property READ property WRITE setProperty)
+ Q_PROPERTY(QVariant value READ value WRITE setValue)
+ Q_PROPERTY(bool when READ when WRITE setWhen)
public:
QmlBind(QObject *parent=0);
~QmlBind();
- Q_PROPERTY(bool when READ when WRITE setWhen);
bool when() const;
void setWhen(bool);
@@ -81,7 +81,7 @@ public:
private:
void eval();
};
-QML_DECLARE_TYPE(QmlBind);
+QML_DECLARE_TYPE(QmlBind)
QT_END_NAMESPACE
diff --git a/src/declarative/util/qmlconnection.cpp b/src/declarative/util/qmlconnection.cpp
index 8f6c908..6c7b158 100644
--- a/src/declarative/util/qmlconnection.cpp
+++ b/src/declarative/util/qmlconnection.cpp
@@ -294,6 +294,6 @@ void QmlConnection::setSignal(const QString& sig)
connectIfValid();
}
-QML_DEFINE_TYPE(QmlConnection,Connection);
+QML_DEFINE_TYPE(QmlConnection,Connection)
QT_END_NAMESPACE
diff --git a/src/declarative/util/qmlconnection.h b/src/declarative/util/qmlconnection.h
index c943092..57a406b 100644
--- a/src/declarative/util/qmlconnection.h
+++ b/src/declarative/util/qmlconnection.h
@@ -59,11 +59,11 @@ class Q_DECLARATIVE_EXPORT QmlConnection : public QObject, public QmlParserStatu
Q_OBJECT
Q_DECLARE_PRIVATE(QmlConnection)
- Q_INTERFACES(QmlParserStatus);
- Q_CLASSINFO("DefaultProperty", "script");
- Q_PROPERTY(QObject *sender READ signalSender WRITE setSignalSender);
- Q_PROPERTY(QString script READ script WRITE setScript);
- Q_PROPERTY(QString signal READ signal WRITE setSignal);
+ Q_INTERFACES(QmlParserStatus)
+ Q_CLASSINFO("DefaultProperty", "script")
+ Q_PROPERTY(QObject *sender READ signalSender WRITE setSignalSender)
+ Q_PROPERTY(QString script READ script WRITE setScript)
+ Q_PROPERTY(QString signal READ signal WRITE setSignal)
public:
QmlConnection(QObject *parent=0);
@@ -81,7 +81,7 @@ private:
void connectIfValid();
void componentComplete();
};
-QML_DECLARE_TYPE(QmlConnection);
+QML_DECLARE_TYPE(QmlConnection)
#endif
diff --git a/src/declarative/util/qmldatetimeformatter.cpp b/src/declarative/util/qmldatetimeformatter.cpp
index 94b87ee..ad0e473 100644
--- a/src/declarative/util/qmldatetimeformatter.cpp
+++ b/src/declarative/util/qmldatetimeformatter.cpp
@@ -364,5 +364,5 @@ void QmlDateTimeFormatter::classComplete()
d->updateText();
}
-QML_DEFINE_TYPE(QmlDateTimeFormatter, DateTimeFormatter);
+QML_DEFINE_TYPE(QmlDateTimeFormatter, DateTimeFormatter)
QT_END_NAMESPACE
diff --git a/src/declarative/util/qmldatetimeformatter.h b/src/declarative/util/qmldatetimeformatter.h
index 3421f8c..5d11dab 100644
--- a/src/declarative/util/qmldatetimeformatter.h
+++ b/src/declarative/util/qmldatetimeformatter.h
@@ -107,7 +107,7 @@ private:
Q_DECLARE_PRIVATE(QmlDateTimeFormatter)
};
-QML_DECLARE_TYPE(QmlDateTimeFormatter);
+QML_DECLARE_TYPE(QmlDateTimeFormatter)
QT_END_NAMESPACE
diff --git a/src/declarative/util/qmlfollow.cpp b/src/declarative/util/qmlfollow.cpp
index 8e5ae69..d1ecac4 100644
--- a/src/declarative/util/qmlfollow.cpp
+++ b/src/declarative/util/qmlfollow.cpp
@@ -47,7 +47,7 @@
QT_BEGIN_NAMESPACE
-QML_DEFINE_TYPE(QmlFollow,Follow);
+QML_DEFINE_TYPE(QmlFollow,Follow)
class QmlFollowPrivate : public QObjectPrivate
{
diff --git a/src/declarative/util/qmlfollow.h b/src/declarative/util/qmlfollow.h
index fa0bff8..d210592 100644
--- a/src/declarative/util/qmlfollow.h
+++ b/src/declarative/util/qmlfollow.h
@@ -59,14 +59,14 @@ class Q_DECLARATIVE_EXPORT QmlFollow : public QmlPropertyValueSource,
Q_DECLARE_PRIVATE(QmlFollow)
Q_INTERFACES(QmlParserStatus)
- Q_PROPERTY(qreal source READ sourceValue WRITE setSourceValue);
- Q_PROPERTY(qreal velocity READ velocity WRITE setVelocity);
- Q_PROPERTY(qreal spring READ spring WRITE setSpring);
- Q_PROPERTY(qreal damping READ damping WRITE setDamping);
- Q_PROPERTY(qreal epsilon READ epsilon WRITE setEpsilon);
- Q_PROPERTY(bool enabled READ enabled WRITE setEnabled);
-
- Q_PROPERTY(qreal followValue READ value NOTIFY valueChanged);
+ Q_PROPERTY(qreal source READ sourceValue WRITE setSourceValue)
+ Q_PROPERTY(qreal velocity READ velocity WRITE setVelocity)
+ Q_PROPERTY(qreal spring READ spring WRITE setSpring)
+ Q_PROPERTY(qreal damping READ damping WRITE setDamping)
+ Q_PROPERTY(qreal epsilon READ epsilon WRITE setEpsilon)
+ Q_PROPERTY(bool enabled READ enabled WRITE setEnabled)
+ Q_PROPERTY(qreal followValue READ value NOTIFY valueChanged)
+
public:
QmlFollow(QObject *parent=0);
~QmlFollow();
@@ -92,7 +92,7 @@ Q_SIGNALS:
void valueChanged(qreal);
};
-QML_DECLARE_TYPE(QmlFollow);
+QML_DECLARE_TYPE(QmlFollow)
#endif // QFXFOLLOW_H
diff --git a/src/declarative/util/qmlfont.cpp b/src/declarative/util/qmlfont.cpp
index 9f3225a..c537a83 100644
--- a/src/declarative/util/qmlfont.cpp
+++ b/src/declarative/util/qmlfont.cpp
@@ -51,7 +51,7 @@ public:
QFont font;
};
-QML_DEFINE_TYPE(QmlFont,Font);
+QML_DEFINE_TYPE(QmlFont,Font)
/*!
\internal
diff --git a/src/declarative/util/qmlfont.h b/src/declarative/util/qmlfont.h
index 3a21c34..1fee6cb 100644
--- a/src/declarative/util/qmlfont.h
+++ b/src/declarative/util/qmlfont.h
@@ -83,7 +83,7 @@ public:
Q_SIGNALS:
void updated();
};
-QML_DECLARE_TYPE(QmlFont);
+QML_DECLARE_TYPE(QmlFont)
QT_END_NAMESPACE
diff --git a/src/declarative/util/qmllistmodel.cpp b/src/declarative/util/qmllistmodel.cpp
index 80eb9c3..cc85661 100644
--- a/src/declarative/util/qmllistmodel.cpp
+++ b/src/declarative/util/qmllistmodel.cpp
@@ -67,7 +67,7 @@ struct ListModelData
ListInstruction *instructions() const { return (ListInstruction *)((char *)this + sizeof(ListModelData)); }
};
-Q_DECLARE_METATYPE(QListModelInterface *);
+Q_DECLARE_METATYPE(QListModelInterface *)
/*!
\qmlclass ListModel
@@ -178,7 +178,7 @@ public:
virtual QList<int> roles() const;
virtual QString toString(int role) const;
- Q_PROPERTY(int count READ count);
+ Q_PROPERTY(int count READ count)
virtual int count() const;
virtual QHash<int,QVariant> data(int index, const QList<int> &roles = (QList<int>())) const;
@@ -243,7 +243,7 @@ struct ModelNode
ListModel *modelCache;
ModelObject *objectCache;
};
-Q_DECLARE_METATYPE(ModelNode *);
+Q_DECLARE_METATYPE(ModelNode *)
ModelObject::ModelObject(ModelNode *node)
: _node(node), _haveProperties(false), _mo(new QmlOpenMetaObject(this))
@@ -519,16 +519,16 @@ void ListModelParser::setCustomData(QObject *obj, const QByteArray &d)
}
}
-QML_DECLARE_TYPE(ListModel);
-QML_DEFINE_CUSTOM_TYPE(ListModel, ListModel, ListModelParser);
+QML_DECLARE_TYPE(ListModel)
+QML_DEFINE_CUSTOM_TYPE(ListModel, ListModel, ListModelParser)
// ### FIXME
class ListElement : public QObject
{
Q_OBJECT
};
-QML_DECLARE_TYPE(ListElement);
-QML_DEFINE_TYPE(ListElement,ListElement);
+QML_DECLARE_TYPE(ListElement)
+QML_DEFINE_TYPE(ListElement,ListElement)
static void dump(ModelNode *node, int ind)
{
diff --git a/src/declarative/util/qmlpackage.cpp b/src/declarative/util/qmlpackage.cpp
index 107bcdb..e527c1f 100644
--- a/src/declarative/util/qmlpackage.cpp
+++ b/src/declarative/util/qmlpackage.cpp
@@ -147,7 +147,7 @@ QmlPackageAttached *QmlPackage::qmlAttachedProperties(QObject *o)
return new QmlPackageAttached(o);
}
-QML_DEFINE_TYPE(QmlPackage, Package);
+QML_DEFINE_TYPE(QmlPackage, Package)
QT_END_NAMESPACE
#include "qmlpackage.moc"
diff --git a/src/declarative/util/qmlpackage.h b/src/declarative/util/qmlpackage.h
index f4167fd..cc77b6c 100644
--- a/src/declarative/util/qmlpackage.h
+++ b/src/declarative/util/qmlpackage.h
@@ -63,8 +63,8 @@ class QmlPackage : public QObject
Q_OBJECT
Q_DECLARE_PRIVATE(QmlPackage)
- Q_CLASSINFO("DefaultProperty", "data");
- Q_PROPERTY(QmlList<QObject *> *data READ data SCRIPTABLE false);
+ Q_CLASSINFO("DefaultProperty", "data")
+ Q_PROPERTY(QmlList<QObject *> *data READ data SCRIPTABLE false)
public:
QmlPackage(QObject *parent=0);
@@ -77,7 +77,7 @@ public:
static QmlPackageAttached *qmlAttachedProperties(QObject *);
};
-QML_DECLARE_TYPE(QmlPackage);
+QML_DECLARE_TYPE(QmlPackage)
#endif // QMLPACKAGE_H
diff --git a/src/declarative/util/qmlscript.cpp b/src/declarative/util/qmlscript.cpp
index d6d610a..45370e2 100644
--- a/src/declarative/util/qmlscript.cpp
+++ b/src/declarative/util/qmlscript.cpp
@@ -101,7 +101,7 @@ public:
avoided.
*/
-QML_DEFINE_TYPE(QmlScript,Script);
+QML_DEFINE_TYPE(QmlScript,Script)
QmlScript::QmlScript(QObject *parent) : QObject(*(new QmlScriptPrivate), parent)
{
}
diff --git a/src/declarative/util/qmlscript.h b/src/declarative/util/qmlscript.h
index b739fd7..dc090bc 100644
--- a/src/declarative/util/qmlscript.h
+++ b/src/declarative/util/qmlscript.h
@@ -55,11 +55,11 @@ class QmlScriptPrivate;
class Q_DECLARATIVE_EXPORT QmlScript : public QObject
{
Q_OBJECT
- Q_DECLARE_PRIVATE(QmlScript);
+ Q_DECLARE_PRIVATE(QmlScript)
- Q_PROPERTY(QString script READ script WRITE setScript);
- Q_PROPERTY(QString source READ source WRITE setSource);
- Q_CLASSINFO("DefaultProperty", "script");
+ Q_PROPERTY(QString script READ script WRITE setScript)
+ Q_PROPERTY(QString source READ source WRITE setSource)
+ Q_CLASSINFO("DefaultProperty", "script")
public:
QmlScript(QObject *parent=0);
@@ -73,7 +73,7 @@ public:
private Q_SLOTS:
void replyFinished();
};
-QML_DECLARE_TYPE(QmlScript);
+QML_DECLARE_TYPE(QmlScript)
QT_END_NAMESPACE
QT_END_HEADER
diff --git a/src/declarative/util/qmlsetproperties.cpp b/src/declarative/util/qmlsetproperties.cpp
index c986864..cb97ed9 100644
--- a/src/declarative/util/qmlsetproperties.cpp
+++ b/src/declarative/util/qmlsetproperties.cpp
@@ -357,6 +357,6 @@ QmlSetProperties::ActionList QmlSetProperties::actions()
return list;
}
-QML_DEFINE_CUSTOM_TYPE(QmlSetProperties,SetProperties,QmlSetPropertiesParser);
+QML_DEFINE_CUSTOM_TYPE(QmlSetProperties,SetProperties,QmlSetPropertiesParser)
QT_END_NAMESPACE
diff --git a/src/declarative/util/qmlsetproperties.h b/src/declarative/util/qmlsetproperties.h
index 24ad99a..da5fcf2 100644
--- a/src/declarative/util/qmlsetproperties.h
+++ b/src/declarative/util/qmlsetproperties.h
@@ -55,10 +55,10 @@ class QmlSetPropertiesPrivate;
class Q_DECLARATIVE_EXPORT QmlSetProperties : public QmlStateOperation
{
Q_OBJECT
- Q_DECLARE_PRIVATE(QmlSetProperties);
+ Q_DECLARE_PRIVATE(QmlSetProperties)
- Q_PROPERTY(QObject *target READ object WRITE setObject);
- Q_PROPERTY(bool restoreEntryValues READ restoreEntryValues WRITE setRestoreEntryValues);
+ Q_PROPERTY(QObject *target READ object WRITE setObject)
+ Q_PROPERTY(bool restoreEntryValues READ restoreEntryValues WRITE setRestoreEntryValues)
public:
QmlSetProperties();
~QmlSetProperties();
@@ -71,7 +71,7 @@ public:
virtual ActionList actions();
};
-QML_DECLARE_TYPE(QmlSetProperties);
+QML_DECLARE_TYPE(QmlSetProperties)
QT_END_NAMESPACE
diff --git a/src/declarative/util/qmlstate.cpp b/src/declarative/util/qmlstate.cpp
index 6261003..abe8301 100644
--- a/src/declarative/util/qmlstate.cpp
+++ b/src/declarative/util/qmlstate.cpp
@@ -104,7 +104,7 @@ QmlStateOperation::QmlStateOperation(QObjectPrivate &dd, QObject *parent)
\sa {states-transitions}{States and Transitions}
*/
-QML_DEFINE_TYPE(QmlState,State);
+QML_DEFINE_TYPE(QmlState,State)
QmlState::QmlState(QObject *parent)
: QObject(*(new QmlStatePrivate), parent)
{
@@ -463,7 +463,7 @@ void QmlState::apply(QmlStateGroup *group, QmlTransition *trans, QmlState *rever
d->applyBindings(); //### merge into above foreach?
}
-QML_DEFINE_TYPE(QmlStateOperation,StateOperation);
+QML_DEFINE_TYPE(QmlStateOperation,StateOperation)
QmlStateOperation::ActionList QmlStateOperation::actions()
{
return ActionList();
diff --git a/src/declarative/util/qmlstate.h b/src/declarative/util/qmlstate.h
index aa8871f..0b8d82a 100644
--- a/src/declarative/util/qmlstate.h
+++ b/src/declarative/util/qmlstate.h
@@ -116,7 +116,7 @@ public:
protected:
QmlStateOperation(QObjectPrivate &dd, QObject *parent = 0);
};
-QML_DECLARE_TYPE(QmlStateOperation);
+QML_DECLARE_TYPE(QmlStateOperation)
typedef QmlStateOperation::ActionList QmlStateActions;
@@ -127,11 +127,11 @@ class Q_DECLARATIVE_EXPORT QmlState : public QObject
{
Q_OBJECT
- Q_PROPERTY(QString name READ name WRITE setName);
- Q_PROPERTY(QmlBindableValue *when READ when WRITE setWhen);
- Q_PROPERTY(QString extends READ extends WRITE setExtends);
- Q_PROPERTY(QmlList<QmlStateOperation *>* operations READ operations);
- Q_CLASSINFO("DefaultProperty", "operations");
+ Q_PROPERTY(QString name READ name WRITE setName)
+ Q_PROPERTY(QmlBindableValue *when READ when WRITE setWhen)
+ Q_PROPERTY(QString extends READ extends WRITE setExtends)
+ Q_PROPERTY(QmlList<QmlStateOperation *>* operations READ operations)
+ Q_CLASSINFO("DefaultProperty", "operations")
public:
QmlState(QObject *parent=0);
@@ -166,7 +166,7 @@ private:
Q_DISABLE_COPY(QmlState)
friend class QmlTransitionPrivate;
};
-QML_DECLARE_TYPE(QmlState);
+QML_DECLARE_TYPE(QmlState)
QT_END_NAMESPACE
diff --git a/src/declarative/util/qmlstate_p.h b/src/declarative/util/qmlstate_p.h
index a2f18eb..da8fdcd 100644
--- a/src/declarative/util/qmlstate_p.h
+++ b/src/declarative/util/qmlstate_p.h
@@ -50,7 +50,7 @@ QT_BEGIN_NAMESPACE
class QmlStatePrivate : public QObjectPrivate
{
- Q_DECLARE_PUBLIC(QmlState);
+ Q_DECLARE_PUBLIC(QmlState)
public:
QmlStatePrivate()
diff --git a/src/declarative/util/qmlstategroup.cpp b/src/declarative/util/qmlstategroup.cpp
index cabef63..57ccd37 100644
--- a/src/declarative/util/qmlstategroup.cpp
+++ b/src/declarative/util/qmlstategroup.cpp
@@ -49,7 +49,7 @@
QT_BEGIN_NAMESPACE
DEFINE_BOOL_CONFIG_OPTION(stateChangeDebug, STATECHANGE_DEBUG);
-QML_DEFINE_TYPE(QmlStateGroup,StateGroup);
+QML_DEFINE_TYPE(QmlStateGroup,StateGroup)
class QmlStateGroupPrivate : public QObjectPrivate
{
diff --git a/src/declarative/util/qmlstategroup.h b/src/declarative/util/qmlstategroup.h
index cca1015..ac1d917 100644
--- a/src/declarative/util/qmlstategroup.h
+++ b/src/declarative/util/qmlstategroup.h
@@ -55,11 +55,11 @@ class QmlStateGroup : public QObject, public QmlParserStatus
{
Q_OBJECT
Q_INTERFACES(QmlParserStatus)
- Q_DECLARE_PRIVATE(QmlStateGroup);
+ Q_DECLARE_PRIVATE(QmlStateGroup)
- Q_PROPERTY(QString state READ state WRITE setState NOTIFY stateChanged);
- Q_PROPERTY(QmlList<QmlState *>* states READ statesProperty DESIGNABLE false);
- Q_PROPERTY(QmlList<QmlTransition *>* transitions READ transitionsProperty DESIGNABLE false);
+ Q_PROPERTY(QString state READ state WRITE setState NOTIFY stateChanged)
+ Q_PROPERTY(QmlList<QmlState *>* states READ statesProperty DESIGNABLE false)
+ Q_PROPERTY(QmlList<QmlTransition *>* transitions READ transitionsProperty DESIGNABLE false)
public:
QmlStateGroup(QObject * = 0);
@@ -85,7 +85,7 @@ private:
friend class QmlState;
void updateAutoState();
};
-QML_DECLARE_TYPE(QmlStateGroup);
+QML_DECLARE_TYPE(QmlStateGroup)
#endif // QMLSTATEGROUP_H
diff --git a/src/declarative/util/qmlstateoperations.cpp b/src/declarative/util/qmlstateoperations.cpp
index 01f9cdd..02b54f8 100644
--- a/src/declarative/util/qmlstateoperations.cpp
+++ b/src/declarative/util/qmlstateoperations.cpp
@@ -64,7 +64,7 @@ public:
\brief The ParentChange element allows you to reparent an object in a state.
*/
-QML_DEFINE_TYPE(QmlParentChange,ParentChange);
+QML_DEFINE_TYPE(QmlParentChange,ParentChange)
QmlParentChange::QmlParentChange(QObject *parent)
: QmlStateOperation(*(new QmlParentChangePrivate), parent)
{
@@ -147,7 +147,7 @@ public:
\qmlclass RunScript QmlRunScript
\brief The RunScript element allows you to run a script in a state.
*/
-QML_DEFINE_TYPE(QmlRunScript,RunScript);
+QML_DEFINE_TYPE(QmlRunScript,RunScript)
QmlRunScript::QmlRunScript(QObject *parent)
: QmlStateOperation(*(new QmlRunScriptPrivate), parent)
{
@@ -268,7 +268,7 @@ public:
QString binding;
};
-QML_DEFINE_TYPE(QmlSetProperty,SetProperty);
+QML_DEFINE_TYPE(QmlSetProperty,SetProperty)
QmlSetProperty::QmlSetProperty(QObject *parent)
: QmlStateOperation(*(new QmlSetPropertyPrivate), parent)
diff --git a/src/declarative/util/qmlstateoperations.h b/src/declarative/util/qmlstateoperations.h
index 720c639..c7a6d42 100644
--- a/src/declarative/util/qmlstateoperations.h
+++ b/src/declarative/util/qmlstateoperations.h
@@ -54,7 +54,7 @@ class QmlParentChangePrivate;
class Q_DECLARATIVE_EXPORT QmlParentChange : public QmlStateOperation
{
Q_OBJECT
- Q_DECLARE_PRIVATE(QmlParentChange);
+ Q_DECLARE_PRIVATE(QmlParentChange)
Q_PROPERTY(QObject *target READ object WRITE setObject)
Q_PROPERTY(QObject *parent READ parent WRITE setParent)
@@ -70,7 +70,7 @@ public:
virtual ActionList actions();
};
-QML_DECLARE_TYPE(QmlParentChange);
+QML_DECLARE_TYPE(QmlParentChange)
class QmlRunScriptPrivate;
class Q_DECLARATIVE_EXPORT QmlRunScript : public QmlStateOperation, public ActionEvent
@@ -78,8 +78,8 @@ class Q_DECLARATIVE_EXPORT QmlRunScript : public QmlStateOperation, public Actio
Q_OBJECT
Q_DECLARE_PRIVATE(QmlRunScript)
- Q_PROPERTY(QString script READ script WRITE setScript);
- Q_PROPERTY(QString name READ name WRITE setName);
+ Q_PROPERTY(QString script READ script WRITE setScript)
+ Q_PROPERTY(QString name READ name WRITE setName)
public:
QmlRunScript(QObject *parent=0);
@@ -95,18 +95,18 @@ public:
virtual void execute();
};
-QML_DECLARE_TYPE(QmlRunScript);
+QML_DECLARE_TYPE(QmlRunScript)
class QmlSetPropertyPrivate;
class Q_DECLARATIVE_EXPORT QmlSetProperty : public QmlStateOperation
{
Q_OBJECT
- Q_DECLARE_PRIVATE(QmlSetProperty);
+ Q_DECLARE_PRIVATE(QmlSetProperty)
- Q_PROPERTY(QObject *target READ object WRITE setObject);
- Q_PROPERTY(QString property READ property WRITE setProperty);
- Q_PROPERTY(QVariant value READ value WRITE setValue);
- Q_PROPERTY(QString binding READ binding WRITE setBinding);
+ Q_PROPERTY(QObject *target READ object WRITE setObject)
+ Q_PROPERTY(QString property READ property WRITE setProperty)
+ Q_PROPERTY(QVariant value READ value WRITE setValue)
+ Q_PROPERTY(QString binding READ binding WRITE setBinding)
public:
QmlSetProperty(QObject *parent=0);
@@ -123,7 +123,7 @@ public:
virtual ActionList actions();
};
-QML_DECLARE_TYPE(QmlSetProperty);
+QML_DECLARE_TYPE(QmlSetProperty)
QT_END_NAMESPACE
diff --git a/src/declarative/util/qmltransition.cpp b/src/declarative/util/qmltransition.cpp
index 26ed8b1..5931075 100644
--- a/src/declarative/util/qmltransition.cpp
+++ b/src/declarative/util/qmltransition.cpp
@@ -135,7 +135,7 @@ void ParallelAnimationWrapper::updateState(QAbstractAnimation::State oldState, Q
}
-QML_DEFINE_TYPE(QmlTransition,Transition);
+QML_DEFINE_TYPE(QmlTransition,Transition)
QmlTransition::QmlTransition(QObject *parent)
: QObject(*(new QmlTransitionPrivate), parent)
{
diff --git a/src/declarative/util/qmltransition.h b/src/declarative/util/qmltransition.h
index 646746e..4462b4c 100644
--- a/src/declarative/util/qmltransition.h
+++ b/src/declarative/util/qmltransition.h
@@ -88,7 +88,7 @@ public:
void setReversed(bool r);
void stop();
};
-QML_DECLARE_TYPE(QmlTransition);
+QML_DECLARE_TYPE(QmlTransition)
QT_END_NAMESPACE
diff --git a/src/declarative/widgets/graphicslayouts.cpp b/src/declarative/widgets/graphicslayouts.cpp
index d6c4ac2..f2d8dbc 100644
--- a/src/declarative/widgets/graphicslayouts.cpp
+++ b/src/declarative/widgets/graphicslayouts.cpp
@@ -45,8 +45,8 @@
QT_BEGIN_NAMESPACE
-QML_DEFINE_INTERFACE(QGraphicsLayoutItem);
-QML_DEFINE_INTERFACE(QGraphicsLayout);
+QML_DEFINE_INTERFACE(QGraphicsLayoutItem)
+QML_DEFINE_INTERFACE(QGraphicsLayout)
class LinearLayoutAttached : public QObject
{
@@ -89,7 +89,7 @@ private:
Qt::Alignment _alignment;
};
-QML_DEFINE_TYPE(QGraphicsLinearLayoutStretchItemObject,QGraphicsLinearLayoutStretchItem);
+QML_DEFINE_TYPE(QGraphicsLinearLayoutStretchItemObject,QGraphicsLinearLayoutStretchItem)
QGraphicsLinearLayoutStretchItemObject::QGraphicsLinearLayoutStretchItemObject(QObject *parent)
: QObject(parent)
@@ -103,7 +103,7 @@ QSizeF QGraphicsLinearLayoutStretchItemObject::sizeHint(Qt::SizeHint which, cons
return QSizeF();
}
-QML_DEFINE_TYPE(QGraphicsLinearLayoutObject,QGraphicsLinearLayout);
+QML_DEFINE_TYPE(QGraphicsLinearLayoutObject,QGraphicsLinearLayout)
QGraphicsLinearLayoutObject::QGraphicsLinearLayoutObject(QObject *parent)
: QObject(parent), _children(this)
@@ -246,7 +246,7 @@ private:
Qt::Alignment _alignment;
};
-QML_DEFINE_TYPE(QGraphicsGridLayoutObject,QGraphicsGridLayout);
+QML_DEFINE_TYPE(QGraphicsGridLayoutObject,QGraphicsGridLayout)
QGraphicsGridLayoutObject::QGraphicsGridLayoutObject(QObject *parent)
diff --git a/src/declarative/widgets/graphicslayouts.h b/src/declarative/widgets/graphicslayouts.h
index e9930f1..303f749 100644
--- a/src/declarative/widgets/graphicslayouts.h
+++ b/src/declarative/widgets/graphicslayouts.h
@@ -52,8 +52,8 @@ QT_BEGIN_NAMESPACE
QT_MODULE(Declarative)
-QML_DECLARE_INTERFACE(QGraphicsLayoutItem);
-QML_DECLARE_INTERFACE(QGraphicsLayout);
+QML_DECLARE_INTERFACE(QGraphicsLayoutItem)
+QML_DECLARE_INTERFACE(QGraphicsLayout)
class QGraphicsLinearLayoutStretchItemObject : public QObject, public QGraphicsLayoutItem
{
@@ -64,7 +64,7 @@ public:
virtual QSizeF sizeHint(Qt::SizeHint, const QSizeF &) const;
};
-QML_DECLARE_TYPE(QGraphicsLinearLayoutStretchItemObject);
+QML_DECLARE_TYPE(QGraphicsLinearLayoutStretchItemObject)
//TODO:
// -content margins
@@ -120,7 +120,7 @@ private:
ChildList _children;
};
-QML_DECLARE_TYPE(QGraphicsLinearLayoutObject);
+QML_DECLARE_TYPE(QGraphicsLinearLayoutObject)
//TODO:
// -content margins
@@ -181,7 +181,7 @@ private:
ChildList _children;
};
-QML_DECLARE_TYPE(QGraphicsGridLayoutObject);
+QML_DECLARE_TYPE(QGraphicsGridLayoutObject)
#endif // GRAPHICSLAYOUTS_H
diff --git a/src/declarative/widgets/graphicswidgets.cpp b/src/declarative/widgets/graphicswidgets.cpp
index b808807..86509f5 100644
--- a/src/declarative/widgets/graphicswidgets.cpp
+++ b/src/declarative/widgets/graphicswidgets.cpp
@@ -59,7 +59,7 @@ public:
static_cast<QGraphicsView *>(parent())->setScene(scene);
}
};
-QML_DEFINE_EXTENDED_TYPE(QGraphicsView,QGraphicsView,QGraphicsViewDeclarativeUI);
+QML_DEFINE_EXTENDED_TYPE(QGraphicsView,QGraphicsView,QGraphicsViewDeclarativeUI)
class QGraphicsSceneDeclarativeUI : public QObject
{
@@ -111,7 +111,7 @@ private:
};
Children _children;
};
-QML_DEFINE_EXTENDED_TYPE(QGraphicsScene,QGraphicsScene,QGraphicsSceneDeclarativeUI);
+QML_DEFINE_EXTENDED_TYPE(QGraphicsScene,QGraphicsScene,QGraphicsSceneDeclarativeUI)
class QGraphicsWidgetDeclarativeUI : public QObject
{
@@ -164,9 +164,9 @@ private:
QmlConcreteList<QObject *> _data;
};
-QML_DEFINE_EXTENDED_TYPE(QGraphicsWidget,QGraphicsWidget,QGraphicsWidgetDeclarativeUI);
+QML_DEFINE_EXTENDED_TYPE(QGraphicsWidget,QGraphicsWidget,QGraphicsWidgetDeclarativeUI)
-QML_DEFINE_INTERFACE(QGraphicsItem);
+QML_DEFINE_INTERFACE(QGraphicsItem)
#include "graphicswidgets.moc"
diff --git a/src/declarative/widgets/graphicswidgets.h b/src/declarative/widgets/graphicswidgets.h
index cec15b6..e29f1d6 100644
--- a/src/declarative/widgets/graphicswidgets.h
+++ b/src/declarative/widgets/graphicswidgets.h
@@ -50,10 +50,10 @@
QT_BEGIN_NAMESPACE
-QML_DECLARE_TYPE(QGraphicsView);
-QML_DECLARE_TYPE_HASMETATYPE(QGraphicsScene);
-QML_DECLARE_TYPE(QGraphicsWidget);
-QML_DECLARE_INTERFACE_HASMETATYPE(QGraphicsItem);
+QML_DECLARE_TYPE(QGraphicsView)
+QML_DECLARE_TYPE_HASMETATYPE(QGraphicsScene)
+QML_DECLARE_TYPE(QGraphicsWidget)
+QML_DECLARE_INTERFACE_HASMETATYPE(QGraphicsItem)
QT_END_NAMESPACE