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
6bdbc1d3
Commit
6bdbc1d3
authored
Apr 25, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: support multi-line comments
As stupid demuxers like Xiph's only know comments... Close #3437
parent
41d28327
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
modules/gui/qt4/components/info_panels.cpp
modules/gui/qt4/components/info_panels.cpp
+10
-2
modules/gui/qt4/components/info_panels.hpp
modules/gui/qt4/components/info_panels.hpp
+2
-1
No files found.
modules/gui/qt4/components/info_panels.cpp
View file @
6bdbc1d3
...
...
@@ -46,6 +46,7 @@
#include <QLineEdit>
#include <QLabel>
#include <QSpinBox>
#include <QTextEdit>
/************************************************************************
* Single panels
...
...
@@ -139,7 +140,14 @@ MetaPanel::MetaPanel( QWidget *parent,
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
++
;
ADD_META
(
N_
(
"Comments"
),
description_text
,
0
,
7
);
line
++
;
label
=
new
QLabel
(
qtr
(
N_
(
"Comments"
)
)
);
label
->
setFont
(
smallFont
);
label
->
setContentsMargins
(
3
,
2
,
0
,
0
);
metaLayout
->
addWidget
(
label
,
line
++
,
0
,
1
,
7
);
description_text
=
new
QTextEdit
;
metaLayout
->
addWidget
(
description_text
,
line
,
0
,
1
,
7
);
CONNECT
(
description_text
,
textEdited
(
QString
),
this
,
enterEditMode
()
);
line
++
;
/* VLC_META_SETTING: Useless */
/* ADD_META( TRACKID ) Useless ? */
...
...
@@ -266,7 +274,7 @@ void MetaPanel::saveMeta()
input_item_SetCopyright
(
p_input
,
qtu
(
copyright_text
->
text
()
)
);
input_item_SetPublisher
(
p_input
,
qtu
(
publisher_text
->
text
()
)
);
input_item_SetDescription
(
p_input
,
qtu
(
description_text
->
text
()
)
);
input_item_SetDescription
(
p_input
,
qtu
(
description_text
->
t
oPlainT
ext
()
)
);
playlist_t
*
p_playlist
=
pl_Get
(
p_intf
);
input_item_WriteMeta
(
VLC_OBJECT
(
p_playlist
),
p_input
);
...
...
modules/gui/qt4/components/info_panels.hpp
View file @
6bdbc1d3
...
...
@@ -49,6 +49,7 @@ class QTreeView;
class
QSpinBox
;
class
QLineEdit
;
class
CoverArtLabel
;
class
QTextEdit
;
class
MetaPanel
:
public
QWidget
{
...
...
@@ -73,7 +74,7 @@ private:
QLineEdit
*
seqnum_text
;
QLineEdit
*
seqtot_text
;
Q
Line
Edit
*
description_text
;
Q
Text
Edit
*
description_text
;
// QSpinBox *rating_text;
QLineEdit
*
date_text
;
// QLineEdit *setting_text;
...
...
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