Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
a4d3bb46
Commit
a4d3bb46
authored
Jan 16, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - Playlist: double clicking on the art will open the Media Information dialog.
parent
dc651adb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
modules/gui/qt4/components/playlist/playlist.cpp
modules/gui/qt4/components/playlist/playlist.cpp
+2
-1
modules/gui/qt4/components/playlist/playlist.hpp
modules/gui/qt4/components/playlist/playlist.hpp
+12
-1
No files found.
modules/gui/qt4/components/playlist/playlist.cpp
View file @
a4d3bb46
...
...
@@ -49,13 +49,14 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i, QSettings *settings, QWidge
leftW
->
addWidget
(
selector
);
/* Art label */
art
=
new
QLabel
(
""
)
;
art
=
new
ArtLabel
;
art
->
setMinimumHeight
(
128
);
art
->
setMinimumWidth
(
128
);
art
->
setMaximumHeight
(
128
);
art
->
setMaximumWidth
(
128
);
art
->
setScaledContents
(
true
);
art
->
setPixmap
(
QPixmap
(
":/noart.png"
)
);
art
->
setToolTip
(
qtr
(
"Double click to get the media informations"
)
);
leftW
->
addWidget
(
art
);
/* Initialisation of the playlist */
...
...
modules/gui/qt4/components/playlist/playlist.hpp
View file @
a4d3bb46
...
...
@@ -28,10 +28,11 @@
#include <vlc/vlc.h>
#include "qt4.hpp"
#include "dialogs_provider.hpp"
#include <QSplitter>
#include <QLabel>
class
QLabel
;
class
PLSelector
;
class
PLPanel
;
class
QPushButton
;
...
...
@@ -61,4 +62,14 @@ signals:
void
artSet
(
QString
);
};
class
ArtLabel
:
public
QLabel
{
Q_OBJECT
void
mouseDoubleClickEvent
(
QMouseEvent
*
event
)
{
THEDP
->
mediaInfoDialog
();
}
};
#endif
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