1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-18 11:51:44 +02:00

Show horizontal column-view scrollbar as needed.

This commit is contained in:
Christian Muehlhaeuser
2015-04-10 07:09:12 +02:00
parent 6d611bf718
commit 031f8b7a04

View File

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