mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-08 23:26:40 +02:00
* DRY and style cleanups.
This commit is contained in:
@@ -97,16 +97,12 @@ ViewManager::ViewManager( QObject* parent )
|
|||||||
m_superCollectionView = new ArtistView();
|
m_superCollectionView = new ArtistView();
|
||||||
m_superCollectionModel = new TreeModel( m_superCollectionView );
|
m_superCollectionModel = new TreeModel( m_superCollectionView );
|
||||||
m_superCollectionView->setTreeModel( m_superCollectionModel );
|
m_superCollectionView->setTreeModel( m_superCollectionModel );
|
||||||
m_superCollectionView->setFrameShape( QFrame::NoFrame );
|
|
||||||
m_superCollectionView->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
|
||||||
m_superCollectionView->setShowModes( false );
|
m_superCollectionView->setShowModes( false );
|
||||||
// m_superCollectionView->proxyModel()->setShowOfflineResults( false );
|
// m_superCollectionView->proxyModel()->setShowOfflineResults( false );
|
||||||
|
|
||||||
m_superAlbumView = new AlbumView();
|
m_superAlbumView = new AlbumView();
|
||||||
m_superAlbumModel = new AlbumModel( m_superAlbumView );
|
m_superAlbumModel = new AlbumModel( m_superAlbumView );
|
||||||
m_superAlbumView->setAlbumModel( m_superAlbumModel );
|
m_superAlbumView->setAlbumModel( m_superAlbumModel );
|
||||||
m_superAlbumView->setFrameShape( QFrame::NoFrame );
|
|
||||||
m_superAlbumView->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
|
||||||
|
|
||||||
m_stack->setContentsMargins( 0, 0, 0, 0 );
|
m_stack->setContentsMargins( 0, 0, 0, 0 );
|
||||||
m_widget->setContentsMargins( 0, 0, 0, 0 );
|
m_widget->setContentsMargins( 0, 0, 0, 0 );
|
||||||
@@ -149,8 +145,6 @@ ViewManager::createPageForPlaylist( const playlist_ptr& pl )
|
|||||||
PlaylistModel* model = new PlaylistModel();
|
PlaylistModel* model = new PlaylistModel();
|
||||||
view->setPlaylistModel( model );
|
view->setPlaylistModel( model );
|
||||||
model->loadPlaylist( pl );
|
model->loadPlaylist( pl );
|
||||||
view->setFrameShape( QFrame::NoFrame );
|
|
||||||
view->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
|
||||||
pl->resolve();
|
pl->resolve();
|
||||||
|
|
||||||
m_playlistViews.insert( pl, view );
|
m_playlistViews.insert( pl, view );
|
||||||
@@ -290,8 +284,6 @@ ViewManager::show( const Tomahawk::collection_ptr& collection )
|
|||||||
view = new CollectionView();
|
view = new CollectionView();
|
||||||
CollectionFlatModel* model = new CollectionFlatModel();
|
CollectionFlatModel* model = new CollectionFlatModel();
|
||||||
view->setPlayableModel( model );
|
view->setPlayableModel( model );
|
||||||
view->setFrameShape( QFrame::NoFrame );
|
|
||||||
view->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
|
||||||
|
|
||||||
model->addCollection( collection );
|
model->addCollection( collection );
|
||||||
|
|
||||||
@@ -314,8 +306,6 @@ ViewManager::show( const Tomahawk::collection_ptr& collection )
|
|||||||
view = new ArtistView();
|
view = new ArtistView();
|
||||||
TreeModel* model = new TreeModel();
|
TreeModel* model = new TreeModel();
|
||||||
view->setTreeModel( model );
|
view->setTreeModel( model );
|
||||||
view->setFrameShape( QFrame::NoFrame );
|
|
||||||
view->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
|
||||||
|
|
||||||
model->addCollection( collection );
|
model->addCollection( collection );
|
||||||
|
|
||||||
@@ -338,8 +328,6 @@ ViewManager::show( const Tomahawk::collection_ptr& collection )
|
|||||||
aview = new AlbumView();
|
aview = new AlbumView();
|
||||||
AlbumModel* amodel = new AlbumModel( aview );
|
AlbumModel* amodel = new AlbumModel( aview );
|
||||||
aview->setAlbumModel( amodel );
|
aview->setAlbumModel( amodel );
|
||||||
aview->setFrameShape( QFrame::NoFrame );
|
|
||||||
aview->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
|
||||||
amodel->addCollection( collection );
|
amodel->addCollection( collection );
|
||||||
|
|
||||||
m_collectionAlbumViews.insert( collection, aview );
|
m_collectionAlbumViews.insert( collection, aview );
|
||||||
@@ -490,8 +478,6 @@ ViewManager::showRecentPlaysPage()
|
|||||||
if ( !m_recentPlaysWidget )
|
if ( !m_recentPlaysWidget )
|
||||||
{
|
{
|
||||||
PlaylistView* pv = new PlaylistView( m_widget );
|
PlaylistView* pv = new PlaylistView( m_widget );
|
||||||
pv->setFrameShape( QFrame::NoFrame );
|
|
||||||
pv->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
|
||||||
|
|
||||||
RecentlyPlayedModel* raModel = new RecentlyPlayedModel( source_ptr(), pv );
|
RecentlyPlayedModel* raModel = new RecentlyPlayedModel( source_ptr(), pv );
|
||||||
raModel->setTitle( tr( "Recently Played Tracks" ) );
|
raModel->setTitle( tr( "Recently Played Tracks" ) );
|
||||||
|
@@ -52,6 +52,9 @@ AlbumView::AlbumView( QWidget* parent )
|
|||||||
, m_contextMenu( new ContextMenu( this ) )
|
, m_contextMenu( new ContextMenu( this ) )
|
||||||
, m_inited( false )
|
, m_inited( false )
|
||||||
{
|
{
|
||||||
|
setFrameShape( QFrame::NoFrame );
|
||||||
|
setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
||||||
|
|
||||||
setDragEnabled( true );
|
setDragEnabled( true );
|
||||||
setDropIndicatorShown( false );
|
setDropIndicatorShown( false );
|
||||||
setDragDropOverwriteMode( false );
|
setDragDropOverwriteMode( false );
|
||||||
|
@@ -55,6 +55,10 @@ ArtistView::ArtistView( QWidget* parent )
|
|||||||
, m_contextMenu( new ContextMenu( this ) )
|
, m_contextMenu( new ContextMenu( this ) )
|
||||||
, m_showModes( true )
|
, m_showModes( true )
|
||||||
{
|
{
|
||||||
|
setFrameShape( QFrame::NoFrame );
|
||||||
|
setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
||||||
|
|
||||||
|
setContentsMargins( 0, 0, 0, 0 );
|
||||||
setAlternatingRowColors( true );
|
setAlternatingRowColors( true );
|
||||||
setDragEnabled( true );
|
setDragEnabled( true );
|
||||||
setDropIndicatorShown( false );
|
setDropIndicatorShown( false );
|
||||||
|
@@ -34,9 +34,6 @@ CustomPlaylistView::CustomPlaylistView( CustomPlaylistView::PlaylistType type, c
|
|||||||
, m_model( new PlaylistModel( this ) )
|
, m_model( new PlaylistModel( this ) )
|
||||||
{
|
{
|
||||||
// Generate the tracks, add them to the playlist
|
// Generate the tracks, add them to the playlist
|
||||||
setFrameShape( QFrame::NoFrame );
|
|
||||||
setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
|
||||||
|
|
||||||
m_model->setStyle( PlayableModel::Large );
|
m_model->setStyle( PlayableModel::Large );
|
||||||
setPlaylistModel( m_model );
|
setPlaylistModel( m_model );
|
||||||
generateTracks();
|
generateTracks();
|
||||||
|
@@ -45,8 +45,6 @@ QueueView::QueueView( AnimatedSplitter* parent )
|
|||||||
|
|
||||||
ui->queue->setProxyModel( new QueueProxyModel( ui->queue ) );
|
ui->queue->setProxyModel( new QueueProxyModel( ui->queue ) );
|
||||||
ui->queue->setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Ignored );
|
ui->queue->setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Ignored );
|
||||||
ui->queue->setFrameShape( QFrame::NoFrame );
|
|
||||||
ui->queue->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
|
||||||
ui->queue->overlay()->setEnabled( false );
|
ui->queue->overlay()->setEnabled( false );
|
||||||
|
|
||||||
connect( ui->toggleButton, SIGNAL( clicked() ), SLOT( show() ) );
|
connect( ui->toggleButton, SIGNAL( clicked() ), SLOT( show() ) );
|
||||||
|
@@ -57,6 +57,10 @@ TrackView::TrackView( QWidget* parent )
|
|||||||
, m_updateContextView( true )
|
, m_updateContextView( true )
|
||||||
, m_contextMenu( new ContextMenu( this ) )
|
, m_contextMenu( new ContextMenu( this ) )
|
||||||
{
|
{
|
||||||
|
setFrameShape( QFrame::NoFrame );
|
||||||
|
setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
||||||
|
|
||||||
|
setContentsMargins( 0, 0, 0, 0 );
|
||||||
setMouseTracking( true );
|
setMouseTracking( true );
|
||||||
setAlternatingRowColors( true );
|
setAlternatingRowColors( true );
|
||||||
setSelectionMode( QAbstractItemView::ExtendedSelection );
|
setSelectionMode( QAbstractItemView::ExtendedSelection );
|
||||||
|
@@ -49,10 +49,6 @@ DynamicView::DynamicView( QWidget* parent )
|
|||||||
, m_fadebg( false )
|
, m_fadebg( false )
|
||||||
, m_fadeOnly( false )
|
, m_fadeOnly( false )
|
||||||
{
|
{
|
||||||
setContentsMargins( 0, 0, 0, 0 );
|
|
||||||
setFrameShape( QFrame::NoFrame );
|
|
||||||
setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
|
||||||
|
|
||||||
m_fadeOutAnim.setDuration( FADE_LENGTH );
|
m_fadeOutAnim.setDuration( FADE_LENGTH );
|
||||||
m_fadeOutAnim.setCurveShape( QTimeLine::LinearCurve );
|
m_fadeOutAnim.setCurveShape( QTimeLine::LinearCurve );
|
||||||
m_fadeOutAnim.setFrameRange( 100, 0 );
|
m_fadeOutAnim.setFrameRange( 100, 0 );
|
||||||
@@ -71,7 +67,6 @@ DynamicView::DynamicView( QWidget* parent )
|
|||||||
|
|
||||||
DynamicView::~DynamicView()
|
DynamicView::~DynamicView()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -60,9 +60,6 @@ NewReleasesWidget::NewReleasesWidget( QWidget* parent )
|
|||||||
{
|
{
|
||||||
ui->setupUi( this );
|
ui->setupUi( this );
|
||||||
|
|
||||||
ui->albumsView->setFrameShape( QFrame::NoFrame );
|
|
||||||
ui->albumsView->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
|
||||||
|
|
||||||
TomahawkUtils::unmarginLayout( layout() );
|
TomahawkUtils::unmarginLayout( layout() );
|
||||||
TomahawkUtils::unmarginLayout( ui->verticalLayout_2 );
|
TomahawkUtils::unmarginLayout( ui->verticalLayout_2 );
|
||||||
TomahawkUtils::unmarginLayout( ui->breadCrumbLeft->layout() );
|
TomahawkUtils::unmarginLayout( ui->breadCrumbLeft->layout() );
|
||||||
@@ -76,7 +73,6 @@ NewReleasesWidget::NewReleasesWidget( QWidget* parent )
|
|||||||
|
|
||||||
connect( ui->breadCrumbLeft, SIGNAL( activateIndex( QModelIndex ) ), SLOT( leftCrumbIndexChanged(QModelIndex) ) );
|
connect( ui->breadCrumbLeft, SIGNAL( activateIndex( QModelIndex ) ), SLOT( leftCrumbIndexChanged(QModelIndex) ) );
|
||||||
|
|
||||||
|
|
||||||
//m_playlistInterface = Tomahawk::playlistinterface_ptr( new ChartsPlaylistInterface( this ) );
|
//m_playlistInterface = Tomahawk::playlistinterface_ptr( new ChartsPlaylistInterface( this ) );
|
||||||
|
|
||||||
m_workerThread = new QThread( this );
|
m_workerThread = new QThread( this );
|
||||||
|
@@ -58,18 +58,6 @@ SearchWidget::SearchWidget( const QString& search, QWidget* parent )
|
|||||||
|
|
||||||
TomahawkUtils::unmarginLayout( ui->verticalLayout );
|
TomahawkUtils::unmarginLayout( ui->verticalLayout );
|
||||||
|
|
||||||
ui->artistView->setContentsMargins( 0, 0, 0, 0 );
|
|
||||||
ui->artistView->setFrameShape( QFrame::NoFrame );
|
|
||||||
ui->artistView->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
|
||||||
|
|
||||||
ui->albumView->setContentsMargins( 0, 0, 0, 0 );
|
|
||||||
ui->albumView->setFrameShape( QFrame::NoFrame );
|
|
||||||
ui->albumView->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
|
||||||
|
|
||||||
ui->resultsView->setContentsMargins( 0, 0, 0, 0 );
|
|
||||||
ui->resultsView->setFrameShape( QFrame::NoFrame );
|
|
||||||
ui->resultsView->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
|
||||||
|
|
||||||
ui->resultsView->loadingSpinner()->fadeIn();
|
ui->resultsView->loadingSpinner()->fadeIn();
|
||||||
m_queries << Tomahawk::Query::get( search, uuid() );
|
m_queries << Tomahawk::Query::get( search, uuid() );
|
||||||
|
|
||||||
|
@@ -36,7 +36,7 @@ QString SocialPlaylistWidget::s_mostPlayedPlaylistsQuery = "asd";
|
|||||||
QString SocialPlaylistWidget::s_topForeignTracksQuery = "select track.name, artist.name, count(*) as counter from (select track from playback_log group by track, source), track, artist where track not in (select track from playback_log where source is null group by track) and track.id = track and artist.id = track.artist group by track order by counter desc";
|
QString SocialPlaylistWidget::s_topForeignTracksQuery = "select track.name, artist.name, count(*) as counter from (select track from playback_log group by track, source), track, artist where track not in (select track from playback_log where source is null group by track) and track.id = track and artist.id = track.artist group by track order by counter desc";
|
||||||
|
|
||||||
SocialPlaylistWidget::SocialPlaylistWidget ( QWidget* parent )
|
SocialPlaylistWidget::SocialPlaylistWidget ( QWidget* parent )
|
||||||
: QWidget ( parent )
|
: QWidget( parent )
|
||||||
, ui( new Ui_SocialPlaylistWidget )
|
, ui( new Ui_SocialPlaylistWidget )
|
||||||
, m_topForeignTracksModel( 0 )
|
, m_topForeignTracksModel( 0 )
|
||||||
, m_popularNewAlbumsModel( 0 )
|
, m_popularNewAlbumsModel( 0 )
|
||||||
@@ -53,10 +53,6 @@ SocialPlaylistWidget::SocialPlaylistWidget ( QWidget* parent )
|
|||||||
|
|
||||||
ui->mostPlayedPlaylists->setFrameShape( QFrame::NoFrame );
|
ui->mostPlayedPlaylists->setFrameShape( QFrame::NoFrame );
|
||||||
ui->mostPlayedPlaylists->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
ui->mostPlayedPlaylists->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
||||||
ui->newTracksView->setFrameShape( QFrame::NoFrame );
|
|
||||||
ui->newTracksView->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
|
||||||
ui->newAlbumsView->setFrameShape( QFrame::NoFrame );
|
|
||||||
ui->newAlbumsView->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
|
||||||
|
|
||||||
TomahawkUtils::unmarginLayout( layout() );
|
TomahawkUtils::unmarginLayout( layout() );
|
||||||
TomahawkUtils::unmarginLayout( ui->verticalLayout->layout() );
|
TomahawkUtils::unmarginLayout( ui->verticalLayout->layout() );
|
||||||
@@ -94,7 +90,6 @@ SocialPlaylistWidget::SocialPlaylistWidget ( QWidget* parent )
|
|||||||
|
|
||||||
SocialPlaylistWidget::~SocialPlaylistWidget()
|
SocialPlaylistWidget::~SocialPlaylistWidget()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -54,10 +54,6 @@ WelcomeWidget::WelcomeWidget( QWidget* parent )
|
|||||||
|
|
||||||
ui->playlistWidget->setFrameShape( QFrame::NoFrame );
|
ui->playlistWidget->setFrameShape( QFrame::NoFrame );
|
||||||
ui->playlistWidget->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
ui->playlistWidget->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
||||||
ui->tracksView->setFrameShape( QFrame::NoFrame );
|
|
||||||
ui->tracksView->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
|
||||||
ui->additionsView->setFrameShape( QFrame::NoFrame );
|
|
||||||
ui->additionsView->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
|
||||||
|
|
||||||
TomahawkUtils::unmarginLayout( layout() );
|
TomahawkUtils::unmarginLayout( layout() );
|
||||||
TomahawkUtils::unmarginLayout( ui->verticalLayout->layout() );
|
TomahawkUtils::unmarginLayout( ui->verticalLayout->layout() );
|
||||||
|
@@ -59,9 +59,6 @@ WhatsHotWidget::WhatsHotWidget( QWidget* parent )
|
|||||||
{
|
{
|
||||||
ui->setupUi( this );
|
ui->setupUi( this );
|
||||||
|
|
||||||
ui->albumsView->setFrameShape( QFrame::NoFrame );
|
|
||||||
ui->albumsView->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
|
||||||
|
|
||||||
TomahawkUtils::unmarginLayout( layout() );
|
TomahawkUtils::unmarginLayout( layout() );
|
||||||
TomahawkUtils::unmarginLayout( ui->stackLeft->layout() );
|
TomahawkUtils::unmarginLayout( ui->stackLeft->layout() );
|
||||||
TomahawkUtils::unmarginLayout( ui->horizontalLayout->layout() );
|
TomahawkUtils::unmarginLayout( ui->horizontalLayout->layout() );
|
||||||
@@ -78,8 +75,6 @@ WhatsHotWidget::WhatsHotWidget( QWidget* parent )
|
|||||||
|
|
||||||
connect( ui->breadCrumbLeft, SIGNAL( activateIndex( QModelIndex ) ), SLOT( leftCrumbIndexChanged(QModelIndex) ) );
|
connect( ui->breadCrumbLeft, SIGNAL( activateIndex( QModelIndex ) ), SLOT( leftCrumbIndexChanged(QModelIndex) ) );
|
||||||
|
|
||||||
ui->tracksViewLeft->setFrameShape( QFrame::NoFrame );
|
|
||||||
ui->tracksViewLeft->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
|
||||||
ui->tracksViewLeft->overlay()->setEnabled( false );
|
ui->tracksViewLeft->overlay()->setEnabled( false );
|
||||||
ui->tracksViewLeft->setHeaderHidden( true );
|
ui->tracksViewLeft->setHeaderHidden( true );
|
||||||
ui->tracksViewLeft->setHorizontalScrollBarPolicy( Qt::ScrollBarAlwaysOff );
|
ui->tracksViewLeft->setHorizontalScrollBarPolicy( Qt::ScrollBarAlwaysOff );
|
||||||
@@ -93,8 +88,6 @@ WhatsHotWidget::WhatsHotWidget( QWidget* parent )
|
|||||||
artistsProxy->setDynamicSortFilter( true );
|
artistsProxy->setDynamicSortFilter( true );
|
||||||
|
|
||||||
ui->artistsViewLeft->setProxyModel( artistsProxy );
|
ui->artistsViewLeft->setProxyModel( artistsProxy );
|
||||||
ui->artistsViewLeft->setFrameShape( QFrame::NoFrame );
|
|
||||||
ui->artistsViewLeft->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
|
||||||
|
|
||||||
ui->artistsViewLeft->setHorizontalScrollBarPolicy( Qt::ScrollBarAlwaysOff );
|
ui->artistsViewLeft->setHorizontalScrollBarPolicy( Qt::ScrollBarAlwaysOff );
|
||||||
ui->artistsViewLeft->header()->setVisible( true );
|
ui->artistsViewLeft->header()->setVisible( true );
|
||||||
|
@@ -46,11 +46,6 @@ AlbumInfoWidget::AlbumInfoWidget( const Tomahawk::album_ptr& album, QWidget* par
|
|||||||
{
|
{
|
||||||
ui->setupUi( this );
|
ui->setupUi( this );
|
||||||
|
|
||||||
ui->albumsView->setFrameShape( QFrame::NoFrame );
|
|
||||||
ui->albumsView->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
|
||||||
ui->tracksView->setFrameShape( QFrame::NoFrame );
|
|
||||||
ui->tracksView->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
|
||||||
|
|
||||||
TomahawkUtils::unmarginLayout( layout() );
|
TomahawkUtils::unmarginLayout( layout() );
|
||||||
TomahawkUtils::unmarginLayout( ui->verticalLayout );
|
TomahawkUtils::unmarginLayout( ui->verticalLayout );
|
||||||
TomahawkUtils::unmarginLayout( ui->verticalLayout_2 );
|
TomahawkUtils::unmarginLayout( ui->verticalLayout_2 );
|
||||||
|
@@ -53,13 +53,6 @@ ArtistInfoWidget::ArtistInfoWidget( const Tomahawk::artist_ptr& artist, QWidget*
|
|||||||
|
|
||||||
m_plInterface = Tomahawk::playlistinterface_ptr( new MetaPlaylistInterface( this ) );
|
m_plInterface = Tomahawk::playlistinterface_ptr( new MetaPlaylistInterface( this ) );
|
||||||
|
|
||||||
ui->albums->setFrameShape( QFrame::NoFrame );
|
|
||||||
ui->albums->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
|
||||||
ui->relatedArtists->setFrameShape( QFrame::NoFrame );
|
|
||||||
ui->relatedArtists->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
|
||||||
ui->topHits->setFrameShape( QFrame::NoFrame );
|
|
||||||
ui->topHits->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
|
||||||
|
|
||||||
TomahawkUtils::unmarginLayout( layout() );
|
TomahawkUtils::unmarginLayout( layout() );
|
||||||
TomahawkUtils::unmarginLayout( ui->layoutWidget->layout() );
|
TomahawkUtils::unmarginLayout( ui->layoutWidget->layout() );
|
||||||
TomahawkUtils::unmarginLayout( ui->layoutWidget1->layout() );
|
TomahawkUtils::unmarginLayout( ui->layoutWidget1->layout() );
|
||||||
|
@@ -43,13 +43,6 @@ SourceInfoWidget::SourceInfoWidget( const Tomahawk::source_ptr& source, QWidget*
|
|||||||
{
|
{
|
||||||
ui->setupUi( this );
|
ui->setupUi( this );
|
||||||
|
|
||||||
ui->historyView->setFrameShape( QFrame::NoFrame );
|
|
||||||
ui->historyView->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
|
||||||
ui->recentAlbumView->setFrameShape( QFrame::NoFrame );
|
|
||||||
ui->recentAlbumView->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
|
||||||
ui->recentCollectionView->setFrameShape( QFrame::NoFrame );
|
|
||||||
ui->recentCollectionView->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
|
||||||
|
|
||||||
TomahawkUtils::unmarginLayout( layout() );
|
TomahawkUtils::unmarginLayout( layout() );
|
||||||
TomahawkUtils::unmarginLayout( ui->horizontalLayout );
|
TomahawkUtils::unmarginLayout( ui->horizontalLayout );
|
||||||
TomahawkUtils::unmarginLayout( ui->verticalLayout );
|
TomahawkUtils::unmarginLayout( ui->verticalLayout );
|
||||||
|
@@ -67,10 +67,6 @@ TrackInfoWidget::TrackInfoWidget( const Tomahawk::query_ptr& query, QWidget* par
|
|||||||
f.setPixelSize( 12 );
|
f.setPixelSize( 12 );
|
||||||
ui->statsLabel->setFont( f );
|
ui->statsLabel->setFont( f );
|
||||||
|
|
||||||
ui->similarTracksView->setFrameShape( QFrame::NoFrame );
|
|
||||||
ui->similarTracksView->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
|
||||||
ui->lyricsView->setFrameShape( QFrame::NoFrame );
|
|
||||||
ui->lyricsView->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
|
||||||
// ui->similarTracksView->setStyleSheet( "QListView { background-color: transparent; } QListView::item { background-color: transparent; }" );
|
// ui->similarTracksView->setStyleSheet( "QListView { background-color: transparent; } QListView::item { background-color: transparent; }" );
|
||||||
|
|
||||||
QPalette p = ui->trackLabel->palette();
|
QPalette p = ui->trackLabel->palette();
|
||||||
|
Reference in New Issue
Block a user