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:
@@ -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 );
|
||||
}
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user