|
34 | 34 | #include "ViewManager.h" |
35 | 35 | #include "playlist/dynamic/DynamicView.h" |
36 | 36 | #include "DynamicSetupWidget.h" |
| 37 | +#include "widgets/BasicHeader.h" |
37 | 38 | #include "utils/AnimatedSpinner.h" |
38 | 39 | #include "utils/TomahawkUtilsGui.h" |
39 | 40 | #include "utils/Logger.h" |
@@ -64,6 +65,9 @@ DynamicWidget::DynamicWidget( const Tomahawk::dynplaylist_ptr& playlist, QWidget |
64 | 65 | , m_view( 0 ) |
65 | 66 | , m_model() |
66 | 67 | { |
| 68 | + m_header = new BasicHeader; |
| 69 | + m_layout->addWidget( m_header ); |
| 70 | + |
67 | 71 | m_controls = new CollapsibleControls( this ); |
68 | 72 | m_layout->addWidget( m_controls ); |
69 | 73 | setContentsMargins( 0, 0, 0, 1 ); // to align the bottom with the bottom of the sourcelist |
@@ -163,7 +167,7 @@ DynamicWidget::loadDynamicPlaylist( const Tomahawk::dynplaylist_ptr& playlist ) |
163 | 167 | m_model->loadPlaylist( m_playlist ); |
164 | 168 | m_controlsChanged = false; |
165 | 169 | m_setup->setPlaylist( m_playlist ); |
166 | | - |
| 170 | + m_header->setCaption( m_playlist->title() ); |
167 | 171 |
|
168 | 172 | if ( !m_playlist->author()->isLocal() ) // hide controls, as we show the description in the summary |
169 | 173 | m_layout->removeWidget( m_controls ); |
@@ -551,5 +555,8 @@ DynamicWidget::onChanged() |
551 | 555 | { |
552 | 556 | if ( !m_playlist.isNull() && |
553 | 557 | ViewManager::instance()->currentPage() == this ) |
554 | | - emit nameChanged( m_playlist->title() ); |
| 558 | + { |
| 559 | + m_header->setCaption( m_playlist->title() ); |
| 560 | + emit nameChanged( m_playlist->title() ); |
| 561 | + } |
555 | 562 | } |
0 commit comments