summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-10-08 12:46:57 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-10-08 12:46:57 (GMT)
commit931350a9cb24f30e6fd6c227dbdc40937d59a705 (patch)
treec1117a9452c7aecb768937dbae5ab7361902ad06 /src
parent7a5659038c6b558f4edc49150126787a3930102b (diff)
downloadQt-931350a9cb24f30e6fd6c227dbdc40937d59a705.zip
Qt-931350a9cb24f30e6fd6c227dbdc40937d59a705.tar.gz
Qt-931350a9cb24f30e6fd6c227dbdc40937d59a705.tar.bz2
Move Q_PROPERTY()'s to top of object
Q_PROPERTY() macros without a semicolon inside a class access block (public:) confuses moc into ignoring Q_INVOKABLES
Diffstat (limited to 'src')
-rw-r--r--src/declarative/qml/qmlcomponentjs_p.h8
-rw-r--r--src/declarative/util/qmlpackage.cpp2
2 files changed, 5 insertions, 5 deletions
diff --git a/src/declarative/qml/qmlcomponentjs_p.h b/src/declarative/qml/qmlcomponentjs_p.h
index 0f56766..3213929 100644
--- a/src/declarative/qml/qmlcomponentjs_p.h
+++ b/src/declarative/qml/qmlcomponentjs_p.h
@@ -69,14 +69,14 @@ class Q_DECLARATIVE_EXPORT QmlComponentJS : public QmlComponent
{
Q_OBJECT
Q_DECLARE_PRIVATE(QmlComponentJS)
- friend class QmlEngine;
-public:
- QmlComponentJS(QmlEngine *, const QUrl &url, QObject *parent = 0);
- QmlComponentJS(QmlEngine *, QObject *parent=0);
Q_PROPERTY(bool isNull READ isNull NOTIFY isNullChanged)
Q_PROPERTY(bool isReady READ isReady NOTIFY isReadyChanged)
Q_PROPERTY(bool isError READ isError NOTIFY isErrorChanged)
Q_PROPERTY(bool isLoading READ isLoading NOTIFY isLoadingChanged)
+ friend class QmlEngine;
+public:
+ QmlComponentJS(QmlEngine *, const QUrl &url, QObject *parent = 0);
+ QmlComponentJS(QmlEngine *, QObject *parent=0);
Q_INVOKABLE QScriptValue createObject();
Q_INVOKABLE QString errorsString() const;
diff --git a/src/declarative/util/qmlpackage.cpp b/src/declarative/util/qmlpackage.cpp
index 912bb6b..7df8453 100644
--- a/src/declarative/util/qmlpackage.cpp
+++ b/src/declarative/util/qmlpackage.cpp
@@ -55,11 +55,11 @@ public:
class QmlPackageAttached : public QObject
{
Q_OBJECT
+Q_PROPERTY(QString name READ name WRITE setName)
public:
QmlPackageAttached(QObject *parent);
virtual ~QmlPackageAttached();
- Q_PROPERTY(QString name READ name WRITE setName)
QString name() const;
void setName(const QString &n);