diff options
author | Andreas Buhr <andreas.buhr@qt.io> | 2020-12-07 09:41:40 +0100 |
---|---|---|
committer | Andreas Buhr <andreas.buhr@qt.io> | 2020-12-07 15:43:59 +0100 |
commit | 3fbf922cc5925a13fbfadfe1f5fa8312209c097a (patch) | |
tree | 9ba55ff29c4cf759818bd8a30ed7d380168e404c /src/corelib/kernel/qproperty.cpp | |
parent | 04fed9f77e3288f69fe89bcb8a3f1cdbe02ce219 (diff) |
Fix QProperty example so that comments match implementation
The comments in the QProperty examples slightly mismatched the
implementation. This patch fixes it.
Pick-to: 6.0
Change-Id: I03cfb35c024fad8ea4eaa5d5db220e1907f06bc3
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/corelib/kernel/qproperty.cpp')
-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" |