mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-17 19:37:09 +02:00
* Globally disable focus rects.
This commit is contained in:
@@ -74,7 +74,7 @@ TrackView::TrackView( QWidget* parent )
|
|||||||
setDropIndicatorShown( false );
|
setDropIndicatorShown( false );
|
||||||
setDragDropMode( QAbstractItemView::InternalMove );
|
setDragDropMode( QAbstractItemView::InternalMove );
|
||||||
setDragDropOverwriteMode( false );
|
setDragDropOverwriteMode( false );
|
||||||
setAllColumnsShowFocus( false );
|
setAllColumnsShowFocus( true );
|
||||||
setVerticalScrollMode( QAbstractItemView::ScrollPerPixel );
|
setVerticalScrollMode( QAbstractItemView::ScrollPerPixel );
|
||||||
setRootIsDecorated( false );
|
setRootIsDecorated( false );
|
||||||
setUniformRowHeights( true );
|
setUniformRowHeights( true );
|
||||||
|
@@ -76,7 +76,7 @@ ProxyStyle::drawPrimitive( PrimitiveElement pe, const QStyleOption* opt, QPainte
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( pe != PE_FrameStatusBar )
|
if ( pe != PE_FrameStatusBar && pe != PE_FrameFocusRect )
|
||||||
QProxyStyle::drawPrimitive( pe, opt, p, w );
|
QProxyStyle::drawPrimitive( pe, opt, p, w );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -95,7 +95,7 @@ SourceTreeView::SourceTreeView( QWidget* parent )
|
|||||||
setDragDropMode( QAbstractItemView::DropOnly );
|
setDragDropMode( QAbstractItemView::DropOnly );
|
||||||
setAcceptDrops( true );
|
setAcceptDrops( true );
|
||||||
setDropIndicatorShown( false );
|
setDropIndicatorShown( false );
|
||||||
setAllColumnsShowFocus( false );
|
setAllColumnsShowFocus( true );
|
||||||
setUniformRowHeights( false );
|
setUniformRowHeights( false );
|
||||||
setIndentation( 0 );
|
setIndentation( 0 );
|
||||||
setSortingEnabled( true );
|
setSortingEnabled( true );
|
||||||
|
Reference in New Issue
Block a user