Compile with -no-feature-tooltip

Change-Id: I6093559dd7b8df578ebd050655fb9bd07e5f6809
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
bb10
Paul Olav Tvete 2017-01-25 13:29:15 +01:00
parent 033fa96b6c
commit 08e8a02e51
3 changed files with 6 additions and 0 deletions

View File

@ -130,9 +130,11 @@ public:
case QAccessible::Accelerator:
str = qt_accHotKey(m_parent->tabText(m_index));
break;
#if QT_CONFIG(tooltip)
case QAccessible::Description:
str = m_parent->tabToolTip(m_index);
break;
#endif
case QAccessible::Help:
str = m_parent->tabWhatsThis(m_index);
break;

View File

@ -550,9 +550,11 @@ QString QAccessibleGroupBox::text(QAccessible::Text t) const
case QAccessible::Name:
txt = qt_accStripAmp(groupBox()->title());
break;
#if QT_CONFIG(tooltip)
case QAccessible::Description:
txt = groupBox()->toolTip();
break;
#endif
case QAccessible::Accelerator:
txt = qt_accHotKey(groupBox()->title());
break;

View File

@ -104,7 +104,9 @@ QSystemTrayIconSys::QSystemTrayIconSys(QSystemTrayIcon *qIn)
, q(qIn)
{
setObjectName(QStringLiteral("QSystemTrayIconSys"));
#if QT_CONFIG(tooltip)
setToolTip(q->toolTip());
#endif
setAttribute(Qt::WA_AlwaysShowToolTips, true);
setAttribute(Qt::WA_QuitOnClose, false);
const QSize size(22, 22); // Gnome, standard size