diff options
author | Thorbjørn Martsum <tmartsum@gmail.com> | 2013-05-15 21:23:30 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-05-27 19:58:19 +0200 |
commit | 63354e0d097116138e7d998a01194f5ee502117a (patch) | |
tree | 17f26a42afa3d6567fdb4eb4eca5996311eb1500 /src/widgets/kernel/qtooltip.h | |
parent | 00ce5a3c1e23c95a54fb6a785bde24fe5a55fb71 (diff) |
QToolTip - add static showText with time.
It is nice to be able to control how long time a tooltip is shown.
This is the first part of solving:
Task-number: QTBUG-1016
Change-Id: I8e313df8a2acdc5ccc91d9c8ce956c30c76daf4b
Reviewed-by: David Faure (KDE) <faure@kde.org>
Diffstat (limited to 'src/widgets/kernel/qtooltip.h')
-rw-r--r-- | src/widgets/kernel/qtooltip.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/widgets/kernel/qtooltip.h b/src/widgets/kernel/qtooltip.h index 25b138b855..ccde405342 100644 --- a/src/widgets/kernel/qtooltip.h +++ b/src/widgets/kernel/qtooltip.h @@ -53,8 +53,10 @@ class Q_WIDGETS_EXPORT QToolTip { QToolTip() Q_DECL_EQ_DELETE; public: + // ### Qt 6 - merge the three showText functions below static void showText(const QPoint &pos, const QString &text, QWidget *w = 0); static void showText(const QPoint &pos, const QString &text, QWidget *w, const QRect &rect); + static void showText(const QPoint &pos, const QString &text, QWidget *w, const QRect &rect, int msecShowTime); static inline void hideText() { showText(QPoint(), QString()); } static bool isVisible(); |