124 + case QEvent::MouseButtonDblClick: 125 + QMetaObject::invokeMethod(m_widget, "menuBarDblClicked");
and
145 + QMetaObject::invokeMethod(m_widget, "menuBarDragged", 146 + Q_ARG(QPoint*, &m_dragStartPosition));
Is there any particular reason why you used invokeMethod instead of using qobject_cast<MenuBarWidget*>(m_widget) and they if the cast succeeded just call the method directly ?
« Back to merge proposal
124 + case QEvent: :MouseButtonDbl Click: :invokeMethod( m_widget, "menuBarDblClic ked");
125 + QMetaObject:
and
145 + QMetaObject: :invokeMethod( m_widget, "menuBarDragged", ition)) ;
146 + Q_ARG(QPoint*, &m_dragStartPos
Is there any particular reason why you used invokeMethod instead of using qobject_ cast<MenuBarWid get*>(m_ widget) and they if the cast succeeded just call the method directly ?