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
83ffb866
Commit
83ffb866
authored
May 31, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 media info: show local file path instead of file:// URI
This fixes #3626.
parent
117c9423
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
2 deletions
+22
-2
modules/gui/qt4/dialogs/mediainfo.cpp
modules/gui/qt4/dialogs/mediainfo.cpp
+20
-2
modules/gui/qt4/dialogs/mediainfo.hpp
modules/gui/qt4/dialogs/mediainfo.hpp
+2
-0
No files found.
modules/gui/qt4/dialogs/mediainfo.cpp
View file @
83ffb866
...
...
@@ -29,6 +29,8 @@
#include "dialogs/mediainfo.hpp"
#include "input_manager.hpp"
#include <vlc_url.h>
#include <QTabWidget>
#include <QGridLayout>
#include <QLineEdit>
...
...
@@ -73,7 +75,7 @@ MediaInfoDialog::MediaInfoDialog( intf_thread_t *_p_intf,
closeButton
->
setDefault
(
true
);
QLabel
*
uriLabel
=
new
QLabel
(
qtr
(
"Location:"
)
);
QLineEdit
*
uriLine
=
new
QLineEdit
;
uriLine
=
new
QLineEdit
;
layout
->
addWidget
(
infoTabW
,
0
,
0
,
1
,
8
);
layout
->
addWidget
(
uriLabel
,
1
,
0
,
1
,
1
);
...
...
@@ -87,7 +89,7 @@ MediaInfoDialog::MediaInfoDialog( intf_thread_t *_p_intf,
BUTTONACT
(
saveMetaButton
,
saveMeta
()
);
/* Let the MetaData Panel update the URI */
CONNECT
(
MP
,
uriSet
(
const
QString
&
),
uriLine
,
setText
(
const
QString
&
)
);
CONNECT
(
MP
,
uriSet
(
const
QString
&
),
this
,
updateURI
(
const
QString
&
)
);
CONNECT
(
MP
,
editing
(),
saveMetaButton
,
show
()
);
/* Display the buttonBar according to the Tab selected */
...
...
@@ -181,3 +183,19 @@ void MediaInfoDialog::updateButtons( int i_tab )
saveMetaButton
->
hide
();
}
void
MediaInfoDialog
::
updateURI
(
const
QString
&
uri
)
{
QString
location
;
/* If URI points to a local file, show the path instead of the URI */
char
*
path
=
make_path
(
qtu
(
uri
)
);
if
(
path
!=
NULL
)
{
location
=
qfu
(
path
);
free
(
path
);
}
else
location
=
uri
;
uriLine
->
setText
(
location
);
}
modules/gui/qt4/dialogs/mediainfo.hpp
View file @
83ffb866
...
...
@@ -56,6 +56,7 @@ private:
ExtraMetaPanel
*
EMP
;
QPushButton
*
saveMetaButton
;
QLineEdit
*
uriLine
;
private
slots
:
void
updateAllTabs
(
input_item_t
*
);
...
...
@@ -65,6 +66,7 @@ private slots:
void
saveMeta
();
void
updateButtons
(
int
i_tab
);
void
updateURI
(
const
QString
&
);
friend
class
Singleton
<
MediaInfoDialog
>
;
};
...
...
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