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
cdd26d2f
Commit
cdd26d2f
authored
Jan 28, 2010
by
Jakob Leben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: playlist (Fix #3248) Set model after sorting enabled to prevent sorting immediately
And add a debug msg when sorting happens.
parent
1adc6693
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
modules/gui/qt4/components/playlist/playlist_model.cpp
modules/gui/qt4/components/playlist/playlist_model.cpp
+2
-0
modules/gui/qt4/components/playlist/standardpanel.cpp
modules/gui/qt4/components/playlist/standardpanel.cpp
+3
-1
No files found.
modules/gui/qt4/components/playlist/playlist_model.cpp
View file @
cdd26d2f
...
@@ -815,6 +815,8 @@ void PLModel::sort( int column, Qt::SortOrder order )
...
@@ -815,6 +815,8 @@ void PLModel::sort( int column, Qt::SortOrder order )
void
PLModel
::
sort
(
int
i_root_id
,
int
column
,
Qt
::
SortOrder
order
)
void
PLModel
::
sort
(
int
i_root_id
,
int
column
,
Qt
::
SortOrder
order
)
{
{
msg_Dbg
(
p_intf
,
"Sorting by column %i, order %i"
,
column
,
order
);
int
meta
=
columnToMeta
(
column
);
int
meta
=
columnToMeta
(
column
);
if
(
meta
==
COLUMN_END
)
return
;
if
(
meta
==
COLUMN_END
)
return
;
...
...
modules/gui/qt4/components/playlist/standardpanel.cpp
View file @
cdd26d2f
...
@@ -295,7 +295,6 @@ void StandardPLPanel::createTreeView()
...
@@ -295,7 +295,6 @@ void StandardPLPanel::createTreeView()
{
{
/* Create and configure the QTreeView */
/* Create and configure the QTreeView */
treeView
=
new
QTreeView
;
treeView
=
new
QTreeView
;
treeView
->
setModel
(
model
);
treeView
->
setIconSize
(
QSize
(
20
,
20
)
);
treeView
->
setIconSize
(
QSize
(
20
,
20
)
);
treeView
->
setAlternatingRowColors
(
true
);
treeView
->
setAlternatingRowColors
(
true
);
...
@@ -314,6 +313,9 @@ void StandardPLPanel::createTreeView()
...
@@ -314,6 +313,9 @@ void StandardPLPanel::createTreeView()
treeView
->
setDropIndicatorShown
(
true
);
treeView
->
setDropIndicatorShown
(
true
);
treeView
->
setContextMenuPolicy
(
Qt
::
CustomContextMenu
);
treeView
->
setContextMenuPolicy
(
Qt
::
CustomContextMenu
);
/* setModel after setSortingEnabled(true), or the model will sort immediately! */
treeView
->
setModel
(
model
);
if
(
getSettings
()
->
contains
(
"headerStateV2"
)
)
if
(
getSettings
()
->
contains
(
"headerStateV2"
)
)
{
{
treeView
->
header
()
->
restoreState
(
treeView
->
header
()
->
restoreState
(
...
...
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