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
fc583e2c
Commit
fc583e2c
authored
Oct 14, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: use a QStackedWidget for the artContainer in the playlist
parent
554f76ad
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
modules/gui/qt4/components/playlist/playlist.cpp
modules/gui/qt4/components/playlist/playlist.cpp
+3
-5
modules/gui/qt4/components/playlist/playlist.hpp
modules/gui/qt4/components/playlist/playlist.hpp
+2
-1
No files found.
modules/gui/qt4/components/playlist/playlist.cpp
View file @
fc583e2c
...
@@ -41,6 +41,7 @@
...
@@ -41,6 +41,7 @@
#include <QMenu>
#include <QMenu>
#include <QSignalMapper>
#include <QSignalMapper>
#include <QSlider>
#include <QSlider>
#include <QStackedWidget>
/**********************************************************************
/**********************************************************************
* Playlist Widget. The embedded playlist
* Playlist Widget. The embedded playlist
...
@@ -67,16 +68,13 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i, QWidget *_par )
...
@@ -67,16 +68,13 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i, QWidget *_par )
/* Create a Container for the Art Label
/* Create a Container for the Art Label
in order to have a beautiful resizing for the selector above it */
in order to have a beautiful resizing for the selector above it */
QWidget
*
artContainer
=
new
QWidget
;
artContainer
=
new
QStackedWidget
;
QHBoxLayout
*
artContLay
=
new
QHBoxLayout
(
artContainer
);
artContLay
->
setMargin
(
0
);
artContLay
->
setSpacing
(
0
);
artContainer
->
setMaximumHeight
(
128
);
artContainer
->
setMaximumHeight
(
128
);
/* Art label */
/* Art label */
CoverArtLabel
*
art
=
new
CoverArtLabel
(
artContainer
,
p_intf
);
CoverArtLabel
*
art
=
new
CoverArtLabel
(
artContainer
,
p_intf
);
art
->
setToolTip
(
qtr
(
"Double click to get media information"
)
);
art
->
setToolTip
(
qtr
(
"Double click to get media information"
)
);
artCont
Lay
->
addWidget
(
art
,
1
);
artCont
ainer
->
addWidget
(
art
);
CONNECT
(
THEMIM
->
getIM
(),
artChanged
(
QString
),
CONNECT
(
THEMIM
->
getIM
(),
artChanged
(
QString
),
art
,
showArtUpdate
(
const
QString
&
)
);
art
,
showArtUpdate
(
const
QString
&
)
);
...
...
modules/gui/qt4/components/playlist/playlist.hpp
View file @
fc583e2c
...
@@ -45,6 +45,7 @@ class LocationBar;
...
@@ -45,6 +45,7 @@ class LocationBar;
class
QSignalMapper
;
class
QSignalMapper
;
class
SearchLineEdit
;
class
SearchLineEdit
;
class
QModelIndex
;
class
QModelIndex
;
class
QStackedWidget
;
class
PlaylistWidget
:
public
QWidget
class
PlaylistWidget
:
public
QWidget
{
{
...
@@ -55,7 +56,7 @@ public:
...
@@ -55,7 +56,7 @@ public:
void
forceHide
();
void
forceHide
();
void
forceShow
();
void
forceShow
();
QStackedWidget
*
artContainer
;
private:
private:
QSplitter
*
leftSplitter
;
QSplitter
*
leftSplitter
;
QSplitter
*
split
;
QSplitter
*
split
;
...
...
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