Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
8d3b932e
Commit
8d3b932e
authored
Sep 07, 2011
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: playlist: pad zoom slider (fixes #5291)
parent
ea17bdc3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
1 deletion
+20
-1
modules/gui/qt4/components/playlist/playlist.cpp
modules/gui/qt4/components/playlist/playlist.cpp
+12
-1
modules/gui/qt4/components/playlist/standardpanel.cpp
modules/gui/qt4/components/playlist/standardpanel.cpp
+7
-0
modules/gui/qt4/components/playlist/standardpanel.hpp
modules/gui/qt4/components/playlist/standardpanel.hpp
+1
-0
No files found.
modules/gui/qt4/components/playlist/playlist.cpp
View file @
8d3b932e
...
...
@@ -41,6 +41,8 @@
#include <QMenu>
#include <QSignalMapper>
#include <QSlider>
#include <QSpacerItem>
#include <QList>
/**********************************************************************
* Playlist Widget. The embedded playlist
...
...
@@ -187,7 +189,16 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i, QWidget *_par )
zoomSlider
->
setValue
(
model
->
getZoom
()
);
CONNECT
(
zoomSlider
,
valueChanged
(
int
),
model
,
changeZoom
(
int
)
);
layout
->
addWidget
(
zoomSlider
,
1
,
3
,
(
Qt
::
AlignBottom
|
Qt
::
AlignRight
)
);
/* pad our zoom slider */
QGridLayout
*
sliderLayout
=
new
QGridLayout
(
this
);
QSpacerItem
*
sliderSpacer
=
new
QSpacerItem
(
mainView
->
getScrollBarsSize
(),
mainView
->
getScrollBarsSize
(),
QSizePolicy
::
Fixed
,
QSizePolicy
::
Fixed
);
sliderLayout
->
addWidget
(
zoomSlider
,
0
,
0
,
Qt
::
AlignCenter
);
sliderLayout
->
addItem
(
sliderSpacer
,
1
,
1
,
Qt
::
AlignCenter
);
layout
->
addLayout
(
sliderLayout
,
1
,
3
,
(
Qt
::
AlignBottom
|
Qt
::
AlignRight
)
);
setAcceptDrops
(
true
);
setWindowTitle
(
qtr
(
"Playlist"
)
);
...
...
modules/gui/qt4/components/playlist/standardpanel.cpp
View file @
8d3b932e
...
...
@@ -48,6 +48,7 @@
#include <QStackedLayout>
#include <QSignalMapper>
#include <QSettings>
#include <QScrollBar>
#include <assert.h>
...
...
@@ -411,6 +412,12 @@ int StandardPLPanel::currentViewIndex() const
return
PICTUREFLOW_VIEW
;
}
int
StandardPLPanel
::
getScrollBarsSize
()
const
{
/* FIXME: should return a set in case of different widths */
return
currentView
->
verticalScrollBar
()
->
sizeHint
().
width
();
}
void
StandardPLPanel
::
cycleViews
()
{
if
(
currentView
==
iconView
)
...
...
modules/gui/qt4/components/playlist/standardpanel.hpp
View file @
8d3b932e
...
...
@@ -69,6 +69,7 @@ public:
VIEW_COUNT
};
int
currentViewIndex
()
const
;
int
getScrollBarsSize
()
const
;
protected:
PLModel
*
model
;
...
...
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