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
3554eedc
Commit
3554eedc
authored
Oct 20, 2009
by
Dylan Yudaken
Committed by
Jean-Baptiste Kempf
Oct 21, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix sorting of plugin scores in the QT plugin dialog.
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
0b8acb0f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletion
+18
-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
+10
-0
No files found.
modules/gui/qt4/dialogs/plugins.cpp
View file @
3554eedc
...
...
@@ -106,7 +106,7 @@ inline void PluginDialog::FillTree()
if
(
qs_item
.
at
(
1
).
isEmpty
()
)
continue
;
#endif
QTreeWidgetItem
*
item
=
new
QTreeWidget
Item
(
qs_item
);
QTreeWidgetItem
*
item
=
new
PluginTree
Item
(
qs_item
);
treePlugins
->
addTopLevelItem
(
item
);
}
}
...
...
@@ -131,3 +131,10 @@ PluginDialog::~PluginDialog()
treePlugins
->
header
()
->
saveState
()
);
}
bool
PluginTreeItem
::
operator
<
(
const
QTreeWidgetItem
&
other
)
const
{
int
col
=
treeWidget
()
->
sortColumn
();
if
(
col
==
2
)
return
text
(
col
).
toInt
()
<
other
.
text
(
col
).
toInt
();
return
text
(
col
)
<
other
.
text
(
col
);
}
modules/gui/qt4/dialogs/plugins.hpp
View file @
3554eedc
...
...
@@ -25,6 +25,8 @@
#define QVLC_PLUGIN_DIALOG_H_ 1
#include "util/qvlcframe.hpp"
#include <QTreeWidget>
#include <QStringList>
class
QTreeWidget
;
class
QLineEdit
;
...
...
@@ -57,5 +59,13 @@ private slots:
void
search
(
const
QString
&
);
};
class
PluginTreeItem
:
public
QTreeWidgetItem
{
public:
PluginTreeItem
(
QStringList
&
qs_item
,
int
Type
=
QTreeWidgetItem
::
Type
)
:
QTreeWidgetItem
(
qs_item
,
Type
)
{
}
virtual
bool
operator
<
(
const
QTreeWidgetItem
&
other
)
const
;
};
#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