Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
76cc0af9
Commit
76cc0af9
authored
Jan 28, 2010
by
Jakob Leben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: make PLModel::getItem return rootItem as well, add id getter to PLItem
parent
6a5e8468
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
modules/gui/qt4/components/playlist/playlist_item.hpp
modules/gui/qt4/components/playlist/playlist_item.hpp
+1
-0
modules/gui/qt4/components/playlist/playlist_model.cpp
modules/gui/qt4/components/playlist/playlist_model.cpp
+0
-6
modules/gui/qt4/components/playlist/playlist_model.hpp
modules/gui/qt4/components/playlist/playlist_model.hpp
+6
-1
No files found.
modules/gui/qt4/components/playlist/playlist_item.hpp
View file @
76cc0af9
...
@@ -55,6 +55,7 @@ public:
...
@@ -55,6 +55,7 @@ public:
PLItem
*
parent
()
{
return
parentItem
;
}
PLItem
*
parent
()
{
return
parentItem
;
}
input_item_t
*
inputItem
()
{
return
p_input
;
}
input_item_t
*
inputItem
()
{
return
p_input
;
}
int
id
()
{
return
i_id
;
}
protected:
protected:
QList
<
PLItem
*>
children
;
QList
<
PLItem
*>
children
;
...
...
modules/gui/qt4/components/playlist/playlist_model.cpp
View file @
76cc0af9
...
@@ -529,12 +529,6 @@ PLItem * PLModel::findInner( PLItem *root, int i_id, bool b_input )
...
@@ -529,12 +529,6 @@ PLItem * PLModel::findInner( PLItem *root, int i_id, bool b_input )
#undef CACHE
#undef CACHE
#undef ICACHE
#undef ICACHE
PLItem
*
PLModel
::
getItem
(
QModelIndex
index
)
{
assert
(
index
.
isValid
()
);
return
static_cast
<
PLItem
*>
(
index
.
internalPointer
()
);
}
int
PLModel
::
columnToMeta
(
int
_column
)
const
int
PLModel
::
columnToMeta
(
int
_column
)
const
{
{
int
meta
=
1
;
int
meta
=
1
;
...
...
modules/gui/qt4/components/playlist/playlist_model.hpp
View file @
76cc0af9
...
@@ -96,7 +96,12 @@ public:
...
@@ -96,7 +96,12 @@ public:
void
removeItem
(
int
);
void
removeItem
(
int
);
void
rebuild
();
void
rebuild
(
playlist_item_t
*
,
bool
b_first
=
false
);
void
rebuild
();
void
rebuild
(
playlist_item_t
*
,
bool
b_first
=
false
);
static
inline
PLItem
*
getItem
(
QModelIndex
index
);
inline
PLItem
*
getItem
(
QModelIndex
index
)
const
{
if
(
index
.
isValid
()
)
return
static_cast
<
PLItem
*>
(
index
.
internalPointer
()
);
else
return
rootItem
;
}
private:
private:
...
...
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