diff --git a/src/libtomahawk/playlist/PlayableModel.h b/src/libtomahawk/playlist/PlayableModel.h index deacf8720..9eb3388d0 100644 --- a/src/libtomahawk/playlist/PlayableModel.h +++ b/src/libtomahawk/playlist/PlayableModel.h @@ -57,6 +57,8 @@ public: explicit PlayableModel( QObject* parent = 0, bool loading = true ); virtual ~PlayableModel(); + virtual QString guid() const { return QString(); } + virtual QModelIndex index( int row, int column, const QModelIndex& parent ) const; virtual QModelIndex parent( const QModelIndex& child ) const; diff --git a/src/libtomahawk/playlist/PlayableProxyModel.cpp b/src/libtomahawk/playlist/PlayableProxyModel.cpp index 67bc6ae5c..03427bcaa 100644 --- a/src/libtomahawk/playlist/PlayableProxyModel.cpp +++ b/src/libtomahawk/playlist/PlayableProxyModel.cpp @@ -49,6 +49,18 @@ PlayableProxyModel::PlayableProxyModel( QObject* parent ) } +QString +PlayableProxyModel::guid() const +{ + if ( m_model ) + { + return m_model->guid(); + } + else + return QString(); +} + + bool PlayableProxyModel::isLoading() const { @@ -554,7 +566,7 @@ PlayableProxyModel::columnWeights() const case Detailed: default: - w << 0.16 << 0.16 << 0.14 << 0.12 << 0.05 << 0.05 << 0.05 << 0.05 << 0.05 << 0.05 << 0.09; // << 0.03; + w << 0.15 << 0.15 << 0.12 << 0.12 << 0.05 << 0.05 << 0.05 << 0.05 << 0.05 << 0.05 << 0.09; // << 0.03; break; } diff --git a/src/libtomahawk/playlist/PlayableProxyModel.h b/src/libtomahawk/playlist/PlayableProxyModel.h index 3c689f167..f2df0a433 100644 --- a/src/libtomahawk/playlist/PlayableProxyModel.h +++ b/src/libtomahawk/playlist/PlayableProxyModel.h @@ -41,6 +41,8 @@ public: explicit PlayableProxyModel ( QObject* parent = 0 ); virtual ~PlayableProxyModel() {} + virtual QString guid() const; + virtual PlayableModel* sourceModel() const { return m_model; } virtual void setSourcePlayableModel( PlayableModel* sourceModel ); virtual void setSourceModel( QAbstractItemModel* model );