deprecation warnings fixed
This commit is contained in:
parent
28d9b7385f
commit
dae4ee02d5
|
@ -179,7 +179,7 @@ QskAspect::Placement QskSegmentedBar::effectivePlacement() const
|
||||||
|
|
||||||
void QskSegmentedBar::mousePressEvent( QMouseEvent* event )
|
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 )
|
if( index < 0 || index >= count() || !m_data->options[ index ].isEnabled )
|
||||||
return;
|
return;
|
||||||
|
@ -203,7 +203,7 @@ void QskSegmentedBar::mouseReleaseEvent( QMouseEvent* event )
|
||||||
if( m_data->isPressed )
|
if( m_data->isPressed )
|
||||||
{
|
{
|
||||||
m_data->isPressed = false;
|
m_data->isPressed = false;
|
||||||
index = indexAtPosition( event->localPos() );
|
index = indexAtPosition( qskMousePosition( event ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
if( index < 0 || !m_data->options[ index ].isEnabled )
|
if( index < 0 || !m_data->options[ index ].isEnabled )
|
||||||
|
|
|
@ -204,12 +204,12 @@ bool QskSubWindowArea::mouseEventFilter( QskSubWindow* window, const QMouseEvent
|
||||||
window->setFocus( true );
|
window->setFocus( true );
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
// how to handle not to be process visual
|
if ( window->titleBarRect().contains( qskMousePosition( event ) ) )
|
||||||
// changes for double click events ???
|
|
||||||
if ( window->titleBarRect().contains( event->localPos() ) )
|
|
||||||
{
|
{
|
||||||
// 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
|
#endif
|
||||||
bool doDrag = !m_data->isDraggableByHeaderOnly;
|
bool doDrag = !m_data->isDraggableByHeaderOnly;
|
||||||
|
|
Loading…
Reference in New Issue