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

Fix scrolling the ColumnView to the PreviewWidget on first try.

This commit is contained in:
Teo Mrnjavac
2014-01-09 17:59:11 +01:00
parent adcca37376
commit abdf5ba1ac
2 changed files with 4 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
*
* Copyright 2010-2013, Christian Muehlhaeuser <muesli@tomahawk-player.org>
* Copyright 2014, Teo Mrnjavac <teo@kde.org>
*
* Tomahawk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -154,7 +155,8 @@ ColumnView::setTreeModel( TreeModel* model )
sortByColumn( PlayableModel::Artist, Qt::AscendingOrder );*/
QList< int > widths;
widths << m_previewWidget->minimumSize().width() + 32;
int baseUnit = m_previewWidget->minimumSize().width() + 32;
widths << baseUnit << baseUnit << baseUnit << baseUnit;
setColumnWidths( widths );
}

View File

@@ -2,6 +2,7 @@
*
* Copyright 2010-2011, Christian Muehlhaeuser <muesli@tomahawk-player.org>
* Copyright 2010-2012, Jeff Mitchell <jeff@tomahawk-player.org>
* Copyright 2014, Teo Mrnjavac <teo@kde.org>
*
* Tomahawk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by