Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
69432b5b
Commit
69432b5b
authored
Jul 20, 2012
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: PLViews: fix hover-ing
parent
c3581f43
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
modules/gui/qt4/components/playlist/views.cpp
modules/gui/qt4/components/playlist/views.cpp
+4
-1
No files found.
modules/gui/qt4/components/playlist/views.cpp
View file @
69432b5b
...
...
@@ -65,7 +65,7 @@ void AbstractPlViewItemDelegate::paintBackground(
painter
->
drawRect
(
r
);
}
if
(
option
.
state
&
QStyle
::
State_MouseOver
)
{
{
/* requires WA_hover on viewport */
painter
->
setOpacity
(
0.5
);
painter
->
setPen
(
Qt
::
NoPen
);
painter
->
setBrush
(
option
.
palette
.
color
(
QPalette
::
Highlight
).
lighter
(
150
)
);
...
...
@@ -318,6 +318,7 @@ PlIconView::PlIconView( PLModel *, QWidget *parent ) : QListView( parent )
setSelectionBehavior
(
QAbstractItemView
::
SelectRows
);
setDragEnabled
(
true
);
setAttribute
(
Qt
::
WA_MacShowFocusRect
,
false
);
viewport
()
->
setAttribute
(
Qt
::
WA_Hover
);
/* dropping in QListView::IconMode does not seem to work */
//setAcceptDrops( true );
//setDropIndicatorShown(true);
...
...
@@ -363,6 +364,7 @@ PlListView::PlListView( PLModel *, QWidget *parent ) : QListView( parent )
PlListViewItemDelegate
*
delegate
=
new
PlListViewItemDelegate
(
this
);
setItemDelegate
(
delegate
);
setAttribute
(
Qt
::
WA_MacShowFocusRect
,
false
);
viewport
()
->
setAttribute
(
Qt
::
WA_Hover
);
}
void
PlListView
::
startDrag
(
Qt
::
DropActions
supportedActions
)
...
...
@@ -410,6 +412,7 @@ PlTreeView::PlTreeView( PLModel *, QWidget *parent ) : QTreeView( parent )
setUniformRowHeights
(
true
);
setSortingEnabled
(
true
);
setAttribute
(
Qt
::
WA_MacShowFocusRect
,
false
);
viewport
()
->
setAttribute
(
Qt
::
WA_Hover
);
header
()
->
setSortIndicator
(
-
1
,
Qt
::
AscendingOrder
);
header
()
->
setSortIndicatorShown
(
true
);
header
()
->
setClickable
(
true
);
...
...
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