mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-19 23:39:42 +01:00
* Moved some page-impl out of the headers.
This commit is contained in:
parent
678ba4f403
commit
fc5a2fefc7
@ -269,3 +269,13 @@ AlbumInfoWidget::changeEvent( QEvent* e )
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
QPixmap
|
||||
AlbumInfoWidget::pixmap() const
|
||||
{
|
||||
if ( m_pixmap.isNull() )
|
||||
return Tomahawk::ViewPage::pixmap();
|
||||
else
|
||||
return m_pixmap;
|
||||
}
|
||||
|
@ -64,7 +64,7 @@ public:
|
||||
virtual QString title() const { return m_title; }
|
||||
virtual QString description() const { return m_description; }
|
||||
virtual QString longDescription() const { return m_longDescription; }
|
||||
virtual QPixmap pixmap() const { if ( m_pixmap.isNull() ) return Tomahawk::ViewPage::pixmap(); else return m_pixmap; }
|
||||
virtual QPixmap pixmap() const;
|
||||
|
||||
virtual bool isTemporaryPage() const { return true; }
|
||||
virtual bool showInfoBar() const { return false; }
|
||||
|
@ -108,6 +108,7 @@ ArtistInfoWidget::ArtistInfoWidget( const Tomahawk::artist_ptr& artist, QWidget*
|
||||
l->addWidget( m_playStatsGauge );
|
||||
l->addSpacerItem( new QSpacerItem( 0, 1, QSizePolicy::Minimum, QSizePolicy::MinimumExpanding ) );
|
||||
ui->statsWidget->setLayout( l );
|
||||
TomahawkUtils::unmarginLayout( l );
|
||||
|
||||
m_pixmap = TomahawkUtils::defaultPixmap( TomahawkUtils::DefaultArtistImage, TomahawkUtils::Original, QSize( 48, 48 ) );
|
||||
ui->cover->setPixmap( TomahawkUtils::defaultPixmap( TomahawkUtils::DefaultArtistImage, TomahawkUtils::Grid, ui->cover->size() ) );
|
||||
@ -379,3 +380,13 @@ ArtistInfoWidget::changeEvent( QEvent* e )
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
QPixmap
|
||||
ArtistInfoWidget::pixmap() const
|
||||
{
|
||||
if ( m_pixmap.isNull() )
|
||||
return Tomahawk::ViewPage::pixmap();
|
||||
else
|
||||
return m_pixmap;
|
||||
}
|
||||
|
@ -75,7 +75,7 @@ public:
|
||||
virtual QString title() const { return m_title; }
|
||||
virtual QString description() const { return m_description; }
|
||||
virtual QString longDescription() const { return m_longDescription; }
|
||||
virtual QPixmap pixmap() const { if ( m_pixmap.isNull() ) return Tomahawk::ViewPage::pixmap(); else return m_pixmap; }
|
||||
virtual QPixmap pixmap() const;
|
||||
|
||||
virtual bool isTemporaryPage() const { return true; }
|
||||
virtual bool showInfoBar() const { return false; }
|
||||
|
@ -112,6 +112,7 @@ TrackInfoWidget::TrackInfoWidget( const Tomahawk::query_ptr& query, QWidget* par
|
||||
l->addSpacerItem( new QSpacerItem( 0, 1, QSizePolicy::Minimum, QSizePolicy::MinimumExpanding ) );
|
||||
ui->statsWidget->setLayout( l );
|
||||
ui->statsLabel->setVisible( false );
|
||||
TomahawkUtils::unmarginLayout( l );
|
||||
|
||||
QVBoxLayout* layout = new QVBoxLayout();
|
||||
layout->addWidget( m_scrollArea );
|
||||
@ -309,3 +310,13 @@ TrackInfoWidget::changeEvent( QEvent* e )
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
QPixmap
|
||||
TrackInfoWidget::pixmap() const
|
||||
{
|
||||
if ( m_pixmap.isNull() )
|
||||
return Tomahawk::ViewPage::pixmap();
|
||||
else
|
||||
return m_pixmap;
|
||||
}
|
||||
|
@ -64,7 +64,7 @@ public:
|
||||
virtual QString title() const { return m_title; }
|
||||
virtual QString description() const { return QString(); }
|
||||
virtual QString longDescription() const { return QString(); }
|
||||
virtual QPixmap pixmap() const { if ( m_pixmap.isNull() ) return Tomahawk::ViewPage::pixmap(); else return m_pixmap; }
|
||||
virtual QPixmap pixmap() const;
|
||||
|
||||
virtual bool isBeingPlayed() const;
|
||||
virtual bool isTemporaryPage() const { return true; }
|
||||
|
@ -149,7 +149,7 @@
|
||||
<widget class="QWidget" name="statsWidget" native="true">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>450</width>
|
||||
<width>440</width>
|
||||
<height>240</height>
|
||||
</size>
|
||||
</property>
|
||||
|
Loading…
x
Reference in New Issue
Block a user