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
560da457
Commit
560da457
authored
Jan 14, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - Commenting playlist_model code.
parent
faad0752
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
121 additions
and
78 deletions
+121
-78
modules/gui/qt4/playlist_model.cpp
modules/gui/qt4/playlist_model.cpp
+113
-72
modules/gui/qt4/playlist_model.hpp
modules/gui/qt4/playlist_model.hpp
+8
-6
No files found.
modules/gui/qt4/playlist_model.cpp
View file @
560da457
This diff is collapsed.
Click to expand it.
modules/gui/qt4/playlist_model.hpp
View file @
560da457
...
...
@@ -39,6 +39,7 @@ class QSignalMapper;
class
PLItem
{
friend
class
PLModel
;
public:
PLItem
(
int
,
int
,
PLItem
*
parent
,
PLModel
*
);
PLItem
(
playlist_item_t
*
,
PLItem
*
parent
,
PLModel
*
);
...
...
@@ -52,23 +53,23 @@ public:
insertChild
(
item
,
children
.
count
(),
signal
);
};
void
remove
(
PLItem
*
removed
);
PLItem
*
child
(
int
row
)
{
return
children
.
value
(
row
);
};
int
childCount
()
const
{
return
children
.
count
();
};
QString
columnString
(
int
col
)
{
return
strings
.
value
(
col
);
};
QString
columnString
(
int
col
)
{
return
item_col_
strings
.
value
(
col
);
};
PLItem
*
parent
()
{
return
parentItem
;
};
void
update
(
playlist_item_t
*
,
bool
);
protected:
QList
<
PLItem
*>
children
;
QList
<
QString
>
strings
;
bool
current
;
QList
<
QString
>
item_col_
strings
;
bool
b_
current
;
int
i_type
;
int
i_id
;
int
i_input_id
;
int
i_showflags
;
void
updateview
(
void
);
friend
class
PLModel
;
void
updateview
();
private:
void
init
(
int
,
int
,
PLItem
*
,
PLModel
*
);
PLItem
*
parentItem
;
...
...
@@ -100,6 +101,8 @@ class PLModel : public QAbstractItemModel
{
Q_OBJECT
friend
class
PLItem
;
public:
PLModel
(
playlist_t
*
,
intf_thread_t
*
,
playlist_item_t
*
,
int
,
QObject
*
parent
=
0
);
...
...
@@ -198,7 +201,6 @@ private slots:
void
popupExplore
();
#endif
void
viewchanged
(
int
);
friend
class
PLItem
;
};
#endif
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