diff --git a/src/controls/QskSegmentedBar.cpp b/src/controls/QskSegmentedBar.cpp index dca664b6..b9b1c94a 100644 --- a/src/controls/QskSegmentedBar.cpp +++ b/src/controls/QskSegmentedBar.cpp @@ -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 ) diff --git a/src/controls/QskSubWindowArea.cpp b/src/controls/QskSubWindowArea.cpp index 90320f81..f50e2394 100644 --- a/src/controls/QskSubWindowArea.cpp +++ b/src/controls/QskSubWindowArea.cpp @@ -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;