1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-20 07:49:42 +01:00

Show horizontal column-view scrollbar as needed.

This commit is contained in:
Christian Muehlhaeuser 2015-04-10 07:09:12 +02:00
parent f6a8b81298
commit edbd14f4d0

View File

@ -135,14 +135,7 @@ ColumnView::setTreeModel( TreeModel* model )
guid(); // this will set the guid on the header
if ( m_proxyModel->style() == PlayableProxyModel::SingleColumn )
{
setHorizontalScrollBarPolicy( Qt::ScrollBarAlwaysOff );
}
else
{
setHorizontalScrollBarPolicy( Qt::ScrollBarAsNeeded );
}
setHorizontalScrollBarPolicy( Qt::ScrollBarAsNeeded );
connect( model, SIGNAL( changed() ), this, SIGNAL( modelChanged() ) );
emit modelChanged();