diff options
author | Andreas Buhr <andreas.buhr@qt.io> | 2020-12-07 09:41:40 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2020-12-07 19:27:01 +0000 |
commit | fd492d460fad9641832373e95e07a02cd4d7722e (patch) | |
tree | b3218f7be428e3c503e3c285f3dd7621d00f52f3 /src/corelib/kernel | |
parent | 391dc40bd25133c9b7fdd9822a013fae2683d8a6 (diff) |
Fix QProperty example so that comments match implementation
The comments in the QProperty examples slightly mismatched the
implementation. This patch fixes it.
Change-Id: I03cfb35c024fad8ea4eaa5d5db220e1907f06bc3
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
(cherry picked from commit 3fbf922cc5925a13fbfadfe1f5fa8312209c097a)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/corelib/kernel')
-rw-r--r-- | src/corelib/kernel/qproperty.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/kernel/qproperty.cpp b/src/corelib/kernel/qproperty.cpp index 27e2de7c4f..759ef37c32 100644 --- a/src/corelib/kernel/qproperty.cpp +++ b/src/corelib/kernel/qproperty.cpp @@ -704,7 +704,7 @@ QString QPropertyBindingError::description() const QProperty<int> age(41); QProperty<QString> fullname; - fullname.setBinding([&]() { return firstname.value() + " " + lastname.value() + " age:" + QString::number(age.value()); }); + fullname.setBinding([&]() { return firstname.value() + " " + lastname.value() + " age: " + QString::number(age.value()); }); qDebug() << fullname.value(); // Prints "John Smith age: 41" |