Commit e15e0503 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt, mac: make playist without the blue focus halo

parent f9216bf1
...@@ -103,6 +103,7 @@ PLSelector::PLSelector( QWidget *p, intf_thread_t *_p_intf ) ...@@ -103,6 +103,7 @@ PLSelector::PLSelector( QWidget *p, intf_thread_t *_p_intf )
{ {
/* Properties */ /* Properties */
setFrameStyle( QFrame::NoFrame ); setFrameStyle( QFrame::NoFrame );
setAttribute( Qt::WA_MacShowFocusRect, false );
viewport()->setAutoFillBackground( false ); viewport()->setAutoFillBackground( false );
setIconSize( QSize( 24,24 ) ); setIconSize( QSize( 24,24 ) );
setIndentation( 12 ); setIndentation( 12 );
......
...@@ -286,6 +286,7 @@ void StandardPLPanel::createTreeView() ...@@ -286,6 +286,7 @@ void StandardPLPanel::createTreeView()
treeView->setAnimated( true ); treeView->setAnimated( true );
treeView->setUniformRowHeights( true ); treeView->setUniformRowHeights( true );
treeView->setSortingEnabled( true ); treeView->setSortingEnabled( true );
treeView->setAttribute( Qt::WA_MacShowFocusRect, false );
treeView->header()->setSortIndicator( -1 , Qt::AscendingOrder ); treeView->header()->setSortIndicator( -1 , Qt::AscendingOrder );
treeView->header()->setSortIndicatorShown( true ); treeView->header()->setSortIndicatorShown( true );
treeView->header()->setClickable( true ); treeView->header()->setClickable( true );
......
...@@ -295,6 +295,7 @@ PlIconView::PlIconView( PLModel *model, QWidget *parent ) : QListView( parent ) ...@@ -295,6 +295,7 @@ PlIconView::PlIconView( PLModel *model, QWidget *parent ) : QListView( parent )
setUniformItemSizes( true ); setUniformItemSizes( true );
setSelectionMode( QAbstractItemView::ExtendedSelection ); setSelectionMode( QAbstractItemView::ExtendedSelection );
setDragEnabled(true); setDragEnabled(true);
setAttribute( Qt::WA_MacShowFocusRect, false );
/* dropping in QListView::IconMode does not seem to work */ /* dropping in QListView::IconMode does not seem to work */
//setAcceptDrops( true ); //setAcceptDrops( true );
//setDropIndicatorShown(true); //setDropIndicatorShown(true);
...@@ -326,6 +327,7 @@ PlListView::PlListView( PLModel *model, QWidget *parent ) : QListView( parent ) ...@@ -326,6 +327,7 @@ PlListView::PlListView( PLModel *model, QWidget *parent ) : QListView( parent )
PlListViewItemDelegate *delegate = new PlListViewItemDelegate( this ); PlListViewItemDelegate *delegate = new PlListViewItemDelegate( this );
setItemDelegate( delegate ); setItemDelegate( delegate );
setAttribute( Qt::WA_MacShowFocusRect, false );
} }
void PlListView::startDrag ( Qt::DropActions supportedActions ) void PlListView::startDrag ( Qt::DropActions supportedActions )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment