Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
VLMC
Commits
4deb5be2
Commit
4deb5be2
authored
Jun 06, 2009
by
Ludovic Fauvet
Browse files
Adjust the default size of the tracks
parent
dda23ab9
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/gui/TracksView.cpp
View file @
4deb5be2
...
...
@@ -70,11 +70,14 @@ TracksView::TracksView( QGraphicsScene* scene, MainWorkflow* mainWorkflow, QWidg
void
TracksView
::
createLayout
()
{
m_layout
=
new
QGraphicsLinearLayout
(
Qt
::
Vertical
);
m_layout
->
setSizePolicy
(
QSizePolicy
::
Expanding
,
QSizePolicy
::
Preferred
);
m_layout
->
setContentsMargins
(
0
,
0
,
0
,
0
);
m_layout
->
setSpacing
(
0
);
QGraphicsWidget
*
container
=
new
QGraphicsWidget
();
container
->
setSizePolicy
(
QSizePolicy
::
Expanding
,
QSizePolicy
::
Preferred
);
container
->
setContentsMargins
(
0
,
0
,
0
,
0
);
container
->
setPreferredWidth
(
0
);
container
->
setLayout
(
m_layout
);
addVideoTrack
();
...
...
src/gui/TracksView.h
View file @
4deb5be2
...
...
@@ -46,6 +46,7 @@ public:
protected:
virtual
void
paint
(
QPainter
*
painter
,
const
QStyleOptionGraphicsItem
*
,
QWidget
*
=
0
)
{
painter
->
setPen
(
Qt
::
transparent
);
painter
->
setBrush
(
Qt
::
cyan
);
painter
->
drawRect
(
rect
()
);
}
...
...
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