mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-12 09:04:33 +02:00
* Some OS/X style tweaks.
This commit is contained in:
@@ -13,6 +13,8 @@ InfoBar::InfoBar( QWidget* parent )
|
|||||||
, ui( new Ui::InfoBar )
|
, ui( new Ui::InfoBar )
|
||||||
{
|
{
|
||||||
ui->setupUi( this );
|
ui->setupUi( this );
|
||||||
|
layout()->setSpacing( 0 );
|
||||||
|
layout()->setContentsMargins( 0, 0, 0, 0 );
|
||||||
|
|
||||||
QFont boldFont = ui->captionLabel->font();
|
QFont boldFont = ui->captionLabel->font();
|
||||||
boldFont.setPixelSize( 18 );
|
boldFont.setPixelSize( 18 );
|
||||||
|
@@ -86,6 +86,7 @@ PlaylistManager::PlaylistManager( QObject* parent )
|
|||||||
m_superCollectionFlatModel = new CollectionFlatModel( m_superCollectionView );
|
m_superCollectionFlatModel = new CollectionFlatModel( m_superCollectionView );
|
||||||
m_superCollectionView->setModel( m_superCollectionFlatModel );
|
m_superCollectionView->setModel( m_superCollectionFlatModel );
|
||||||
m_superCollectionView->setFrameShape( QFrame::NoFrame );
|
m_superCollectionView->setFrameShape( QFrame::NoFrame );
|
||||||
|
m_superCollectionView->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
||||||
|
|
||||||
m_superAlbumView = new AlbumView();
|
m_superAlbumView = new AlbumView();
|
||||||
m_superAlbumModel = new AlbumModel( m_superAlbumView );
|
m_superAlbumModel = new AlbumModel( m_superAlbumView );
|
||||||
@@ -159,6 +160,7 @@ PlaylistManager::show( const Tomahawk::playlist_ptr& playlist )
|
|||||||
PlaylistModel* model = new PlaylistModel();
|
PlaylistModel* model = new PlaylistModel();
|
||||||
view->setModel( model );
|
view->setModel( model );
|
||||||
view->setFrameShape( QFrame::NoFrame );
|
view->setFrameShape( QFrame::NoFrame );
|
||||||
|
view->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
||||||
model->loadPlaylist( playlist );
|
model->loadPlaylist( playlist );
|
||||||
playlist->resolve();
|
playlist->resolve();
|
||||||
|
|
||||||
@@ -227,6 +229,7 @@ PlaylistManager::show( const Tomahawk::artist_ptr& artist )
|
|||||||
PlaylistModel* model = new PlaylistModel();
|
PlaylistModel* model = new PlaylistModel();
|
||||||
view->setModel( model );
|
view->setModel( model );
|
||||||
view->setFrameShape( QFrame::NoFrame );
|
view->setFrameShape( QFrame::NoFrame );
|
||||||
|
view->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
||||||
model->append( artist );
|
model->append( artist );
|
||||||
|
|
||||||
m_currentInterface = view->proxyModel();
|
m_currentInterface = view->proxyModel();
|
||||||
@@ -264,6 +267,7 @@ PlaylistManager::show( const Tomahawk::album_ptr& album )
|
|||||||
PlaylistModel* model = new PlaylistModel();
|
PlaylistModel* model = new PlaylistModel();
|
||||||
view->setModel( model );
|
view->setModel( model );
|
||||||
view->setFrameShape( QFrame::NoFrame );
|
view->setFrameShape( QFrame::NoFrame );
|
||||||
|
view->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
||||||
model->append( album );
|
model->append( album );
|
||||||
|
|
||||||
m_currentInterface = view->proxyModel();
|
m_currentInterface = view->proxyModel();
|
||||||
@@ -303,6 +307,7 @@ PlaylistManager::show( const Tomahawk::collection_ptr& collection )
|
|||||||
CollectionFlatModel* model = new CollectionFlatModel();
|
CollectionFlatModel* model = new CollectionFlatModel();
|
||||||
view->setModel( model );
|
view->setModel( model );
|
||||||
view->setFrameShape( QFrame::NoFrame );
|
view->setFrameShape( QFrame::NoFrame );
|
||||||
|
view->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
||||||
model->addCollection( collection );
|
model->addCollection( collection );
|
||||||
|
|
||||||
m_currentInterface = view->proxyModel();
|
m_currentInterface = view->proxyModel();
|
||||||
@@ -327,6 +332,7 @@ PlaylistManager::show( const Tomahawk::collection_ptr& collection )
|
|||||||
AlbumModel* amodel = new AlbumModel( aview );
|
AlbumModel* amodel = new AlbumModel( aview );
|
||||||
aview->setModel( amodel );
|
aview->setModel( amodel );
|
||||||
aview->setFrameShape( QFrame::NoFrame );
|
aview->setFrameShape( QFrame::NoFrame );
|
||||||
|
aview->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
||||||
amodel->addCollection( collection );
|
amodel->addCollection( collection );
|
||||||
|
|
||||||
m_currentInterface = aview->proxyModel();
|
m_currentInterface = aview->proxyModel();
|
||||||
|
@@ -44,6 +44,7 @@ SourceTreeView::SourceTreeView( QWidget* parent )
|
|||||||
, m_dragging( false )
|
, m_dragging( false )
|
||||||
{
|
{
|
||||||
setFrameShape( QFrame::NoFrame );
|
setFrameShape( QFrame::NoFrame );
|
||||||
|
setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
||||||
setContentsMargins( 0, 0, 0, 0 );
|
setContentsMargins( 0, 0, 0, 0 );
|
||||||
|
|
||||||
setHeaderHidden( true );
|
setHeaderHidden( true );
|
||||||
|
Reference in New Issue
Block a user