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
d878853f
Commit
d878853f
authored
Apr 02, 2013
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: Plugins list: improve sorting
parent
e495dc9b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
modules/gui/qt4/dialogs/plugins.cpp
modules/gui/qt4/dialogs/plugins.cpp
+8
-1
modules/gui/qt4/dialogs/plugins.hpp
modules/gui/qt4/dialogs/plugins.hpp
+7
-0
No files found.
modules/gui/qt4/dialogs/plugins.cpp
View file @
d878853f
...
...
@@ -183,8 +183,15 @@ void PluginTab::keyPressEvent( QKeyEvent *keyEvent )
bool
PluginTreeItem
::
operator
<
(
const
QTreeWidgetItem
&
other
)
const
{
int
col
=
treeWidget
()
->
sortColumn
();
if
(
col
==
2
)
if
(
col
==
PluginTab
::
SCORE
)
return
text
(
col
).
toInt
()
<
other
.
text
(
col
).
toInt
();
else
if
(
col
==
PluginTab
::
CAPABILITY
)
{
if
(
text
(
PluginTab
::
CAPABILITY
)
==
other
.
text
(
PluginTab
::
CAPABILITY
)
)
return
text
(
PluginTab
::
NAME
)
<
other
.
text
(
PluginTab
::
NAME
);
else
return
text
(
PluginTab
::
CAPABILITY
)
<
other
.
text
(
PluginTab
::
CAPABILITY
);
}
return
text
(
col
)
<
other
.
text
(
col
);
}
...
...
modules/gui/qt4/dialogs/plugins.hpp
View file @
d878853f
...
...
@@ -69,6 +69,13 @@ private:
class
PluginTab
:
public
QVLCFrame
{
Q_OBJECT
public:
enum
{
NAME
=
0
,
CAPABILITY
,
SCORE
};
protected:
virtual
void
keyPressEvent
(
QKeyEvent
*
keyEvent
);
...
...
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