scrollbars fixed

This commit is contained in:
Uwe Rathmann 2017-10-25 17:10:50 +02:00
parent 958b609306
commit dcb02e9a72
2 changed files with 5 additions and 1 deletions

View File

@ -236,7 +236,7 @@ QskInputPanel::QskInputPanel( QQuickItem* parent ):
m_data( new PrivateData )
{
setFlag( ItemHasContents );
setAcceptedMouseButtons( Qt::MouseButtonMask );
setAcceptedMouseButtons( Qt::LeftButton );
initSizePolicy( QskSizePolicy::Expanding, QskSizePolicy::Expanding );

View File

@ -255,8 +255,12 @@ void QskListView::mousePressEvent( QMouseEvent* event )
const int row = ( event->pos().y() - vr.top() + scrollPos().y() ) / rowHeight();
if ( row >= 0 && row < rowCount() )
setSelectedRow( row );
return;
}
}
Inherited::mousePressEvent( event );
}
void QskListView::mouseReleaseEvent( QMouseEvent* event )