Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
VLMC
Commits
726682b1
Commit
726682b1
authored
Oct 07, 2010
by
Hugo Beauzée-Luyssen
Browse files
TracksView: Fixing signal connection.
parent
69d954db
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/Gui/timeline/TracksView.cpp
View file @
726682b1
...
...
@@ -132,11 +132,11 @@ TracksView::addTrack( Workflow::TrackType type )
m_scene
->
invalidate
();
// Redraw the background
//Clips part:
connect
(
track
->
trackWorkflow
(),
SIGNAL
(
clipAdded
(
TrackWorkflow
*
,
Workflow
::
Helper
*
,
qint64
)
),
this
,
SLOT
(
addItem
(
TrackWorkflow
*
,
Workflow
::
Helper
*
,
qint64
)
)
,
Qt
::
QueuedConnection
);
this
,
SLOT
(
addItem
(
TrackWorkflow
*
,
Workflow
::
Helper
*
,
qint64
)
)
);
connect
(
track
->
trackWorkflow
(),
SIGNAL
(
clipRemoved
(
TrackWorkflow
*
,
const
QUuid
&
)
),
this
,
SLOT
(
removeItem
(
TrackWorkflow
*
,
const
QUuid
&
)
)
,
Qt
::
QueuedConnection
);
this
,
SLOT
(
removeItem
(
TrackWorkflow
*
,
const
QUuid
&
)
)
);
connect
(
track
->
trackWorkflow
(),
SIGNAL
(
clipMoved
(
TrackWorkflow
*
,
const
QUuid
&
,
qint64
)
),
this
,
SLOT
(
moveItem
(
TrackWorkflow
*
,
const
QUuid
&
,
qint64
)
)
,
Qt
::
QueuedConnection
);
this
,
SLOT
(
moveItem
(
TrackWorkflow
*
,
const
QUuid
&
,
qint64
)
)
);
//Effect part:
connect
(
track
->
trackWorkflow
(),
SIGNAL
(
effectAdded
(
TrackWorkflow
*
,
Workflow
::
Helper
*
,
qint64
)
),
this
,
SLOT
(
addItem
(
TrackWorkflow
*
,
Workflow
::
Helper
*
,
qint64
)
),
Qt
::
QueuedConnection
);
...
...
src/Workflow/Helper.cpp
View file @
726682b1
...
...
@@ -34,6 +34,10 @@ Helper::Helper( qint64 begin /*= 0*/, qint64 end /*= -1*/, const QString &uuid/*
m_uuid
=
uuid
;
}
Helper
::~
Helper
()
{
}
qint64
Helper
::
begin
()
const
{
...
...
src/Workflow/Helper.h
View file @
726682b1
...
...
@@ -35,6 +35,7 @@ namespace Workflow
protected:
//This class is not meant to be used by itself.
Helper
(
qint64
begin
=
0
,
qint64
end
=
-
1
,
const
QString
&
uuid
=
QString
()
);
~
Helper
();
public:
virtual
const
QUuid
&
uuid
()
const
;
...
...
src/Workflow/TrackWorkflow.cpp
View file @
726682b1
...
...
@@ -417,7 +417,7 @@ TrackWorkflow::clipDestroyed( const QUuid& id )
computeLength
();
cw
->
disconnect
();
cw
->
getClipHelper
()
->
disconnect
(
this
);
emit
clipRemoved
(
this
,
cw
->
getClipHelper
()
->
uuid
()
);
emit
clipRemoved
(
this
,
id
);
cw
->
deleteLater
();
return
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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