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 )
{
/* Properties */
setFrameStyle( QFrame::NoFrame );
setAttribute( Qt::WA_MacShowFocusRect, false );
viewport()->setAutoFillBackground( false );
setIconSize( QSize( 24,24 ) );
setIndentation( 12 );
......
......@@ -286,6 +286,7 @@ void StandardPLPanel::createTreeView()
treeView->setAnimated( true );
treeView->setUniformRowHeights( true );
treeView->setSortingEnabled( true );
treeView->setAttribute( Qt::WA_MacShowFocusRect, false );
treeView->header()->setSortIndicator( -1 , Qt::AscendingOrder );
treeView->header()->setSortIndicatorShown( true );
treeView->header()->setClickable( true );
......
......@@ -295,6 +295,7 @@ PlIconView::PlIconView( PLModel *model, QWidget *parent ) : QListView( parent )
setUniformItemSizes( true );
setSelectionMode( QAbstractItemView::ExtendedSelection );
setDragEnabled(true);
setAttribute( Qt::WA_MacShowFocusRect, false );
/* dropping in QListView::IconMode does not seem to work */
//setAcceptDrops( true );
//setDropIndicatorShown(true);
......@@ -326,6 +327,7 @@ PlListView::PlListView( PLModel *model, QWidget *parent ) : QListView( parent )
PlListViewItemDelegate *delegate = new PlListViewItemDelegate( this );
setItemDelegate( delegate );
setAttribute( Qt::WA_MacShowFocusRect, false );
}
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