Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Gautam Chitnis
web-ui-redesign
Commits
dc1a69f8
Commit
dc1a69f8
authored
Feb 21, 2008
by
Jean-Baptiste Kempf
Browse files
Qt4 - Playlist: fix the resizing of the QSPlitter containing the art.
parent
24fcfe47
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/gui/qt4/components/playlist/playlist.cpp
View file @
dc1a69f8
/*****************************************************************************
* playlist.cpp : Custom widgets for the playlist
****************************************************************************
* Copyright © 200
6
the VideoLAN team
* Copyright © 200
7-2008
the VideoLAN team
* $Id$
*
* Authors: Clément Stenac <zorglub@videolan.org>
...
...
@@ -21,6 +21,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
...
...
@@ -28,7 +29,7 @@
#include
"components/playlist/panels.hpp"
#include
"components/playlist/selector.hpp"
#include
"components/playlist/playlist.hpp"
#include
"input_manager.hpp"
/* art */
#include
"input_manager.hpp"
/* art
signal
*/
#include
<QSettings>
#include
<QLabel>
...
...
@@ -51,6 +52,9 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i, QSettings *settings, QWidge
selector
=
new
PLSelector
(
this
,
p_intf
,
THEPL
);
leftW
->
addWidget
(
selector
);
QWidget
*
artContainer
=
new
QWidget
;
QHBoxLayout
*
artContLay
=
new
QHBoxLayout
(
artContainer
);
/* Art label */
art
=
new
ArtLabel
;
art
->
setMinimumHeight
(
128
);
...
...
@@ -60,7 +64,9 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i, QSettings *settings, QWidge
art
->
setScaledContents
(
true
);
art
->
setPixmap
(
QPixmap
(
":/noart.png"
)
);
art
->
setToolTip
(
qtr
(
"Double click to get the media informations"
)
);
leftW
->
addWidget
(
art
);
artContLay
->
addWidget
(
art
,
1
);
leftW
->
addWidget
(
artContainer
);
/* Initialisation of the playlist */
playlist_item_t
*
p_root
=
...
...
modules/gui/qt4/components/playlist/selector.cpp
View file @
dc1a69f8
...
...
@@ -20,6 +20,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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