diff --git a/src/libtomahawk/widgets/whatshotwidget.cpp b/src/libtomahawk/widgets/whatshotwidget.cpp index 429b1f2af..b68649619 100644 --- a/src/libtomahawk/widgets/whatshotwidget.cpp +++ b/src/libtomahawk/widgets/whatshotwidget.cpp @@ -46,18 +46,20 @@ WhatsHotWidget::WhatsHotWidget( QWidget* parent ) : QWidget( parent ) , ui( new Ui::WhatsHotWidget ) { - tDebug() << "WhatsHot: Hello world!"; ui->setupUi( this ); - ui->tracksView->setFrameShape( QFrame::NoFrame ); - ui->tracksView->setAttribute( Qt::WA_MacShowFocusRect, 0 ); TomahawkUtils::unmarginLayout( layout() ); + TomahawkUtils::unmarginLayout( ui->verticalLayout->layout() ); TomahawkUtils::unmarginLayout( ui->verticalLayout_2->layout() ); + TomahawkUtils::unmarginLayout( ui->horizontalLayout->layout() ); + TomahawkUtils::unmarginLayout( ui->horizontalLayout_3->layout() ); m_tracksModel = new PlaylistModel( ui->tracksView ); m_tracksModel->setStyle( TrackModel::Short ); + ui->tracksView->setFrameShape( QFrame::NoFrame ); + ui->tracksView->setAttribute( Qt::WA_MacShowFocusRect, 0 ); ui->tracksView->overlay()->setEnabled( false ); ui->tracksView->setTrackModel( m_tracksModel ); ui->tracksView->setHeaderHidden( true ); @@ -73,6 +75,9 @@ WhatsHotWidget::WhatsHotWidget( QWidget* parent ) ui->artistsView->setProxyModel( m_artistsProxy ); ui->artistsView->setTreeModel( m_artistsModel ); + ui->artistsView->setFrameShape( QFrame::NoFrame ); + ui->artistsView->setAttribute( Qt::WA_MacShowFocusRect, 0 ); + m_artistsProxy->sort( -1 ); // disable sorting, must be called after artistsView->setTreeModel diff --git a/src/libtomahawk/widgets/whatshotwidget.ui b/src/libtomahawk/widgets/whatshotwidget.ui index a1a9d258b..37c35bb7f 100644 --- a/src/libtomahawk/widgets/whatshotwidget.ui +++ b/src/libtomahawk/widgets/whatshotwidget.ui @@ -10,64 +10,166 @@ 513 - + - - - Qt::Horizontal - - - - - - - Top Tracks - - - - - - - - 320 - 0 - - - - - - - - - - - - Top Artists - - - - - - - - 320 - 0 - - - - - - - + + + + + + + + QComboBox::AdjustToContentsOnFirstShow + + + + 0 + 0 + + + + + Billboard + + + + + Last.fm + + + + + iTunes + + + + + + + + + + + + + Qt::Horizontal + + + + 40 + 5 + + + + + + + + QComboBox::AdjustToContentsOnFirstShow + + + + Top 100 Tracks + + + + + + + + + + + + 320 + 0 + + + + + + + + + + + + + + + QComboBox::AdjustToContentsOnFirstShow + + + + 0 + 0 + + + + + Billboard + + + + + Last.fm + + + + + iTunes + + + + + + + + + + + + + Qt::Horizontal + + + + 40 + 5 + + + + + + + + QComboBox::AdjustToContentsOnFirstShow + + + + Top 100 Tracks + + + + + + + + + + + + 320 + 0 + + + + + - - HeaderLabel - QLabel -
widgets/HeaderLabel.h
-
PlaylistView QTreeView @@ -78,6 +180,16 @@ QTreeView
artistview.h
+ + ComboBox + QComboBox +
widgets/combobox.h
+
+ + HeaderWidget + QWidget +
widgets/HeaderWidget.h
+