aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/doc/snippets/qmltc
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/doc/snippets/qmltc')
-rw-r--r--src/qml/doc/snippets/qmltc/special/HelloWorld.qml.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/doc/snippets/qmltc/special/HelloWorld.qml.cpp b/src/qml/doc/snippets/qmltc/special/HelloWorld.qml.cpp
index 0afbcbf0bf..6f30defef3 100644
--- a/src/qml/doc/snippets/qmltc/special/HelloWorld.qml.cpp
+++ b/src/qml/doc/snippets/qmltc/special/HelloWorld.qml.cpp
@@ -19,7 +19,7 @@ class HelloWorld : public QObject
{
Q_OBJECT
QML_ELEMENT
- Q_PROPERTY(QString hello WRITE setHello READ hello BINDABLE bindableHello)
+ Q_PROPERTY(QString hello READ hello WRITE setHello BINDABLE bindableHello)
public:
HelloWorld(QQmlEngine* engine, QObject* parent = nullptr, [[maybe_unused]] qxp::function_ref<void(PropertyInitializer&)> initializer = [](PropertyInitializer&){});
@@ -28,8 +28,8 @@ Q_SIGNALS:
void created();
public:
- void setHello(const QString& hello_);
QString hello();
+ void setHello(const QString& hello_);
QBindable<QString> bindableHello();
Q_INVOKABLE void printHello(passByConstRefOrValue<QString> prefix, passByConstRefOrValue<QString> suffix);