mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-11 00:24:12 +02:00
Show horizontal column-view scrollbar as needed.
This commit is contained in:
@@ -135,14 +135,7 @@ ColumnView::setTreeModel( TreeModel* model )
|
|||||||
|
|
||||||
guid(); // this will set the guid on the header
|
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() ) );
|
connect( model, SIGNAL( changed() ), this, SIGNAL( modelChanged() ) );
|
||||||
emit modelChanged();
|
emit modelChanged();
|
||||||
|
Reference in New Issue
Block a user