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