wip
This commit is contained in:
parent
b7e4f10f91
commit
ea36b7da8e
|
@ -451,8 +451,10 @@ QRectF QskMenu::cellRect( int index ) const
|
||||||
|
|
||||||
int QskMenu::indexAtPosition( const QPointF& pos ) const
|
int QskMenu::indexAtPosition( const QPointF& pos ) const
|
||||||
{
|
{
|
||||||
return effectiveSkinlet()->sampleIndexAt(
|
const auto index = effectiveSkinlet()->sampleIndexAt(
|
||||||
this, contentsRect(), QskMenu::Segment, pos );
|
this, contentsRect(), QskMenu::Segment, pos );
|
||||||
|
|
||||||
|
return m_data->actions.value( index, -1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
void QskMenu::trigger( int index )
|
void QskMenu::trigger( int index )
|
||||||
|
|
Loading…
Reference in New Issue