Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
349f96db
Commit
349f96db
authored
Nov 17, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: apply search on latest Inserted Item
Closes #4998
parent
98b99166
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
modules/gui/qt4/components/playlist/playlist_model.cpp
modules/gui/qt4/components/playlist/playlist_model.cpp
+5
-0
modules/gui/qt4/components/playlist/playlist_model.hpp
modules/gui/qt4/components/playlist/playlist_model.hpp
+3
-0
No files found.
modules/gui/qt4/components/playlist/playlist_model.cpp
View file @
349f96db
...
...
@@ -74,6 +74,7 @@ PLModel::PLModel( playlist_t *_p_playlist, /* THEPL */
sortingMenu
=
NULL
;
rootItem
=
NULL
;
/* PLItem rootItem, will be set in rebuild( ) */
latestSearch
=
QString
();
/* Icons initialization */
#define ADD_ICON(type, x) icons[ITEM_TYPE_##type] = QIcon( x )
...
...
@@ -653,6 +654,8 @@ void PLModel::processItemAppend( int i_item, int i_parent )
if
(
newItem
->
inputItem
()
==
THEMIM
->
currentInputItem
()
)
emit
currentIndexChanged
(
index
(
newItem
,
0
)
);
search
(
latestSearch
,
index
(
rootItem
,
0
),
false
/*FIXME*/
);
}
void
PLModel
::
rebuild
(
playlist_item_t
*
p_root
)
...
...
@@ -855,6 +858,8 @@ void PLModel::sort( const int i_root_id, const int column, Qt::SortOrder order )
void
PLModel
::
search
(
const
QString
&
search_text
,
const
QModelIndex
&
idx
,
bool
b_recursive
)
{
latestSearch
=
search_text
;
/** \todo Fire the search with a small delay ? */
PL_LOCK
;
{
...
...
modules/gui/qt4/components/playlist/playlist_model.hpp
View file @
349f96db
...
...
@@ -174,6 +174,9 @@ private:
/* Zoom factor for font-size */
int
i_zoom
;
/* */
QString
latestSearch
;
private
slots
:
void
popupPlay
();
void
popupDel
();
...
...
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