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
c51eff1f
Commit
c51eff1f
authored
Feb 27, 2014
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: addons manager: add search box
parent
d0d1f57e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
modules/gui/qt4/dialogs/plugins.cpp
modules/gui/qt4/dialogs/plugins.cpp
+8
-0
No files found.
modules/gui/qt4/dialogs/plugins.cpp
View file @
c51eff1f
...
...
@@ -349,6 +349,10 @@ AddonsTab::AddonsTab( intf_thread_t *p_intf_ ) : QVLCFrame( p_intf_ )
leftPane
->
layout
()
->
setMargin
(
0
);
leftPane
->
layout
()
->
setSpacing
(
0
);
SearchLineEdit
*
searchInput
=
new
SearchLineEdit
();
leftPane
->
layout
()
->
addWidget
(
searchInput
);
leftPane
->
layout
()
->
addItem
(
new
QSpacerItem
(
0
,
10
)
);
QToolButton
*
button
;
QSignalMapper
*
mapper
=
new
QSignalMapper
();
QImage
icon
(
":/addons/default"
);
...
...
@@ -449,6 +453,7 @@ AddonsTab::AddonsTab( intf_thread_t *p_intf_ ) : QVLCFrame( p_intf_ )
AddonsListModel
*
model
=
new
AddonsListModel
(
AM
,
addonsView
);
addonsModel
=
new
AddonsSortFilterProxyModel
();
addonsModel
->
setDynamicSortFilter
(
true
);
addonsModel
->
setFilterCaseSensitivity
(
Qt
::
CaseInsensitive
);
addonsModel
->
setSortRole
(
Qt
::
DisplayRole
);
addonsModel
->
sort
(
0
,
Qt
::
AscendingOrder
);
addonsModel
->
setSourceModel
(
model
);
...
...
@@ -457,6 +462,9 @@ AddonsTab::AddonsTab( intf_thread_t *p_intf_ ) : QVLCFrame( p_intf_ )
CONNECT
(
mapper
,
mapped
(
int
),
addonsModel
,
setTypeFilter
(
int
)
);
CONNECT
(
searchInput
,
textChanged
(
const
QString
&
),
addonsModel
,
setFilterFixedString
(
QString
)
);
CONNECT
(
addonsView
->
selectionModel
(),
currentChanged
(
QModelIndex
,
QModelIndex
),
addonsView
,
edit
(
QModelIndex
)
);
...
...
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