33 if (
event->type() == QEvent::ToolTip )
35 const QString description = currentData( Qt::ToolTipRole ).toString();
36 if ( !description.isEmpty() )
38 QHelpEvent *helpEvent =
static_cast< QHelpEvent *
>(
event );
39 QPoint pos = mapToGlobal( helpEvent->pos() );
40 QToolTip::showText( pos, description );
44 return QComboBox::event(
event );