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
2d61d15a
Commit
2d61d15a
authored
Mar 16, 2010
by
Hugo Beauzee-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MediaListView: Hold MediaCellView instead of QWidgets
parent
e4c282ab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
src/Gui/library/MediaListView.cpp
src/Gui/library/MediaListView.cpp
+4
-4
src/Gui/library/MediaListView.h
src/Gui/library/MediaListView.h
+5
-5
No files found.
src/Gui/library/MediaListView.cpp
View file @
2d61d15a
...
...
@@ -44,7 +44,7 @@ MediaListView::MediaListView( StackViewController* nav, MediaContainer* mc ) :
MediaListView
::~
MediaListView
()
{
foreach
(
QWidget
*
cell
,
m_cells
)
foreach
(
MediaCellView
*
cell
,
m_cells
)
delete
cell
;
m_cells
.
clear
();
}
...
...
@@ -73,7 +73,7 @@ void MediaListView::cellSelection( const QUuid& uuid )
{
if
(
!
m_currentUuid
.
isNull
()
&&
m_cells
.
contains
(
m_currentUuid
)
)
{
QWidget
*
cell
=
m_cells
.
value
(
m_currentUuid
);
MediaCellView
*
cell
=
m_cells
.
value
(
m_currentUuid
);
cell
->
setPalette
(
m_cells
.
value
(
uuid
)
->
palette
()
);
}
QPalette
p
=
m_cells
.
value
(
uuid
)
->
palette
();
...
...
@@ -93,7 +93,7 @@ void MediaListView::removeClip( const Clip* clip )
void
MediaListView
::
__clipRemoved
(
const
QUuid
&
uuid
)
{
QWidget
*
cell
=
m_cells
.
take
(
uuid
);
MediaCellView
*
cell
=
m_cells
.
take
(
uuid
);
removeCell
(
cell
);
m_currentUuid
=
QUuid
();
}
...
...
@@ -101,7 +101,7 @@ MediaListView::__clipRemoved( const QUuid &uuid )
void
MediaListView
::
clear
()
{
foreach
(
QWidget
*
cell
,
m_cells
.
values
()
)
foreach
(
MediaCellView
*
cell
,
m_cells
.
values
()
)
removeCell
(
cell
);
m_cells
.
clear
();
}
...
...
src/Gui/library/MediaListView.h
View file @
2d61d15a
...
...
@@ -46,11 +46,11 @@ public:
virtual
~
MediaListView
();
private:
StackViewController
*
m_nav
;
QUuid
m_currentUuid
;
QHash
<
QUuid
,
QWidget
*>
m_cells
;
QUuid
m_lastUuidClipListAsked
;
MediaContainer
*
m_mediaContainer
;
StackViewController
*
m_nav
;
QUuid
m_currentUuid
;
QHash
<
QUuid
,
MediaCellView
*>
m_cells
;
QUuid
m_lastUuidClipListAsked
;
MediaContainer
*
m_mediaContainer
;
public
slots
:
void
cellSelection
(
const
QUuid
&
uuid
);
...
...
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