[vlc-commits] commit: Qt, mac: make playist without the blue focus halo ( Jean-Baptiste Kempf )
git at videolan.org
git at videolan.org
Fri Dec 10 15:23:55 CET 2010
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Dec 10 15:23:26 2010 +0100| [e15e0503d21c609b9e912fb5f4c55141a51b29cf] | committer: Jean-Baptiste Kempf
Qt, mac: make playist without the blue focus halo
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e15e0503d21c609b9e912fb5f4c55141a51b29cf
---
modules/gui/qt4/components/playlist/selector.cpp | 1 +
.../gui/qt4/components/playlist/standardpanel.cpp | 1 +
modules/gui/qt4/components/playlist/views.cpp | 2 ++
3 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/modules/gui/qt4/components/playlist/selector.cpp b/modules/gui/qt4/components/playlist/selector.cpp
index 8b49d49..fcd4ae7 100644
--- a/modules/gui/qt4/components/playlist/selector.cpp
+++ b/modules/gui/qt4/components/playlist/selector.cpp
@@ -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 );
diff --git a/modules/gui/qt4/components/playlist/standardpanel.cpp b/modules/gui/qt4/components/playlist/standardpanel.cpp
index e7c15b2..9ab5992 100644
--- a/modules/gui/qt4/components/playlist/standardpanel.cpp
+++ b/modules/gui/qt4/components/playlist/standardpanel.cpp
@@ -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 );
diff --git a/modules/gui/qt4/components/playlist/views.cpp b/modules/gui/qt4/components/playlist/views.cpp
index 3af0233..2888703 100644
--- a/modules/gui/qt4/components/playlist/views.cpp
+++ b/modules/gui/qt4/components/playlist/views.cpp
@@ -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 )
More information about the vlc-commits
mailing list