aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates2/qquickitemdelegate.cpp
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2017-02-27 11:15:46 +0100
committerJ-P Nurmi <jpnurmi@qt.io>2017-04-12 11:15:54 +0000
commit9976eec9ef53f5f987d778820cb9b64fe7cec290 (patch)
tree36524dea626fbd8940a71d387a7825dd11ce10ad /src/quicktemplates2/qquickitemdelegate.cpp
parent4a8ae68f1e8acc0eb358ba7814a677ea7c5ae4f2 (diff)
ItemDelegate: add support for icons
Task-number: QTBUG-49820 Change-Id: I8976267610ede3ed2b808f5e8cb7f39ce65b6511 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquickitemdelegate.cpp')
-rw-r--r--src/quicktemplates2/qquickitemdelegate.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/quicktemplates2/qquickitemdelegate.cpp b/src/quicktemplates2/qquickitemdelegate.cpp
index 1b93c145..fb540a49 100644
--- a/src/quicktemplates2/qquickitemdelegate.cpp
+++ b/src/quicktemplates2/qquickitemdelegate.cpp
@@ -57,7 +57,8 @@ QT_BEGIN_NAMESPACE
ItemDelegate inherits its API from AbstractButton. For instance, you can set
\l {AbstractButton::text}{text}, and react to \l {AbstractButton::clicked}{clicks}
- using the AbstractButton API.
+ using the AbstractButton API. In addition to displaying text, item delegates
+ can also display an \l [QML]{Button Icons}{icon}.
\snippet qtquickcontrols2-itemdelegate.qml 1