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
f9ed4872
Commit
f9ed4872
authored
Aug 26, 2006
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetics
parent
9f13f726
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
7 deletions
+6
-7
modules/gui/qt4/components/playlist/standardpanel.cpp
modules/gui/qt4/components/playlist/standardpanel.cpp
+1
-1
modules/gui/qt4/dialogs/playlist.cpp
modules/gui/qt4/dialogs/playlist.cpp
+5
-2
modules/gui/qt4/playlist_model.cpp
modules/gui/qt4/playlist_model.cpp
+0
-4
No files found.
modules/gui/qt4/components/playlist/standardpanel.cpp
View file @
f9ed4872
...
@@ -48,7 +48,7 @@ StandardPLPanel::StandardPLPanel( QWidget *_parent, intf_thread_t *_p_intf,
...
@@ -48,7 +48,7 @@ StandardPLPanel::StandardPLPanel( QWidget *_parent, intf_thread_t *_p_intf,
view
->
setModel
(
model
);
view
->
setModel
(
model
);
view
->
setIconSize
(
QSize
(
20
,
20
)
);
view
->
setIconSize
(
QSize
(
20
,
20
)
);
view
->
setAlternatingRowColors
(
true
);
view
->
setAlternatingRowColors
(
true
);
view
->
header
()
->
resizeSection
(
0
,
30
0
);
view
->
header
()
->
resizeSection
(
0
,
23
0
);
view
->
header
()
->
setSortIndicatorShown
(
true
);
view
->
header
()
->
setSortIndicatorShown
(
true
);
view
->
header
()
->
setClickable
(
true
);
view
->
header
()
->
setClickable
(
true
);
view
->
setSelectionMode
(
QAbstractItemView
::
ExtendedSelection
);
view
->
setSelectionMode
(
QAbstractItemView
::
ExtendedSelection
);
...
...
modules/gui/qt4/dialogs/playlist.cpp
View file @
f9ed4872
...
@@ -41,8 +41,11 @@ PlaylistDialog::PlaylistDialog( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
...
@@ -41,8 +41,11 @@ PlaylistDialog::PlaylistDialog( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
selector
=
new
PLSelector
(
centralWidget
(),
p_intf
,
THEPL
);
selector
=
new
PLSelector
(
centralWidget
(),
p_intf
,
THEPL
);
selector
->
setMaximumWidth
(
140
);
selector
->
setMaximumWidth
(
140
);
playlist_item_t
*
p_root
=
playlist_GetPreferredNode
(
THEPL
,
THEPL
->
p_local_category
);
rightPanel
=
qobject_cast
<
PLPanel
*>
(
new
StandardPLPanel
(
centralWidget
(),
rightPanel
=
qobject_cast
<
PLPanel
*>
(
new
StandardPLPanel
(
centralWidget
(),
p_intf
,
THEPL
,
THEPL
->
p_local_category
)
);
p_intf
,
THEPL
,
p_root
)
);
connect
(
selector
,
SIGNAL
(
activated
(
int
)
),
connect
(
selector
,
SIGNAL
(
activated
(
int
)
),
rightPanel
,
SLOT
(
setRoot
(
int
)
)
);
rightPanel
,
SLOT
(
setRoot
(
int
)
)
);
...
@@ -50,7 +53,7 @@ PlaylistDialog::PlaylistDialog( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
...
@@ -50,7 +53,7 @@ PlaylistDialog::PlaylistDialog( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
layout
->
addWidget
(
selector
,
0
);
layout
->
addWidget
(
selector
,
0
);
layout
->
addWidget
(
rightPanel
,
10
);
layout
->
addWidget
(
rightPanel
,
10
);
centralWidget
()
->
setLayout
(
layout
);
centralWidget
()
->
setLayout
(
layout
);
readSettings
(
"playlist"
,
QSize
(
600
,
5
00
)
);
readSettings
(
"playlist"
,
QSize
(
600
,
7
00
)
);
}
}
PlaylistDialog
::~
PlaylistDialog
()
PlaylistDialog
::~
PlaylistDialog
()
...
...
modules/gui/qt4/playlist_model.cpp
View file @
f9ed4872
...
@@ -176,7 +176,6 @@ PLModel::~PLModel()
...
@@ -176,7 +176,6 @@ PLModel::~PLModel()
void
PLModel
::
addCallbacks
()
void
PLModel
::
addCallbacks
()
{
{
fprintf
(
stderr
,
"[%i] Adding callbacks
\n
"
,
i_depth
);
/* Some global changes happened -> Rebuild all */
/* Some global changes happened -> Rebuild all */
var_AddCallback
(
p_playlist
,
"intf-change"
,
PlaylistChanged
,
this
);
var_AddCallback
(
p_playlist
,
"intf-change"
,
PlaylistChanged
,
this
);
/* We went to the next item */
/* We went to the next item */
...
@@ -189,7 +188,6 @@ void PLModel::addCallbacks()
...
@@ -189,7 +188,6 @@ void PLModel::addCallbacks()
void
PLModel
::
delCallbacks
()
void
PLModel
::
delCallbacks
()
{
{
fprintf
(
stderr
,
"[%i] Rming callbacks
\n
"
,
i_depth
);
var_DelCallback
(
p_playlist
,
"item-change"
,
ItemChanged
,
this
);
var_DelCallback
(
p_playlist
,
"item-change"
,
ItemChanged
,
this
);
var_DelCallback
(
p_playlist
,
"playlist-current"
,
PlaylistNext
,
this
);
var_DelCallback
(
p_playlist
,
"playlist-current"
,
PlaylistNext
,
this
);
var_DelCallback
(
p_playlist
,
"intf-change"
,
PlaylistChanged
,
this
);
var_DelCallback
(
p_playlist
,
"intf-change"
,
PlaylistChanged
,
this
);
...
@@ -668,12 +666,10 @@ void PLModel::sort( int column, Qt::SortOrder order )
...
@@ -668,12 +666,10 @@ void PLModel::sort( int column, Qt::SortOrder order )
void
PLModel
::
search
(
QString
search_text
)
void
PLModel
::
search
(
QString
search_text
)
{
{
/** \todo Fire the search with a small delay ? */
/** \todo Fire the search with a small delay ? */
fprintf
(
stderr
,
"Searching
\n
"
);
PL_LOCK
;
PL_LOCK
;
playlist_item_t
*
p_root
=
playlist_ItemGetById
(
p_playlist
,
rootItem
->
i_id
);
playlist_item_t
*
p_root
=
playlist_ItemGetById
(
p_playlist
,
rootItem
->
i_id
);
assert
(
p_root
);
assert
(
p_root
);
char
*
psz_name
=
search_text
.
toUtf8
().
data
();
char
*
psz_name
=
search_text
.
toUtf8
().
data
();
fprintf
(
stderr
,
"Searching %s
\n
"
,
psz_name
);
playlist_LiveSearchUpdate
(
p_playlist
,
p_root
,
psz_name
);
playlist_LiveSearchUpdate
(
p_playlist
,
p_root
,
psz_name
);
PL_UNLOCK
;
PL_UNLOCK
;
rebuild
();
rebuild
();
...
...
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