mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
* Slight improvements for artist page.
This commit is contained in:
@@ -108,15 +108,10 @@ ArtistInfoWidget::ArtistInfoWidget( const Tomahawk::artist_ptr& artist, QWidget*
|
|||||||
ui->biography->setFont( f );
|
ui->biography->setFont( f );
|
||||||
TomahawkUtils::styleScrollBar( ui->biography->verticalScrollBar() );
|
TomahawkUtils::styleScrollBar( ui->biography->verticalScrollBar() );
|
||||||
|
|
||||||
f.setBold( true );
|
|
||||||
f.setPointSize( TomahawkUtils::defaultFontSize() + 8 );
|
|
||||||
ui->artistLabel->setFont( f );
|
|
||||||
|
|
||||||
QPalette p = ui->biography->palette();
|
QPalette p = ui->biography->palette();
|
||||||
p.setColor( QPalette::Foreground, Qt::white );
|
p.setColor( QPalette::Foreground, Qt::white );
|
||||||
p.setColor( QPalette::Text, Qt::gray );
|
p.setColor( QPalette::Text, Qt::gray );
|
||||||
|
|
||||||
ui->artistLabel->setPalette( p );
|
|
||||||
ui->biography->setPalette( p );
|
ui->biography->setPalette( p );
|
||||||
ui->label->setPalette( p );
|
ui->label->setPalette( p );
|
||||||
ui->label_2->setPalette( p );
|
ui->label_2->setPalette( p );
|
||||||
@@ -254,7 +249,6 @@ ArtistInfoWidget::load( const artist_ptr& artist )
|
|||||||
connect( m_artist.data(), SIGNAL( tracksAdded( QList<Tomahawk::query_ptr>, Tomahawk::ModelMode, Tomahawk::collection_ptr ) ),
|
connect( m_artist.data(), SIGNAL( tracksAdded( QList<Tomahawk::query_ptr>, Tomahawk::ModelMode, Tomahawk::collection_ptr ) ),
|
||||||
SLOT( onTracksFound( QList<Tomahawk::query_ptr>, Tomahawk::ModelMode ) ) );
|
SLOT( onTracksFound( QList<Tomahawk::query_ptr>, Tomahawk::ModelMode ) ) );
|
||||||
|
|
||||||
ui->artistLabel->setText( artist->name() );
|
|
||||||
ui->cover->setArtist( artist );
|
ui->cover->setArtist( artist );
|
||||||
|
|
||||||
m_topHitsModel->startLoading();
|
m_topHitsModel->startLoading();
|
||||||
|
@@ -43,32 +43,6 @@
|
|||||||
<property name="margin">
|
<property name="margin">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="artistLabel">
|
|
||||||
<property name="text">
|
|
||||||
<string>Artist</string>
|
|
||||||
</property>
|
|
||||||
<property name="alignment">
|
|
||||||
<set>Qt::AlignCenter</set>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<spacer name="verticalSpacer_8">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Vertical</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeType">
|
|
||||||
<enum>QSizePolicy::Fixed</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>20</width>
|
|
||||||
<height>4</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
<item>
|
<item>
|
||||||
<widget class="PlayableCover" name="cover">
|
<widget class="PlayableCover" name="cover">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
@@ -79,8 +53,8 @@
|
|||||||
</property>
|
</property>
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>220</width>
|
<width>260</width>
|
||||||
<height>220</height>
|
<height>260</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
Reference in New Issue
Block a user