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
139cf222
Commit
139cf222
authored
Oct 20, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: rename a signal to be more self-documenting
parent
1dbb9988
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
modules/gui/qt4/components/playlist/playlist_model.cpp
modules/gui/qt4/components/playlist/playlist_model.cpp
+4
-4
modules/gui/qt4/components/playlist/playlist_model.hpp
modules/gui/qt4/components/playlist/playlist_model.hpp
+1
-1
modules/gui/qt4/components/playlist/standardpanel.cpp
modules/gui/qt4/components/playlist/standardpanel.cpp
+1
-1
No files found.
modules/gui/qt4/components/playlist/playlist_model.cpp
View file @
139cf222
...
@@ -599,7 +599,7 @@ void PLModel::processInputItemUpdate( input_thread_t *p_input )
...
@@ -599,7 +599,7 @@ void PLModel::processInputItemUpdate( input_thread_t *p_input )
if
(
p_input
&&
!
(
p_input
->
b_dead
||
!
vlc_object_alive
(
p_input
)
)
)
if
(
p_input
&&
!
(
p_input
->
b_dead
||
!
vlc_object_alive
(
p_input
)
)
)
{
{
PLItem
*
item
=
findByInput
(
rootItem
,
input_GetItem
(
p_input
)
->
i_id
);
PLItem
*
item
=
findByInput
(
rootItem
,
input_GetItem
(
p_input
)
->
i_id
);
if
(
item
)
emit
currentChanged
(
index
(
item
,
0
)
);
if
(
item
)
emit
current
Index
Changed
(
index
(
item
,
0
)
);
}
}
processInputItemUpdate
(
input_GetItem
(
p_input
)
);
processInputItemUpdate
(
input_GetItem
(
p_input
)
);
}
}
...
@@ -652,7 +652,7 @@ void PLModel::processItemAppend( int i_item, int i_parent )
...
@@ -652,7 +652,7 @@ void PLModel::processItemAppend( int i_item, int i_parent )
endInsertRows
();
endInsertRows
();
if
(
newItem
->
inputItem
()
==
THEMIM
->
currentInputItem
()
)
if
(
newItem
->
inputItem
()
==
THEMIM
->
currentInputItem
()
)
emit
currentChanged
(
index
(
newItem
,
0
)
);
emit
current
Index
Changed
(
index
(
newItem
,
0
)
);
}
}
void
PLModel
::
rebuild
(
playlist_item_t
*
p_root
)
void
PLModel
::
rebuild
(
playlist_item_t
*
p_root
)
...
@@ -846,11 +846,11 @@ void PLModel::sort( const int i_root_id, const int column, Qt::SortOrder order )
...
@@ -846,11 +846,11 @@ void PLModel::sort( const int i_root_id, const int column, Qt::SortOrder order )
if
(
i_popup_item
>
-
1
)
if
(
i_popup_item
>
-
1
)
{
{
PLItem
*
popupitem
=
findById
(
rootItem
,
i_popup_item
);
PLItem
*
popupitem
=
findById
(
rootItem
,
i_popup_item
);
if
(
popupitem
)
emit
currentChanged
(
index
(
popupitem
,
0
)
);
if
(
popupitem
)
emit
current
Index
Changed
(
index
(
popupitem
,
0
)
);
/* reset i_popup_item as we don't show it as selected anymore anyway */
/* reset i_popup_item as we don't show it as selected anymore anyway */
i_popup_item
=
-
1
;
i_popup_item
=
-
1
;
}
}
else
if
(
currentIndex
().
isValid
()
)
emit
currentChanged
(
currentIndex
()
);
else
if
(
currentIndex
().
isValid
()
)
emit
current
Index
Changed
(
currentIndex
()
);
}
}
void
PLModel
::
search
(
const
QString
&
search_text
,
const
QModelIndex
&
idx
,
bool
b_recursive
)
void
PLModel
::
search
(
const
QString
&
search_text
,
const
QModelIndex
&
idx
,
bool
b_recursive
)
...
...
modules/gui/qt4/components/playlist/playlist_model.hpp
View file @
139cf222
...
@@ -115,7 +115,7 @@ public:
...
@@ -115,7 +115,7 @@ public:
}
}
signals:
signals:
void
currentChanged
(
const
QModelIndex
&
);
void
current
Index
Changed
(
const
QModelIndex
&
);
void
rootChanged
();
void
rootChanged
();
public
slots
:
public
slots
:
...
...
modules/gui/qt4/components/playlist/standardpanel.cpp
View file @
139cf222
...
@@ -82,7 +82,7 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
...
@@ -82,7 +82,7 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
DCONNECT
(
THEMIM
,
leafBecameParent
(
int
),
DCONNECT
(
THEMIM
,
leafBecameParent
(
int
),
this
,
browseInto
(
int
)
);
this
,
browseInto
(
int
)
);
CONNECT
(
model
,
currentChanged
(
const
QModelIndex
&
),
CONNECT
(
model
,
current
Index
Changed
(
const
QModelIndex
&
),
this
,
handleExpansion
(
const
QModelIndex
&
)
);
this
,
handleExpansion
(
const
QModelIndex
&
)
);
CONNECT
(
model
,
rootChanged
(),
this
,
browseInto
()
);
CONNECT
(
model
,
rootChanged
(),
this
,
browseInto
()
);
...
...
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