From 21af3f8c817cfd1fb9b53150c1193ca73e2018d2 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Thu, 19 Jun 2014 14:46:15 +0200 Subject: [PATCH] Don't require mandatory subText in tooltip REVIEW: 118838 --- src/declarativeimports/core/tooltip.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/declarativeimports/core/tooltip.cpp b/src/declarativeimports/core/tooltip.cpp index 11aaaff73..b9b160553 100644 --- a/src/declarativeimports/core/tooltip.cpp +++ b/src/declarativeimports/core/tooltip.cpp @@ -320,8 +320,7 @@ void ToolTip::hoverEnterEvent(QHoverEvent *event) tooltipDialogInstance()->keepalive(); //FIXME: showToolTip needs to be renamed in sync or something like that showToolTip(); - } else if (m_mainItem || - (!mainText().isEmpty() && !subText().isEmpty())) { + } else if (m_mainItem || !mainText().isEmpty() || !subText().isEmpty()) { m_showTimer->start(m_interval); } }