Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VLMC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
luyikei
VLMC
Commits
077b7674
Commit
077b7674
authored
Jun 21, 2009
by
Ludovic Fauvet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Embedding the track number into the GraphicsTrack objects
parent
ce11a343
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
src/gui/TracksView.cpp
src/gui/TracksView.cpp
+2
-2
src/gui/TracksView.h
src/gui/TracksView.h
+7
-1
No files found.
src/gui/TracksView.cpp
View file @
077b7674
...
...
@@ -102,7 +102,7 @@ void TracksView::createLayout()
void
TracksView
::
addVideoTrack
()
{
GraphicsTrack
*
track
=
new
GraphicsTrack
(
GraphicsTrack
::
Video
);
GraphicsTrack
*
track
=
new
GraphicsTrack
(
GraphicsTrack
::
Video
,
m_videoTracksCounter
);
track
->
setSizePolicy
(
QSizePolicy
::
Expanding
,
QSizePolicy
::
Fixed
);
track
->
setPreferredHeight
(
m_tracksHeight
);
track
->
setContentsMargins
(
0
,
0
,
0
,
0
);
...
...
@@ -116,7 +116,7 @@ void TracksView::addVideoTrack()
void
TracksView
::
addAudioTrack
()
{
GraphicsTrack
*
track
=
new
GraphicsTrack
(
GraphicsTrack
::
Audio
);
GraphicsTrack
*
track
=
new
GraphicsTrack
(
GraphicsTrack
::
Audio
,
0
);
track
->
setSizePolicy
(
QSizePolicy
::
Expanding
,
QSizePolicy
::
Fixed
);
track
->
setPreferredHeight
(
m_tracksHeight
);
track
->
setContentsMargins
(
0
,
0
,
0
,
0
);
...
...
src/gui/TracksView.h
View file @
077b7674
...
...
@@ -48,9 +48,14 @@ public:
Video
,
Audio
};
GraphicsTrack
(
Type
type
,
QGraphicsItem
*
parent
=
0
)
:
QGraphicsWidget
(
parent
)
GraphicsTrack
(
Type
type
,
int
trackNumber
,
QGraphicsItem
*
parent
=
0
)
:
QGraphicsWidget
(
parent
)
{
m_type
=
type
;
m_trackNumber
=
trackNumber
;
}
int
trackNumber
()
{
return
m_trackNumber
;
}
protected:
...
...
@@ -66,6 +71,7 @@ protected:
private:
Type
m_type
;
int
m_trackNumber
;
};
class
TracksView
:
public
QGraphicsView
...
...
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