Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Gautam Chitnis
web-ui-redesign
Commits
e15e0503
Commit
e15e0503
authored
Dec 10, 2010
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt, mac: make playist without the blue focus halo
parent
f9216bf1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
0 deletions
+4
-0
modules/gui/qt4/components/playlist/selector.cpp
modules/gui/qt4/components/playlist/selector.cpp
+1
-0
modules/gui/qt4/components/playlist/standardpanel.cpp
modules/gui/qt4/components/playlist/standardpanel.cpp
+1
-0
modules/gui/qt4/components/playlist/views.cpp
modules/gui/qt4/components/playlist/views.cpp
+2
-0
No files found.
modules/gui/qt4/components/playlist/selector.cpp
View file @
e15e0503
...
...
@@ -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
);
...
...
modules/gui/qt4/components/playlist/standardpanel.cpp
View file @
e15e0503
...
...
@@ -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
);
...
...
modules/gui/qt4/components/playlist/views.cpp
View file @
e15e0503
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment