recalculate the scrollable size on skin changes

This commit is contained in:
Uwe Rathmann 2023-07-03 16:45:18 +02:00
parent aa5b2aaefa
commit 9550ca62fc
2 changed files with 10 additions and 0 deletions

View File

@ -276,6 +276,14 @@ void QskListView::mouseReleaseEvent( QMouseEvent* event )
Inherited::mouseReleaseEvent( event );
}
void QskListView::changeEvent( QEvent* event )
{
if ( event->type() == QEvent::StyleChange )
updateScrollableSize();
Inherited::changeEvent( event );
}
#ifndef QT_NO_WHEELEVENT
static qreal qskAlignedToRows( const qreal y0, qreal dy,

View File

@ -87,6 +87,8 @@ class QSK_EXPORT QskListView : public QskScrollView
void textOptionsChanged();
protected:
void changeEvent( QEvent* ) override;
void keyPressEvent( QKeyEvent* ) override;
void keyReleaseEvent( QKeyEvent* ) override;