Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
94fa9601
Commit
94fa9601
authored
Feb 26, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Coding convention
parent
e61cd9b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
46 deletions
+46
-46
modules/gui/qt4/components/playlist/playlist_model.cpp
modules/gui/qt4/components/playlist/playlist_model.cpp
+46
-46
No files found.
modules/gui/qt4/components/playlist/playlist_model.cpp
View file @
94fa9601
...
...
@@ -796,52 +796,52 @@ void PLModel::popup( QModelIndex & index, QPoint &point, QModelIndexList list )
void
PLModel
::
viewchanged
(
int
meta
)
{
if
(
rootItem
)
{
int
index
=
0
;
switch
(
meta
)
{
case
VLC_META_ENGINE_TITLE
:
index
=
0
;
break
;
case
VLC_META_ENGINE_DURATION
:
index
=
1
;
break
;
case
VLC_META_ENGINE_ARTIST
:
index
=
2
;
break
;
case
VLC_META_ENGINE_GENRE
:
index
=
3
;
break
;
case
VLC_META_ENGINE_COPYRIGHT
:
index
=
4
;
break
;
case
VLC_META_ENGINE_COLLECTION
:
index
=
5
;
break
;
case
VLC_META_ENGINE_SEQ_NUM
:
index
=
6
;
break
;
case
VLC_META_ENGINE_DESCRIPTION
:
index
=
7
;
break
;
default:
break
;
}
/* UNUSED emit layoutAboutToBeChanged(); */
index
=
__MIN
(
index
,
rootItem
->
item_col_strings
.
count
()
);
QModelIndex
parent
=
createIndex
(
0
,
0
,
rootItem
);
if
(
rootItem
->
i_showflags
&
meta
)
/* Removing columns */
{
beginRemoveColumns
(
parent
,
index
,
index
+
1
);
rootItem
->
i_showflags
&=
~
(
meta
);
rootItem
->
updateColumnHeaders
();
endRemoveColumns
();
}
else
{
/* Adding columns */
beginInsertColumns
(
createIndex
(
0
,
0
,
rootItem
),
index
,
index
+
1
);
rootItem
->
i_showflags
|=
meta
;
rootItem
->
updateColumnHeaders
();
endInsertColumns
();
}
rebuild
();
}
if
(
rootItem
)
{
int
index
=
0
;
switch
(
meta
)
{
case
VLC_META_ENGINE_TITLE
:
index
=
0
;
break
;
case
VLC_META_ENGINE_DURATION
:
index
=
1
;
break
;
case
VLC_META_ENGINE_ARTIST
:
index
=
2
;
break
;
case
VLC_META_ENGINE_GENRE
:
index
=
3
;
break
;
case
VLC_META_ENGINE_COPYRIGHT
:
index
=
4
;
break
;
case
VLC_META_ENGINE_COLLECTION
:
index
=
5
;
break
;
case
VLC_META_ENGINE_SEQ_NUM
:
index
=
6
;
break
;
case
VLC_META_ENGINE_DESCRIPTION
:
index
=
7
;
break
;
default:
break
;
}
/* UNUSED emit layoutAboutToBeChanged(); */
index
=
__MIN
(
index
,
rootItem
->
item_col_strings
.
count
()
);
QModelIndex
parent
=
createIndex
(
0
,
0
,
rootItem
);
if
(
rootItem
->
i_showflags
&
meta
)
/* Removing columns */
{
beginRemoveColumns
(
parent
,
index
,
index
+
1
);
rootItem
->
i_showflags
&=
~
(
meta
);
rootItem
->
updateColumnHeaders
();
endRemoveColumns
();
}
else
{
/* Adding columns */
beginInsertColumns
(
createIndex
(
0
,
0
,
rootItem
),
index
,
index
+
1
);
rootItem
->
i_showflags
|=
meta
;
rootItem
->
updateColumnHeaders
();
endInsertColumns
();
}
rebuild
();
}
}
void
PLModel
::
popupDel
()
...
...
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