Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
VLMC
Commits
323ae3eb
Commit
323ae3eb
authored
Jan 16, 2010
by
Ludovic Fauvet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change mouse cursor when hovering a resize zone on an audio clip too.
parent
4a1e8941
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
src/Gui/timeline/GraphicsAudioItem.cpp
src/Gui/timeline/GraphicsAudioItem.cpp
+13
-0
src/Gui/timeline/GraphicsAudioItem.h
src/Gui/timeline/GraphicsAudioItem.h
+1
-0
No files found.
src/Gui/timeline/GraphicsAudioItem.cpp
View file @
323ae3eb
...
...
@@ -188,6 +188,19 @@ void GraphicsAudioItem::hoverLeaveEvent( QGraphicsSceneHoverEvent* event )
AbstractGraphicsMediaItem
::
hoverLeaveEvent
(
event
);
}
void
GraphicsAudioItem
::
hoverMoveEvent
(
QGraphicsSceneHoverEvent
*
event
)
{
if
(
!
tracksView
()
)
return
;
if
(
tracksView
()
->
tool
()
==
TOOL_DEFAULT
)
{
if
(
resizeZone
(
event
->
pos
()
)
)
setCursor
(
Qt
::
SizeHorCursor
);
else
setCursor
(
Qt
::
OpenHandCursor
);
}
}
void
GraphicsAudioItem
::
mousePressEvent
(
QGraphicsSceneMouseEvent
*
event
)
{
TracksView
*
tv
=
Timeline
::
getInstance
()
->
tracksView
();
...
...
src/Gui/timeline/GraphicsAudioItem.h
View file @
323ae3eb
...
...
@@ -71,6 +71,7 @@ protected:
void
paintTitle
(
QPainter
*
painter
,
const
QStyleOptionGraphicsItem
*
option
);
virtual
void
hoverEnterEvent
(
QGraphicsSceneHoverEvent
*
event
);
virtual
void
hoverLeaveEvent
(
QGraphicsSceneHoverEvent
*
event
);
virtual
void
hoverMoveEvent
(
QGraphicsSceneHoverEvent
*
event
);
virtual
void
mousePressEvent
(
QGraphicsSceneMouseEvent
*
event
);
virtual
void
mouseReleaseEvent
(
QGraphicsSceneMouseEvent
*
event
);
...
...
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