diff --git a/src/libtomahawk/widgets/whatshotwidget.cpp b/src/libtomahawk/widgets/whatshotwidget.cpp index 3f8daaa9c..e3ebd08e2 100644 --- a/src/libtomahawk/widgets/whatshotwidget.cpp +++ b/src/libtomahawk/widgets/whatshotwidget.cpp @@ -30,6 +30,7 @@ #include "playlist/playlistmodel.h" #include "playlist/treeproxymodel.h" #include "widgets/overlaywidget.h" +#include "widgets/siblingcrumbbutton.h" #include "utils/tomahawkutils.h" #include "utils/logger.h" #include @@ -51,8 +52,14 @@ WhatsHotWidget::WhatsHotWidget( QWidget* parent ) 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() ); + + SiblingCrumbButtonFactory * crumbFactory = new SiblingCrumbButtonFactory; + + ui->breadCrumbLeft->setButtonFactory(crumbFactory); + ui->breadCrumbLeft->setRootIcon(QIcon( RESPATH "images/charts.png" )); + + ui->breadCrumbRight->setButtonFactory(crumbFactory); + ui->breadCrumbRight->setRootIcon(QIcon( RESPATH "images/charts.png" )); m_tracksModel = new PlaylistModel( ui->tracksView ); diff --git a/src/libtomahawk/widgets/whatshotwidget.ui b/src/libtomahawk/widgets/whatshotwidget.ui index 37c35bb7f..1d535aa91 100644 --- a/src/libtomahawk/widgets/whatshotwidget.ui +++ b/src/libtomahawk/widgets/whatshotwidget.ui @@ -14,67 +14,7 @@ - - - - - - QComboBox::AdjustToContentsOnFirstShow - - - - 0 - 0 - - - - - Billboard - - - - - Last.fm - - - - - iTunes - - - - - - - - - - - - - Qt::Horizontal - - - - 40 - 5 - - - - - - - - QComboBox::AdjustToContentsOnFirstShow - - - - Top 100 Tracks - - - - - + @@ -92,67 +32,7 @@ - - - - - - QComboBox::AdjustToContentsOnFirstShow - - - - 0 - 0 - - - - - Billboard - - - - - Last.fm - - - - - iTunes - - - - - - - - - - - - - Qt::Horizontal - - - - 40 - 5 - - - - - - - - QComboBox::AdjustToContentsOnFirstShow - - - - Top 100 Tracks - - - - - + @@ -181,14 +61,9 @@
artistview.h
- ComboBox - QComboBox -
widgets/combobox.h
-
- - HeaderWidget + HeaderBreadCrumb QWidget -
widgets/HeaderWidget.h
+
widgets/headerbreadcrumb.h