Don't require mandatory subText in tooltip

REVIEW: 118838
This commit is contained in:
David Edmundson 2014-06-19 14:46:15 +02:00
parent 0ba92ad6c2
commit 21af3f8c81

View File

@ -320,8 +320,7 @@ void ToolTip::hoverEnterEvent(QHoverEvent *event)
tooltipDialogInstance()->keepalive(); tooltipDialogInstance()->keepalive();
//FIXME: showToolTip needs to be renamed in sync or something like that //FIXME: showToolTip needs to be renamed in sync or something like that
showToolTip(); showToolTip();
} else if (m_mainItem || } else if (m_mainItem || !mainText().isEmpty() || !subText().isEmpty()) {
(!mainText().isEmpty() && !subText().isEmpty())) {
m_showTimer->start(m_interval); m_showTimer->start(m_interval);
} }
} }