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
71219c5d
Commit
71219c5d
authored
Jan 21, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - add a button to scroll to currentItem. Close #1443
parent
0320a30e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
modules/gui/qt4/components/playlist/panels.hpp
modules/gui/qt4/components/playlist/panels.hpp
+2
-1
modules/gui/qt4/components/playlist/standardpanel.cpp
modules/gui/qt4/components/playlist/standardpanel.cpp
+10
-0
No files found.
modules/gui/qt4/components/playlist/panels.hpp
View file @
71219c5d
...
...
@@ -72,7 +72,7 @@ protected:
friend
class
PlaylistWidget
;
private:
QTreeView
*
view
;
QPushButton
*
repeatButton
,
*
randomButton
,
*
add
Button
;
QPushButton
*
repeatButton
,
*
randomButton
,
*
addButton
,
*
gotoPlaying
Button
;
ClickLineEdit
*
searchLine
;
int
currentRootId
;
QSignalMapper
*
ContextUpdateMapper
;
...
...
@@ -84,6 +84,7 @@ private slots:
void
handleExpansion
(
const
QModelIndex
&
);
void
toggleRandom
();
void
toggleRepeat
();
void
gotoPlayingItem
();
void
doPopup
(
QModelIndex
index
,
QPoint
point
);
void
search
(
QString
search
);
void
clearFilter
();
...
...
modules/gui/qt4/components/playlist/standardpanel.cpp
View file @
71219c5d
...
...
@@ -133,6 +133,11 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
BUTTONACT
(
repeatButton
,
toggleRepeat
()
);
buttons
->
addWidget
(
repeatButton
);
/* Goto */
gotoPlayingButton
=
new
QPushButton
(
qtr
(
"X"
),
this
);
BUTTONACT
(
gotoPlayingButton
,
gotoPlayingItem
()
);
buttons
->
addWidget
(
gotoPlayingButton
);
/* A Spacer and the search possibilities */
QSpacerItem
*
spacer
=
new
QSpacerItem
(
10
,
20
);
buttons
->
addItem
(
spacer
);
...
...
@@ -193,6 +198,11 @@ void StandardPLPanel::toggleRandom()
randomButton
->
setToolTip
(
prev
?
qtr
(
I_PL_NORANDOM
)
:
qtr
(
I_PL_RANDOM
)
);
}
void
StandardPLPanel
::
gotoPlayingItem
()
{
view
->
scrollTo
(
view
->
currentIndex
()
);
}
void
StandardPLPanel
::
handleExpansion
(
const
QModelIndex
&
index
)
{
if
(
model
->
isCurrent
(
index
)
)
...
...
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