mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +02:00
Removed TopHits view from Album page until we actually use it.
This commit is contained in:
@@ -61,10 +61,10 @@ AlbumInfoWidget::AlbumInfoWidget( const Tomahawk::album_ptr& album, QWidget* par
|
|||||||
ui->albumView->trackView()->setPlayableModel( m_tracksModel );
|
ui->albumView->trackView()->setPlayableModel( m_tracksModel );
|
||||||
ui->albumView->setCaption( tr( "Album Details" ) );
|
ui->albumView->setCaption( tr( "Album Details" ) );
|
||||||
|
|
||||||
ui->topHits->setStyleSheet( QString( "QListView { background-color: %1; }" ).arg( TomahawkStyle::PAGE_BACKGROUND.name() ) );
|
/* ui->topHits->setStyleSheet( QString( "QListView { background-color: %1; }" ).arg( TomahawkStyle::PAGE_BACKGROUND.name() ) );
|
||||||
TomahawkStyle::stylePageFrame( ui->trackFrame );
|
TomahawkStyle::stylePageFrame( ui->trackFrame );
|
||||||
ui->topHits->setVisible( false );
|
ui->topHits->setVisible( false );
|
||||||
ui->topHitsLabel->setVisible( false );
|
ui->topHitsLabel->setVisible( false );*/
|
||||||
|
|
||||||
{
|
{
|
||||||
/* QScrollArea* area = new QScrollArea();
|
/* QScrollArea* area = new QScrollArea();
|
||||||
@@ -87,7 +87,7 @@ AlbumInfoWidget::AlbumInfoWidget( const Tomahawk::album_ptr& album, QWidget* par
|
|||||||
}
|
}
|
||||||
|
|
||||||
MetaPlaylistInterface* mpl = new MetaPlaylistInterface();
|
MetaPlaylistInterface* mpl = new MetaPlaylistInterface();
|
||||||
mpl->addChildInterface( ui->topHits->playlistInterface() );
|
// mpl->addChildInterface( ui->topHits->playlistInterface() );
|
||||||
mpl->addChildInterface( ui->albumView->playlistInterface() );
|
mpl->addChildInterface( ui->albumView->playlistInterface() );
|
||||||
m_playlistInterface = playlistinterface_ptr( mpl );
|
m_playlistInterface = playlistinterface_ptr( mpl );
|
||||||
|
|
||||||
@@ -115,8 +115,8 @@ AlbumInfoWidget::isBeingPlayed() const
|
|||||||
if ( ui->albumView && ui->albumView->isBeingPlayed() )
|
if ( ui->albumView && ui->albumView->isBeingPlayed() )
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
if ( ui->topHits && ui->topHits->playlistInterface() == AudioEngine::instance()->currentTrackPlaylist() )
|
/* if ( ui->topHits && ui->topHits->playlistInterface() == AudioEngine::instance()->currentTrackPlaylist() )
|
||||||
return true;
|
return true;*/
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@@ -17,7 +17,16 @@
|
|||||||
<property name="spacing">
|
<property name="spacing">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="margin">
|
<property name="leftMargin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="topMargin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="rightMargin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="bottomMargin">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<item>
|
<item>
|
||||||
@@ -30,72 +39,9 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
|
||||||
<widget class="QFrame" name="trackFrame">
|
|
||||||
<property name="frameShape">
|
|
||||||
<enum>QFrame::StyledPanel</enum>
|
|
||||||
</property>
|
|
||||||
<property name="frameShadow">
|
|
||||||
<enum>QFrame::Raised</enum>
|
|
||||||
</property>
|
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_6">
|
|
||||||
<property name="spacing">
|
|
||||||
<number>4</number>
|
|
||||||
</property>
|
|
||||||
<property name="leftMargin">
|
|
||||||
<number>32</number>
|
|
||||||
</property>
|
|
||||||
<property name="topMargin">
|
|
||||||
<number>4</number>
|
|
||||||
</property>
|
|
||||||
<property name="rightMargin">
|
|
||||||
<number>32</number>
|
|
||||||
</property>
|
|
||||||
<property name="bottomMargin">
|
|
||||||
<number>8</number>
|
|
||||||
</property>
|
|
||||||
<item>
|
|
||||||
<widget class="CaptionLabel" name="topHitsLabel">
|
|
||||||
<property name="text">
|
|
||||||
<string>Top Hits</string>
|
|
||||||
</property>
|
|
||||||
<property name="margin">
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="GridView" name="topHits">
|
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>0</width>
|
|
||||||
<height>190</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
|
||||||
<class>GridView</class>
|
|
||||||
<extends>QListView</extends>
|
|
||||||
<header>playlist/GridView.h</header>
|
|
||||||
</customwidget>
|
|
||||||
<customwidget>
|
|
||||||
<class>CaptionLabel</class>
|
|
||||||
<extends>QLabel</extends>
|
|
||||||
<header>widgets/CaptionLabel.h</header>
|
|
||||||
</customwidget>
|
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>ContextView</class>
|
<class>ContextView</class>
|
||||||
<extends>QWidget</extends>
|
<extends>QWidget</extends>
|
||||||
|
Reference in New Issue
Block a user