mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 19:30:21 +02:00
* Use SVG images in GridItemDelegate and PlayableCover.
This commit is contained in:
@@ -320,8 +320,8 @@ GridItemDelegate::editorEvent( QEvent* event, QAbstractItemModel* model, const Q
|
||||
m_playButton.clear();
|
||||
|
||||
ImageButton* button = new ImageButton( m_view );
|
||||
button->setPixmap( RESPATH "images/play-rest.png" );
|
||||
button->setPixmap( RESPATH "images/play-pressed.png", QIcon::Off, QIcon::Active );
|
||||
button->setPixmap( TomahawkUtils::defaultPixmap( TomahawkUtils::PlayButton, TomahawkUtils::Original, QSize( 48, 48 ) ) );
|
||||
button->setPixmap( TomahawkUtils::defaultPixmap( TomahawkUtils::PlayButtonPressed, TomahawkUtils::Original, QSize( 48, 48 ) ), QIcon::Off, QIcon::Active );
|
||||
button->setFixedSize( 48, 48 );
|
||||
button->move( option.rect.center() - QPoint( 23, 23 ) );
|
||||
button->setContentsMargins( 0, 0, 0, 0 );
|
||||
@@ -534,8 +534,8 @@ GridItemDelegate::onPlaybackStarted( const QPersistentModelIndex& index )
|
||||
m_spinner.clear();
|
||||
|
||||
ImageButton* button = new ImageButton( m_view );
|
||||
button->setPixmap( RESPATH "images/pause-rest.png" );
|
||||
button->setPixmap( RESPATH "images/pause-pressed.png", QIcon::Off, QIcon::Active );
|
||||
button->setPixmap( TomahawkUtils::defaultPixmap( TomahawkUtils::PauseButton, TomahawkUtils::Original, QSize( 48, 48 ) ) );
|
||||
button->setPixmap( TomahawkUtils::defaultPixmap( TomahawkUtils::PauseButtonPressed, TomahawkUtils::Original, QSize( 48, 48 ) ), QIcon::Off, QIcon::Active );
|
||||
button->setFixedSize( 48, 48 );
|
||||
button->move( pos );
|
||||
button->setContentsMargins( 0, 0, 0, 0 );
|
||||
|
@@ -20,7 +20,7 @@
|
||||
|
||||
#include "audio/AudioEngine.h"
|
||||
#include "widgets/ImageButton.h"
|
||||
#include "utils/TomahawkUtils.h"
|
||||
#include "utils/TomahawkUtilsGui.h"
|
||||
#include "utils/Logger.h"
|
||||
|
||||
#include <QPainter>
|
||||
@@ -32,8 +32,8 @@ PlayableCover::PlayableCover( QWidget* parent )
|
||||
setMouseTracking( true );
|
||||
|
||||
m_button = new ImageButton( this );
|
||||
m_button->setPixmap( RESPATH "images/play-rest.png" );
|
||||
m_button->setPixmap( RESPATH "images/play-pressed.png", QIcon::Off, QIcon::Active );
|
||||
m_button->setPixmap( TomahawkUtils::defaultPixmap( TomahawkUtils::PlayButton, TomahawkUtils::Original, QSize( 48, 48 ) ) );
|
||||
m_button->setPixmap( TomahawkUtils::defaultPixmap( TomahawkUtils::PlayButtonPressed, TomahawkUtils::Original, QSize( 48, 48 ) ), QIcon::Off, QIcon::Active );
|
||||
m_button->setFixedSize( 48, 48 );
|
||||
m_button->setContentsMargins( 0, 0, 0, 0 );
|
||||
m_button->setFocusPolicy( Qt::NoFocus );
|
||||
|
Reference in New Issue
Block a user