radio box: Don't reset the selected index when pressing it

We need this to style the control correctly
This commit is contained in:
Peter Hartmann 2023-05-05 17:14:14 +02:00 committed by uwerat
parent b9fa8b3b34
commit d61780971c
1 changed files with 0 additions and 1 deletions

View File

@ -201,7 +201,6 @@ void QskRadioBox::mousePressEvent( QMouseEvent* event )
auto indexAtPosition = indexAt( qskMousePosition( event ) ); auto indexAtPosition = indexAt( qskMousePosition( event ) );
m_data->pressedIndex = indexAtPosition; m_data->pressedIndex = indexAtPosition;
m_data->selectedIndex = -1;
setFocusedIndex( indexAtPosition ); setFocusedIndex( indexAtPosition );
update(); update();