Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
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 )
...
@@ -796,52 +796,52 @@ void PLModel::popup( QModelIndex & index, QPoint &point, QModelIndexList list )
void
PLModel
::
viewchanged
(
int
meta
)
void
PLModel
::
viewchanged
(
int
meta
)
{
{
if
(
rootItem
)
if
(
rootItem
)
{
{
int
index
=
0
;
int
index
=
0
;
switch
(
meta
)
switch
(
meta
)
{
{
case
VLC_META_ENGINE_TITLE
:
case
VLC_META_ENGINE_TITLE
:
index
=
0
;
break
;
index
=
0
;
break
;
case
VLC_META_ENGINE_DURATION
:
case
VLC_META_ENGINE_DURATION
:
index
=
1
;
break
;
index
=
1
;
break
;
case
VLC_META_ENGINE_ARTIST
:
case
VLC_META_ENGINE_ARTIST
:
index
=
2
;
break
;
index
=
2
;
break
;
case
VLC_META_ENGINE_GENRE
:
case
VLC_META_ENGINE_GENRE
:
index
=
3
;
break
;
index
=
3
;
break
;
case
VLC_META_ENGINE_COPYRIGHT
:
case
VLC_META_ENGINE_COPYRIGHT
:
index
=
4
;
break
;
index
=
4
;
break
;
case
VLC_META_ENGINE_COLLECTION
:
case
VLC_META_ENGINE_COLLECTION
:
index
=
5
;
break
;
index
=
5
;
break
;
case
VLC_META_ENGINE_SEQ_NUM
:
case
VLC_META_ENGINE_SEQ_NUM
:
index
=
6
;
break
;
index
=
6
;
break
;
case
VLC_META_ENGINE_DESCRIPTION
:
case
VLC_META_ENGINE_DESCRIPTION
:
index
=
7
;
break
;
index
=
7
;
break
;
default:
default:
break
;
break
;
}
}
/* UNUSED emit layoutAboutToBeChanged(); */
/* UNUSED emit layoutAboutToBeChanged(); */
index
=
__MIN
(
index
,
rootItem
->
item_col_strings
.
count
()
);
index
=
__MIN
(
index
,
rootItem
->
item_col_strings
.
count
()
);
QModelIndex
parent
=
createIndex
(
0
,
0
,
rootItem
);
QModelIndex
parent
=
createIndex
(
0
,
0
,
rootItem
);
if
(
rootItem
->
i_showflags
&
meta
)
if
(
rootItem
->
i_showflags
&
meta
)
/* Removing columns */
/* Removing columns */
{
{
beginRemoveColumns
(
parent
,
index
,
index
+
1
);
beginRemoveColumns
(
parent
,
index
,
index
+
1
);
rootItem
->
i_showflags
&=
~
(
meta
);
rootItem
->
i_showflags
&=
~
(
meta
);
rootItem
->
updateColumnHeaders
();
rootItem
->
updateColumnHeaders
();
endRemoveColumns
();
endRemoveColumns
();
}
}
else
else
{
{
/* Adding columns */
/* Adding columns */
beginInsertColumns
(
createIndex
(
0
,
0
,
rootItem
),
index
,
index
+
1
);
beginInsertColumns
(
createIndex
(
0
,
0
,
rootItem
),
index
,
index
+
1
);
rootItem
->
i_showflags
|=
meta
;
rootItem
->
i_showflags
|=
meta
;
rootItem
->
updateColumnHeaders
();
rootItem
->
updateColumnHeaders
();
endInsertColumns
();
endInsertColumns
();
}
}
rebuild
();
rebuild
();
}
}
}
}
void
PLModel
::
popupDel
()
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