summaryrefslogtreecommitdiffstats
path: root/src/widgets
diff options
context:
space:
mode:
authorJoni Poikelin <joni.poikelin@digia.com>2014-06-09 16:27:36 +0300
committerJoni Poikelin <joni.poikelin@digia.com>2014-07-29 06:32:58 +0200
commit3fed060b94ff04131de603d4d668ae7853e50a53 (patch)
tree24fe24d169ff640805a70368e877d47c46d71081 /src/widgets
parent66790d63e914e46bc91818e530be40738f92cfcf (diff)
Fix warning message when re-setting text on tooltip
Fix warning message that gets printed when changing tooltip message without rect and widget parameters for already shown tooltip widget. Task-number: QTBUG-39550 Change-Id: I69ed8747e5e77ca618525d74479c72e02b7ab897 Reviewed-by: Andy Shaw <andy.shaw@digia.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/kernel/qtooltip.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/kernel/qtooltip.cpp b/src/widgets/kernel/qtooltip.cpp
index 2b43fd7f6d..16fb41e1fc 100644
--- a/src/widgets/kernel/qtooltip.cpp
+++ b/src/widgets/kernel/qtooltip.cpp
@@ -273,7 +273,7 @@ void QTipLabel::hideTipImmediately()
void QTipLabel::setTipRect(QWidget *w, const QRect &r)
{
- if (!rect.isNull() && !w)
+ if (!r.isNull() && !w)
qWarning("QToolTip::setTipRect: Cannot pass null widget if rect is set");
else{
widget = w;