subcontrol substitution fixed

This commit is contained in:
Uwe Rathmann 2025-02-04 11:26:39 +01:00
parent 22f0627c56
commit 635691a075
2 changed files with 4 additions and 4 deletions

View File

@ -138,13 +138,13 @@ void QskSwipeView::gestureEvent( QskGestureEvent* event )
Inherited::gestureEvent( event );
}
QskAspect::Subcontrol QskSwipeView::effectiveSubcontrol(
QskAspect::Subcontrol QskSwipeView::substitutedSubcontrol(
QskAspect::Subcontrol subControl ) const
{
if ( subControl == QskBox::Panel )
return QskSwipeView::Panel;
return Inherited::effectiveSubcontrol( subControl );
return Inherited::substitutedSubcontrol( subControl );
}

View File

@ -49,8 +49,6 @@ class QSK_EXPORT QskSwipeView : public QskStackBox
void setSwipeDistance( int );
void resetSwipeDistance();
QskAspect::Subcontrol effectiveSubcontrol( QskAspect::Subcontrol ) const;
Q_SIGNALS:
void orientationChanged( Qt::Orientation );
void durationChanged( int );
@ -58,6 +56,8 @@ class QSK_EXPORT QskSwipeView : public QskStackBox
protected:
void gestureEvent( QskGestureEvent* ) override;
QskAspect::Subcontrol substitutedSubcontrol( QskAspect::Subcontrol ) const override;
private:
void setAnimator( QskStackBoxAnimator* ) = delete;