aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/doc
diff options
context:
space:
mode:
authorAndrei Golubev <andrei.golubev@qt.io>2022-01-27 16:29:39 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-01-31 20:45:29 +0000
commit3342e25c616588779ab80b37b5d91d983b5f9595 (patch)
treedf42994ee342f7b644f2101cfea3767b5bde60fb /src/qml/doc
parent9a975279977d0252e1d4031e02eb432ed55f41b4 (diff)
Improve the structure of the output generated by qmltc
Make an effort to separate user-visible APIs from internal code relevant to qmltc In the process of doing it, make tst_qmltc_examples::helloWorld() test less brittle by using QMap instead of QHash when dumping C++ member functions of the type. QHash does not guarantee that the keys are ordered while QMap does (via operator "<") Change-Id: I1495e1755d3fd77950acb3820ad2b9c5e3cdee33 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> (cherry picked from commit 0ad51325c7432c8a8da38580d26721455252e64f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/qml/doc')
-rw-r--r--src/qml/doc/snippets/qmltc/special/HelloWorld.qml.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/doc/snippets/qmltc/special/HelloWorld.qml.cpp b/src/qml/doc/snippets/qmltc/special/HelloWorld.qml.cpp
index ca1d438d2c..ddbf3baaaa 100644
--- a/src/qml/doc/snippets/qmltc/special/HelloWorld.qml.cpp
+++ b/src/qml/doc/snippets/qmltc/special/HelloWorld.qml.cpp
@@ -67,6 +67,7 @@ class HelloWorld : public QObject
Q_OBJECT
QML_ELEMENT
Q_PROPERTY(QString hello WRITE setHello READ hello BINDABLE bindableHello)
+
public:
HelloWorld(QQmlEngine * engine, QObject * parent = nullptr);
@@ -74,7 +75,6 @@ public:
void setHello(const QString& hello_);
QString hello();
QBindable<QString> bindableHello();
-
Q_INVOKABLE void printHello(QString prefix, QString suffix);
signals: