aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates2/qquicktooltip.cpp
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2016-04-13 20:30:26 +0200
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2016-04-13 19:11:26 +0000
commit5570ade79fec6d2e7b7381b6fe1869239832e05b (patch)
tree8ac10d6b47dd77709301f0c442de2f0dcfa17cd5 /src/quicktemplates2/qquicktooltip.cpp
parent68139b762e632192fe7a8a9a1380d5193f2bf366 (diff)
Doc: add 2-suffix to the image assets and snippets
Change-Id: Ib8050cb3baefe07d28c7e2dcec64af155d2d7c9b Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/quicktemplates2/qquicktooltip.cpp')
-rw-r--r--src/quicktemplates2/qquicktooltip.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/quicktemplates2/qquicktooltip.cpp b/src/quicktemplates2/qquicktooltip.cpp
index 010a07c5..1a22679b 100644
--- a/src/quicktemplates2/qquicktooltip.cpp
+++ b/src/quicktemplates2/qquicktooltip.cpp
@@ -57,13 +57,13 @@ QT_BEGIN_NAMESPACE
function. It is typically placed above or below the parent control. The
tip text can be any \l{Rich Text Processing}{rich text} formatted string.
- \image qtquickcontrols-tooltip.png
+ \image qtquickcontrols2-tooltip.png
The most straight-forward way to setup tool tips for controls is to
specify \l text and \l {visible}{visibility} via attached properties.
The following example illustrates this approach:
- \snippet qtquickcontrols-tooltip.qml 1
+ \snippet qtquickcontrols2-tooltip.qml 1
Under normal circumstances, there is only one tool tip visible at a time.
In order to save resources, all items that use the ToolTip attached property
@@ -88,14 +88,14 @@ QT_BEGIN_NAMESPACE
interval is reached. In this example, the tool tip hides as soon as the
button is released.
- \snippet qtquickcontrols-tooltip-pressandhold.qml 1
+ \snippet qtquickcontrols2-tooltip-pressandhold.qml 1
With pointer devices, however, it might be desired to show a tool tip as
a result of hovering a button for a while. The following example presents
how to show a tool tip after hovering a button for a second, and hide it
after a timeout of five seconds.
- \snippet qtquickcontrols-tooltip-hover.qml 1
+ \snippet qtquickcontrols2-tooltip-hover.qml 1
\section2 Custom Tool Tips
@@ -106,9 +106,9 @@ QT_BEGIN_NAMESPACE
API is available. The following example presents a tool tip that presents
the value of a slider when the handle is dragged.
- \image qtquickcontrols-tooltip-slider.png
+ \image qtquickcontrols2-tooltip-slider.png
- \snippet qtquickcontrols-tooltip-slider.qml 1
+ \snippet qtquickcontrols2-tooltip-slider.qml 1
\labs