aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates2/qquicktooltip.cpp
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2016-07-04 09:25:21 +0200
committerMitch Curtis <mitch.curtis@qt.io>2016-07-04 08:04:58 +0000
commit2f5a6875c3b9a4ee5c647ebddd6defa6ca12d314 (patch)
treef2f2b769b2c998ab216f9e82f90f3cc366c3569b /src/quicktemplates2/qquicktooltip.cpp
parent72d37ca466e2fd63b532053653f6946be853b7d9 (diff)
Improve ToolTip documentation
- Link to "Delay and Timeout" section from property docs so that users can easily learn more about these. - Be more consistent with wording. Change-Id: I70ad8eb2cda43d6faac0b322fc32be61ea3696df Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquicktooltip.cpp')
-rw-r--r--src/quicktemplates2/qquicktooltip.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/quicktemplates2/qquicktooltip.cpp b/src/quicktemplates2/qquicktooltip.cpp
index 3eee830b..cc0b6350 100644
--- a/src/quicktemplates2/qquicktooltip.cpp
+++ b/src/quicktemplates2/qquicktooltip.cpp
@@ -195,6 +195,8 @@ void QQuickToolTip::setText(const QString &text)
This property holds the delay (milliseconds) after which the tool tip is
shown. A tooltip with a negative delay is shown immediately. The default
value is \c 0.
+
+ \sa {Delay and Timeout}
*/
int QQuickToolTip::delay() const
{
@@ -218,6 +220,8 @@ void QQuickToolTip::setDelay(int delay)
This property holds the timeout (milliseconds) after which the tool tip is
hidden. A tooltip with a negative timeout does not hide automatically. The
default value is \c -1.
+
+ \sa {Delay and Timeout}
*/
int QQuickToolTip::timeout() const
{
@@ -346,7 +350,7 @@ QQuickToolTipAttached::QQuickToolTipAttached(QQuickItem *item) :
/*!
\qmlattachedproperty string QtQuick.Controls::ToolTip::text
- This attached property holds the text of the shared tool tip instance.
+ This attached property holds the text of the shared tool tip.
The property can be attached to any item.
*/
QString QQuickToolTipAttached::text() const
@@ -373,6 +377,8 @@ void QQuickToolTipAttached::setText(const QString &text)
This attached property holds the delay (milliseconds) of the shared tool tip.
The property can be attached to any item.
+
+ \sa {Delay and Timeout}
*/
int QQuickToolTipAttached::delay() const
{
@@ -395,6 +401,8 @@ void QQuickToolTipAttached::setDelay(int delay)
This attached property holds the timeout (milliseconds) of the shared tool tip.
The property can be attached to any item.
+
+ \sa {Delay and Timeout}
*/
int QQuickToolTipAttached::timeout() const
{