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
7eb4f655
Commit
7eb4f655
authored
Jun 21, 2009
by
Ludovic Fauvet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not let a clip go beyond zero
parent
17397543
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
src/gui/TracksView.cpp
src/gui/TracksView.cpp
+1
-0
No files found.
src/gui/TracksView.cpp
View file @
7eb4f655
...
@@ -207,6 +207,7 @@ void TracksView::moveMediaItem( AbstractGraphicsMediaItem* item, QPoint position
...
@@ -207,6 +207,7 @@ void TracksView::moveMediaItem( AbstractGraphicsMediaItem* item, QPoint position
}
}
// Check for horizontal collisions
// Check for horizontal collisions
mappedXPos
=
qMax
(
mappedXPos
,
(
qreal
)
0
);
item
->
setPos
(
mappedXPos
,
0
);
item
->
setPos
(
mappedXPos
,
0
);
QList
<
QGraphicsItem
*>
colliding
=
item
->
collidingItems
(
Qt
::
IntersectsItemShape
);
QList
<
QGraphicsItem
*>
colliding
=
item
->
collidingItems
(
Qt
::
IntersectsItemShape
);
for
(
int
i
=
0
;
i
<
colliding
.
size
();
++
i
)
for
(
int
i
=
0
;
i
<
colliding
.
size
();
++
i
)
...
...
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