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
929f2db2
Commit
929f2db2
authored
May 22, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: mediainfo, difference between URI and URL
One is the actual URL, the other is a metadata Close #4157
parent
a40a5116
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
12 deletions
+25
-12
modules/gui/qt4/components/info_panels.cpp
modules/gui/qt4/components/info_panels.cpp
+21
-12
modules/gui/qt4/components/info_panels.hpp
modules/gui/qt4/components/info_panels.hpp
+4
-0
No files found.
modules/gui/qt4/components/info_panels.cpp
View file @
929f2db2
...
...
@@ -132,13 +132,19 @@ MetaPanel::MetaPanel( QWidget *parent,
/* Language on the same line */
ADD_META
(
VLC_META_LANGUAGE
,
language_text
,
7
,
-
1
);
line
++
;
ADD_META
(
VLC_META_PUBLISHER
,
publisher_text
,
0
,
7
);
line
++
;
lblURL
=
new
QLabel
;
lblURL
->
setOpenExternalLinks
(
true
);
lblURL
->
setTextFormat
(
Qt
::
RichText
);
metaLayout
->
addWidget
(
lblURL
,
line
-
1
,
7
,
1
,
-
1
);
ADD_META
(
VLC_META_COPYRIGHT
,
copyright_text
,
0
,
7
);
line
++
;
/* ART_URL */
art_cover
=
new
CoverArtLabel
(
this
,
p_intf
);
metaLayout
->
addWidget
(
art_cover
,
line
+
1
,
7
,
6
,
3
,
Qt
::
AlignLeft
);
metaLayout
->
addWidget
(
art_cover
,
line
,
7
,
6
,
3
,
Qt
::
AlignLeft
);
ADD_META
(
VLC_META_PUBLISHER
,
publisher_text
,
0
,
7
);
line
++
;
ADD_META
(
VLC_META_COPYRIGHT
,
copyright_text
,
0
,
7
);
line
++
;
ADD_META
(
VLC_META_ENCODED_BY
,
encodedby_text
,
0
,
7
);
line
++
;
label
=
new
QLabel
(
qtr
(
N_
(
"Comments"
)
)
);
label
->
setFont
(
smallFont
);
...
...
@@ -207,16 +213,9 @@ void MetaPanel::update( input_item_t *p_item )
title_text
->
setText
(
""
);
/* URL / URI */
psz_meta
=
input_item_GetUR
L
(
p_item
);
psz_meta
=
input_item_GetUR
I
(
p_item
);
if
(
!
EMPTY_STR
(
psz_meta
)
)
emit
uriSet
(
qfu
(
psz_meta
)
);
else
{
free
(
psz_meta
);
psz_meta
=
input_item_GetURI
(
p_item
);
if
(
!
EMPTY_STR
(
psz_meta
)
)
emit
uriSet
(
qfu
(
psz_meta
)
);
}
emit
uriSet
(
qfu
(
psz_meta
)
);
free
(
psz_meta
);
/* Other classic though */
...
...
@@ -235,6 +234,16 @@ void MetaPanel::update( input_item_t *p_item )
// UPDATE_META( Setting, setting_text );
// UPDATE_META_INT( Rating, rating_text );
/* URL */
psz_meta
=
input_item_GetURL
(
p_item
);
if
(
!
EMPTY_STR
(
psz_meta
)
&&
strcmp
(
psz_meta
,
currentURL
)
)
{
free
(
currentURL
);
currentURL
=
strdup
(
psz_meta
);
lblURL
->
setText
(
"<a href='"
+
qfu
(
psz_meta
)
+
"'>"
+
qfu
(
psz_meta
).
remove
(
QRegExp
(
".*://"
)
)
+
"</a>"
);
free
(
psz_meta
);
}
#undef UPDATE_META_INT
#undef UPDATE_META
...
...
modules/gui/qt4/components/info_panels.hpp
View file @
929f2db2
...
...
@@ -50,6 +50,7 @@ class QSpinBox;
class
QLineEdit
;
class
CoverArtLabel
;
class
QTextEdit
;
class
QLabel
;
class
MetaPanel
:
public
QWidget
{
...
...
@@ -84,6 +85,9 @@ private:
QLineEdit
*
encodedby_text
;
CoverArtLabel
*
art_cover
;
QLabel
*
lblURL
;
char
*
currentURL
;
public
slots
:
void
update
(
input_item_t
*
);
void
clear
();
...
...
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