Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
f5714b1e
Commit
f5714b1e
authored
Jul 20, 2012
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: PL/MLModels: implement columnCount() in parent class
parent
3f169532
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
12 deletions
+9
-12
modules/gui/qt4/components/playlist/ml_model.cpp
modules/gui/qt4/components/playlist/ml_model.cpp
+0
-5
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
-5
modules/gui/qt4/components/playlist/playlist_model.hpp
modules/gui/qt4/components/playlist/playlist_model.hpp
+0
-1
modules/gui/qt4/components/playlist/vlc_model.cpp
modules/gui/qt4/components/playlist/vlc_model.cpp
+6
-0
modules/gui/qt4/components/playlist/vlc_model.hpp
modules/gui/qt4/components/playlist/vlc_model.hpp
+3
-0
No files found.
modules/gui/qt4/components/playlist/ml_model.cpp
View file @
f5714b1e
...
...
@@ -214,11 +214,6 @@ QMimeData* MLModel::mimeData( const QModelIndexList &indexes ) const
return
data
;
}
int
MLModel
::
columnCount
(
const
QModelIndex
&
)
const
{
return
columnFromMeta
(
COLUMN_END
);
}
int
MLModel
::
rowCount
(
const
QModelIndex
&
parent
)
const
{
if
(
!
parent
.
isValid
()
)
...
...
modules/gui/qt4/components/playlist/ml_model.hpp
View file @
f5714b1e
...
...
@@ -67,7 +67,6 @@ public:
const
QModelIndex
&
parent
=
QModelIndex
()
)
const
;
virtual
QModelIndex
currentIndex
()
const
;
int
rowCount
(
const
QModelIndex
&
parent
=
QModelIndex
()
)
const
;
int
columnCount
(
const
QModelIndex
&
parent
=
QModelIndex
()
)
const
;
QModelIndex
parent
(
const
QModelIndex
&
)
const
;
QVariant
headerData
(
int
,
Qt
::
Orientation
,
int
)
const
;
...
...
modules/gui/qt4/components/playlist/playlist_model.cpp
View file @
f5714b1e
...
...
@@ -575,11 +575,6 @@ QModelIndex PLModel::parent( const QModelIndex &index ) const
return
createIndex
(
parentItem
->
row
(),
0
,
parentItem
);
}
int
PLModel
::
columnCount
(
const
QModelIndex
&
)
const
{
return
columnFromMeta
(
COLUMN_END
);
}
int
PLModel
::
rowCount
(
const
QModelIndex
&
parent
)
const
{
const
PLItem
*
parentItem
=
parent
.
isValid
()
?
getItem
(
parent
)
:
rootItem
;
...
...
modules/gui/qt4/components/playlist/playlist_model.hpp
View file @
f5714b1e
...
...
@@ -78,7 +78,6 @@ public:
virtual
QVariant
headerData
(
int
section
,
Qt
::
Orientation
orientation
,
int
role
=
Qt
::
DisplayRole
)
const
;
virtual
int
rowCount
(
const
QModelIndex
&
parent
=
QModelIndex
()
)
const
;
virtual
int
columnCount
(
const
QModelIndex
&
parent
=
QModelIndex
()
)
const
;
virtual
Qt
::
ItemFlags
flags
(
const
QModelIndex
&
index
)
const
;
virtual
QModelIndex
index
(
const
int
r
,
const
int
c
,
const
QModelIndex
&
parent
)
const
;
virtual
QModelIndex
parent
(
const
QModelIndex
&
index
)
const
;
...
...
modules/gui/qt4/components/playlist/vlc_model.cpp
View file @
f5714b1e
...
...
@@ -76,3 +76,9 @@ QPixmap VLCModel::getArtPixmap( const QModelIndex & index, const QSize & size )
return
artPix
;
}
int
VLCModel
::
columnCount
(
const
QModelIndex
&
)
const
{
return
columnFromMeta
(
COLUMN_END
);
}
modules/gui/qt4/components/playlist/vlc_model.hpp
View file @
f5714b1e
...
...
@@ -50,6 +50,9 @@ public:
};
VLCModel
(
intf_thread_t
*
_p_intf
,
QObject
*
parent
=
0
);
/*** QAbstractItemModel subclassing ***/
virtual
int
columnCount
(
const
QModelIndex
&
parent
=
QModelIndex
()
)
const
;
virtual
int
itemId
(
const
QModelIndex
&
)
const
=
0
;
virtual
input_item_t
*
getInputItem
(
const
QModelIndex
&
)
const
=
0
;
virtual
QModelIndex
currentIndex
()
const
=
0
;
...
...
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