deprecation warnings fixed

This commit is contained in:
Uwe Rathmann 2022-05-02 16:51:24 +02:00
parent 28d9b7385f
commit dae4ee02d5
2 changed files with 7 additions and 7 deletions

View File

@ -179,7 +179,7 @@ QskAspect::Placement QskSegmentedBar::effectivePlacement() const
void QskSegmentedBar::mousePressEvent( QMouseEvent* event )
{
const int index = indexAtPosition( event->localPos() );
const int index = indexAtPosition( qskMousePosition( event ) );
if( index < 0 || index >= count() || !m_data->options[ index ].isEnabled )
return;
@ -203,7 +203,7 @@ void QskSegmentedBar::mouseReleaseEvent( QMouseEvent* event )
if( m_data->isPressed )
{
m_data->isPressed = false;
index = indexAtPosition( event->localPos() );
index = indexAtPosition( qskMousePosition( event ) );
}
if( index < 0 || !m_data->options[ index ].isEnabled )

View File

@ -204,12 +204,12 @@ bool QskSubWindowArea::mouseEventFilter( QskSubWindow* window, const QMouseEvent
window->setFocus( true );
#if 0
// how to handle not to be process visual
// changes for double click events ???
if ( window->titleBarRect().contains( event->localPos() ) )
if ( window->titleBarRect().contains( qskMousePosition( event ) ) )
{
// block button press until we know it is no double click
///QGuiApplication::styleHints()->mouseDoubleClickInterval()
/*
block button press until we know it is no double click.
QGuiApplication::styleHints()->mouseDoubleClickInterval()
*/
}
#endif
bool doDrag = !m_data->isDraggableByHeaderOnly;