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
5d58894f
Commit
5d58894f
authored
Jul 18, 2012
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: PL/MLModel: remove nolonger used SelectedUri()
parent
9449cc33
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
39 deletions
+0
-39
modules/gui/qt4/components/playlist/ml_model.cpp
modules/gui/qt4/components/playlist/ml_model.cpp
+0
-12
modules/gui/qt4/components/playlist/ml_model.hpp
modules/gui/qt4/components/playlist/ml_model.hpp
+0
-1
modules/gui/qt4/components/playlist/playlist_model.cpp
modules/gui/qt4/components/playlist/playlist_model.cpp
+0
-25
modules/gui/qt4/components/playlist/playlist_model.hpp
modules/gui/qt4/components/playlist/playlist_model.hpp
+0
-1
No files found.
modules/gui/qt4/components/playlist/ml_model.cpp
View file @
5d58894f
...
...
@@ -566,18 +566,6 @@ bool MLModel::isCurrentItem( const QModelIndex &index, playLocation where ) cons
return
false
;
}
QStringList
MLModel
::
selectedURIs
(
QModelIndexList
*
current_selection
)
{
QStringList
list
;
for
(
int
i
=
0
;
i
<
current_selection
->
count
();
i
++
)
{
QModelIndex
idx
=
current_selection
->
value
(
i
);
MLItem
*
item
=
static_cast
<
MLItem
*
>
(
idx
.
internalPointer
()
);
list
.
append
(
QString
(
item
->
getUri
().
toString
()
)
);
}
return
list
;
}
QModelIndex
MLModel
::
getIndexByMLID
(
int
id
)
const
{
for
(
int
i
=
0
;
i
<
rowCount
(
);
i
++
)
...
...
modules/gui/qt4/components/playlist/ml_model.hpp
View file @
5d58894f
...
...
@@ -95,7 +95,6 @@ public:
void
clear
();
void
play
(
const
QModelIndex
&
idx
);
QStringList
selectedURIs
(
QModelIndexList
*
);
virtual
QString
getURI
(
const
QModelIndex
&
index
)
const
;
virtual
QModelIndex
rootIndex
()
const
;
virtual
bool
isTree
()
const
;
...
...
modules/gui/qt4/components/playlist/playlist_model.cpp
View file @
5d58894f
...
...
@@ -593,31 +593,6 @@ int PLModel::rowCount( const QModelIndex &parent ) const
return
parentItem
->
childCount
();
}
QStringList
PLModel
::
selectedURIs
(
QModelIndexList
*
current_selection
)
{
QStringList
lst
;
for
(
int
i
=
0
;
i
<
current_selection
->
count
();
i
++
)
{
const
PLItem
*
item
=
getItem
(
current_selection
->
at
(
i
)
);
if
(
item
)
{
PL_LOCK
;
playlist_item_t
*
p_item
=
playlist_ItemGetById
(
p_playlist
,
item
->
i_id
);
if
(
p_item
)
{
char
*
psz
=
input_item_GetURI
(
p_item
->
p_input
);
if
(
psz
)
{
lst
.
append
(
qfu
(
psz
)
);
free
(
psz
);
}
}
PL_UNLOCK
;
}
}
return
lst
;
}
/************************* Lookups *****************************/
PLItem
*
PLModel
::
findById
(
PLItem
*
root
,
int
i_id
)
const
{
...
...
modules/gui/qt4/components/playlist/playlist_model.hpp
View file @
5d58894f
...
...
@@ -150,7 +150,6 @@ private:
return
static_cast
<
PLItem
*>
(
index
.
internalPointer
()
);
else
return
rootItem
;
}
QStringList
selectedURIs
(
QModelIndexList
*
);
QModelIndex
index
(
PLItem
*
,
const
int
c
)
const
;
bool
isCurrent
(
const
QModelIndex
&
index
)
const
;
bool
isParent
(
const
QModelIndex
&
index
,
const
QModelIndex
&
current
)
const
;
...
...
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