From f0d2237177bb97c40c7daace6f2a17bf27f65249 Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Tue, 28 Feb 2017 11:24:01 +0100 Subject: Note that iconName requires QApplication Task-number: QTBUG-37083 Change-Id: I3091776f4b4643136e67c9521efddb5462657d06 Reviewed-by: J-P Nurmi --- src/controls/Private/BasicButton.qml | 2 ++ src/controls/doc/includes/icons.qdocinc | 3 +++ src/controls/qquickaction.cpp | 2 ++ src/controls/qquickmenuitem.cpp | 2 ++ 4 files changed, 9 insertions(+) create mode 100644 src/controls/doc/includes/icons.qdocinc diff --git a/src/controls/Private/BasicButton.qml b/src/controls/Private/BasicButton.qml index 437ab407..a9ca4c48 100644 --- a/src/controls/Private/BasicButton.qml +++ b/src/controls/Private/BasicButton.qml @@ -122,6 +122,8 @@ Control { /*! The image label source as theme name. When an icon from the platform icon theme is found, this takes precedence over iconSource. + + \include icons.qdocinc iconName */ property string iconName: action ? action.iconName : "" diff --git a/src/controls/doc/includes/icons.qdocinc b/src/controls/doc/includes/icons.qdocinc new file mode 100644 index 00000000..37bc3758 --- /dev/null +++ b/src/controls/doc/includes/icons.qdocinc @@ -0,0 +1,3 @@ +//! [iconName] +\note This property requires \l QApplication. +//! [iconName] diff --git a/src/controls/qquickaction.cpp b/src/controls/qquickaction.cpp index f04b13ab..e1c6970b 100644 --- a/src/controls/qquickaction.cpp +++ b/src/controls/qquickaction.cpp @@ -102,6 +102,8 @@ QT_BEGIN_NAMESPACE with the given name from the current theme. Defaults to the empty string. + + \include icons.qdocinc iconName */ /*! diff --git a/src/controls/qquickmenuitem.cpp b/src/controls/qquickmenuitem.cpp index 33acff9e..733fc638 100644 --- a/src/controls/qquickmenuitem.cpp +++ b/src/controls/qquickmenuitem.cpp @@ -370,6 +370,8 @@ void QQuickMenuText1::updateIcon() with the given name from the current theme. Overrides the item's bound action \c iconName property. Defaults to the empty string. + \include icons.qdocinc iconName + \sa iconSource, Action::iconName */ -- cgit v1.2.1