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
b131df4e
Commit
b131df4e
authored
Oct 24, 2010
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: search differently when you are in SD
So that you don't kill the lua.sd search() functions
parent
b528f595
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
modules/gui/qt4/components/playlist/standardpanel.cpp
modules/gui/qt4/components/playlist/standardpanel.cpp
+13
-3
modules/gui/qt4/components/playlist/standardpanel.hpp
modules/gui/qt4/components/playlist/standardpanel.hpp
+1
-0
No files found.
modules/gui/qt4/components/playlist/standardpanel.cpp
View file @
b131df4e
...
@@ -90,8 +90,10 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
...
@@ -90,8 +90,10 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
searchEdit
->
setMaximumWidth
(
250
);
searchEdit
->
setMaximumWidth
(
250
);
searchEdit
->
setMinimumWidth
(
80
);
searchEdit
->
setMinimumWidth
(
80
);
layout
->
addWidget
(
searchEdit
,
0
,
2
);
layout
->
addWidget
(
searchEdit
,
0
,
2
);
CONNECT
(
searchEdit
,
text
Chang
ed
(
const
QString
&
),
CONNECT
(
searchEdit
,
text
Edit
ed
(
const
QString
&
),
this
,
search
(
const
QString
&
)
);
this
,
search
(
const
QString
&
)
);
CONNECT
(
searchEdit
,
editingFinished
(),
this
,
searchDelayed
()
);
layout
->
setColumnStretch
(
2
,
3
);
layout
->
setColumnStretch
(
2
,
3
);
/* Button to switch views */
/* Button to switch views */
...
@@ -219,10 +221,18 @@ void StandardPLPanel::search( const QString& searchText )
...
@@ -219,10 +221,18 @@ void StandardPLPanel::search( const QString& searchText )
flat
?
currentView
->
rootIndex
()
:
QModelIndex
(),
flat
?
currentView
->
rootIndex
()
:
QModelIndex
(),
!
flat
);
!
flat
);
}
}
else
}
void
StandardPLPanel
::
searchDelayed
()
{
int
type
;
QString
name
;
p_selector
->
getCurrentSelectedItem
(
&
type
,
&
name
);
if
(
type
==
SD_TYPE
)
{
{
if
(
!
name
.
isEmpty
()
)
if
(
!
name
.
isEmpty
()
)
playlist_QueryServicesDiscovery
(
THEPL
,
qtu
(
name
),
qtu
(
search
Text
)
);
playlist_QueryServicesDiscovery
(
THEPL
,
qtu
(
name
),
qtu
(
search
Edit
->
text
()
)
);
}
}
}
}
...
...
modules/gui/qt4/components/playlist/standardpanel.hpp
View file @
b131df4e
...
@@ -111,6 +111,7 @@ private slots:
...
@@ -111,6 +111,7 @@ private slots:
void
handleRootChange
();
void
handleRootChange
();
void
gotoPlayingItem
();
void
gotoPlayingItem
();
void
search
(
const
QString
&
searchText
);
void
search
(
const
QString
&
searchText
);
void
searchDelayed
();
void
popupSelectColumn
(
QPoint
);
void
popupSelectColumn
(
QPoint
);
void
popupPlView
(
const
QPoint
&
);
void
popupPlView
(
const
QPoint
&
);
void
toggleColumnShown
(
int
);
void
toggleColumnShown
(
int
);
...
...
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