mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 22:26:32 +02:00
* Moved some page-impl out of the headers.
This commit is contained in:
@@ -269,3 +269,13 @@ AlbumInfoWidget::changeEvent( QEvent* e )
|
|||||||
break;
|
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 title() const { return m_title; }
|
||||||
virtual QString description() const { return m_description; }
|
virtual QString description() const { return m_description; }
|
||||||
virtual QString longDescription() const { return m_longDescription; }
|
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 isTemporaryPage() const { return true; }
|
||||||
virtual bool showInfoBar() const { return false; }
|
virtual bool showInfoBar() const { return false; }
|
||||||
|
@@ -108,6 +108,7 @@ ArtistInfoWidget::ArtistInfoWidget( const Tomahawk::artist_ptr& artist, QWidget*
|
|||||||
l->addWidget( m_playStatsGauge );
|
l->addWidget( m_playStatsGauge );
|
||||||
l->addSpacerItem( new QSpacerItem( 0, 1, QSizePolicy::Minimum, QSizePolicy::MinimumExpanding ) );
|
l->addSpacerItem( new QSpacerItem( 0, 1, QSizePolicy::Minimum, QSizePolicy::MinimumExpanding ) );
|
||||||
ui->statsWidget->setLayout( l );
|
ui->statsWidget->setLayout( l );
|
||||||
|
TomahawkUtils::unmarginLayout( l );
|
||||||
|
|
||||||
m_pixmap = TomahawkUtils::defaultPixmap( TomahawkUtils::DefaultArtistImage, TomahawkUtils::Original, QSize( 48, 48 ) );
|
m_pixmap = TomahawkUtils::defaultPixmap( TomahawkUtils::DefaultArtistImage, TomahawkUtils::Original, QSize( 48, 48 ) );
|
||||||
ui->cover->setPixmap( TomahawkUtils::defaultPixmap( TomahawkUtils::DefaultArtistImage, TomahawkUtils::Grid, ui->cover->size() ) );
|
ui->cover->setPixmap( TomahawkUtils::defaultPixmap( TomahawkUtils::DefaultArtistImage, TomahawkUtils::Grid, ui->cover->size() ) );
|
||||||
@@ -379,3 +380,13 @@ ArtistInfoWidget::changeEvent( QEvent* e )
|
|||||||
break;
|
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 title() const { return m_title; }
|
||||||
virtual QString description() const { return m_description; }
|
virtual QString description() const { return m_description; }
|
||||||
virtual QString longDescription() const { return m_longDescription; }
|
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 isTemporaryPage() const { return true; }
|
||||||
virtual bool showInfoBar() const { return false; }
|
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 ) );
|
l->addSpacerItem( new QSpacerItem( 0, 1, QSizePolicy::Minimum, QSizePolicy::MinimumExpanding ) );
|
||||||
ui->statsWidget->setLayout( l );
|
ui->statsWidget->setLayout( l );
|
||||||
ui->statsLabel->setVisible( false );
|
ui->statsLabel->setVisible( false );
|
||||||
|
TomahawkUtils::unmarginLayout( l );
|
||||||
|
|
||||||
QVBoxLayout* layout = new QVBoxLayout();
|
QVBoxLayout* layout = new QVBoxLayout();
|
||||||
layout->addWidget( m_scrollArea );
|
layout->addWidget( m_scrollArea );
|
||||||
@@ -309,3 +310,13 @@ TrackInfoWidget::changeEvent( QEvent* e )
|
|||||||
break;
|
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 title() const { return m_title; }
|
||||||
virtual QString description() const { return QString(); }
|
virtual QString description() const { return QString(); }
|
||||||
virtual QString longDescription() 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 isBeingPlayed() const;
|
||||||
virtual bool isTemporaryPage() const { return true; }
|
virtual bool isTemporaryPage() const { return true; }
|
||||||
|
@@ -149,7 +149,7 @@
|
|||||||
<widget class="QWidget" name="statsWidget" native="true">
|
<widget class="QWidget" name="statsWidget" native="true">
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>450</width>
|
<width>440</width>
|
||||||
<height>240</height>
|
<height>240</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
|
Reference in New Issue
Block a user