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
f12f24b9
Commit
f12f24b9
authored
Jan 14, 2010
by
Clement CHAVANCE
Browse files
disable clip related features on a mediacellView containing a clip
parent
4a319366
Changes
5
Hide whitespace changes
Inline
Side-by-side
src/Gui/import/ImportMediaListController.cpp
View file @
f12f24b9
...
...
@@ -86,6 +86,7 @@ void
ImportMediaListController
::
addClip
(
Clip
*
clip
)
{
ImportMediaCellView
*
cell
=
new
ImportMediaCellView
(
clip
->
getUuid
()
);
cell
->
containsClip
();
connect
(
cell
,
SIGNAL
(
cellSelected
(
const
QUuid
&
)
),
this
,
SIGNAL
(
clipSelected
(
const
QUuid
&
)
)
);
connect
(
cell
,
SIGNAL
(
cellDeleted
(
const
QUuid
&
)
),
...
...
src/Gui/library/ClipListViewController.cpp
View file @
f12f24b9
...
...
@@ -60,6 +60,7 @@ void ClipListViewController::resetNbDeletion()
void
ClipListViewController
::
addClip
(
Clip
*
clip
)
{
MediaCellView
*
cell
=
new
MediaCellView
(
clip
->
getUuid
()
);
cell
->
containsClip
();
connect
(
cell
,
SIGNAL
(
cellSelected
(
QUuid
)
),
this
,
SLOT
(
cellSelection
(
const
QUuid
&
)
)
);
connect
(
cell
,
SIGNAL
(
cellDeleted
(
const
QUuid
&
)
),
this
,
SLOT
(
clipDeletion
(
const
QUuid
&
)
)
);
...
...
src/Gui/library/MediaCellView.cpp
View file @
f12f24b9
...
...
@@ -186,3 +186,14 @@ void MediaCellView::decrementClipCount( const int nb )
clips
=
0
;
m_ui
->
clipCount
->
setText
(
QString
::
number
(
clips
)
);
}
void
MediaCellView
::
containsClip
()
{
m_ui
->
clipCount
->
hide
();
m_ui
->
clipCountLabel
->
hide
();
m_ui
->
arrow
->
hide
();
disconnect
(
m_ui
->
arrow
,
SIGNAL
(
clicked
(
QWidget
*
,
QMouseEvent
*
)
),
this
,
SLOT
(
arrowButtonClicked
(
QWidget
*
,
QMouseEvent
*
)
)
);
}
src/Gui/library/MediaCellView.h
View file @
f12f24b9
...
...
@@ -56,6 +56,7 @@ public:
const
QUuid
&
uuid
()
const
;
const
ClickableLabel
*
nextButton
()
const
;
const
ClickableLabel
*
deleteButton
()
const
;
void
containsClip
();
protected:
void
changeEvent
(
QEvent
*
e
);
...
...
src/Gui/library/ui/MediaCellView.ui
View file @
f12f24b9
...
...
@@ -133,7 +133,7 @@
<item>
<layout
class=
"QGridLayout"
name=
"gridLayout"
>
<item
row=
"0"
column=
"0"
>
<widget
class=
"QLabel"
name=
"
l
abel
_2
"
>
<widget
class=
"QLabel"
name=
"
clipCountL
abel"
>
<property
name=
"font"
>
<font>
<pointsize>
7
</pointsize>
...
...
@@ -163,7 +163,7 @@
</widget>
</item>
<item
row=
"1"
column=
"0"
>
<widget
class=
"QLabel"
name=
"label
_4
"
>
<widget
class=
"QLabel"
name=
"l
engthL
abel"
>
<property
name=
"font"
>
<font>
<pointsize>
7
</pointsize>
...
...
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