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
luyikei
VLMC
Commits
d1a7fe04
Commit
d1a7fe04
authored
Mar 01, 2014
by
Ludovic Fauvet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
timeline: fix collision detection under Qt5
parent
7b5a2833
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/Gui/timeline/TracksView.cpp
src/Gui/timeline/TracksView.cpp
+1
-1
No files found.
src/Gui/timeline/TracksView.cpp
View file @
d1a7fe04
...
...
@@ -630,7 +630,7 @@ TracksView::findPosition( AbstractGraphicsItem *item, qint32 track, qint64 time
if
(
qgraphicsitem_cast
<
GraphicsEffectItem
*>
(
item
)
!=
NULL
)
return
ItemPosition
(
track
,
time
);
// Create a fake item for computing collisions
QGraphicsRectItem
*
chkItem
=
new
QGraphicsRectItem
(
item
->
boundingRect
()
);
QGraphicsRectItem
*
chkItem
=
new
QGraphicsRectItem
(
item
->
boundingRect
()
.
adjusted
(
0
,
1
,
0
,
-
1
)
);
chkItem
->
setParentItem
(
getTrack
(
item
->
trackType
(),
track
)
);
chkItem
->
setPos
(
time
,
0
);
...
...
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