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
e6e2ad05
Commit
e6e2ad05
authored
Sep 07, 2007
by
Ilkka Ollakka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use QLineEdit+inputMask instead of QSpinBox, still some alignment issue
with numbers to be solved.
parent
e6226298
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
13 deletions
+15
-13
modules/gui/qt4/components/infopanels.cpp
modules/gui/qt4/components/infopanels.cpp
+13
-11
modules/gui/qt4/components/infopanels.hpp
modules/gui/qt4/components/infopanels.hpp
+2
-2
No files found.
modules/gui/qt4/components/infopanels.cpp
View file @
e6e2ad05
...
...
@@ -83,12 +83,16 @@ MetaPanel::MetaPanel( QWidget *parent,
/* Number */
l
->
addWidget
(
new
QLabel
(
qtr
(
"Track Number"
)
+
" :"
),
line
,
3
);
seqnum_text
=
new
QSpinBox
;
setSpinBounds
(
seqnum_text
);
seqnum_text
=
new
QLineEdit
;
seqnum_text
->
setInputMask
(
"0000"
);
seqnum_text
->
setAlignment
(
Qt
::
AlignRight
);
l
->
addWidget
(
seqnum_text
,
line
,
4
,
1
,
2
);
line
++
;
/* Date (Should be in years) */
date_text
=
new
QSpinBox
;
setSpinBounds
(
date_text
);
date_text
=
new
QLineEdit
;
date_text
->
setInputMask
(
"0000"
);
date_text
->
setAlignment
(
Qt
::
AlignRight
);
l
->
addWidget
(
new
QLabel
(
qtr
(
VLC_META_DATE
)
+
" :"
),
line
,
0
);
l
->
addWidget
(
date_text
,
line
,
1
,
1
,
1
);
...
...
@@ -135,9 +139,9 @@ MetaPanel::MetaPanel( QWidget *parent,
CONNECT
(
artist_text
,
textEdited
(
QString
),
this
,
editMeta
(
QString
)
);
CONNECT
(
collection_text
,
textEdited
(
QString
),
this
,
editMeta
(
QString
)
);
CONNECT
(
genre_text
,
textEdited
(
QString
),
this
,
editMeta
(
QString
)
);
/* CONNECT( date_text, valueChang
ed( QString ), this, editMeta( QString ) );
CONNECT( seqnum_text,
valueChang
ed( QString ), this, editMeta( QString ) );
CONNECT( rating_text, valueChanged( QString ), this, editMeta( QString ) );*/
CONNECT
(
date_text
,
textEdit
ed
(
QString
),
this
,
editMeta
(
QString
)
);
CONNECT
(
seqnum_text
,
textEdit
ed
(
QString
),
this
,
editMeta
(
QString
)
);
/*
CONNECT( rating_text, valueChanged( QString ), this, editMeta( QString ) );*/
in_edit
=
false
;
}
...
...
@@ -179,11 +183,9 @@ void MetaPanel::saveMeta()
input_item_SetAlbum
(
p_input
,
qtu
(
collection_text
->
text
()
)
);
input_item_SetGenre
(
p_input
,
qtu
(
genre_text
->
text
()
)
);
snprintf
(
psz
,
sizeof
(
psz
),
"%d"
,
date_text
->
value
()
);
input_item_SetDate
(
p_input
,
psz
);
input_item_SetDate
(
p_input
,
qtu
(
date_text
->
text
()
)
);
snprintf
(
psz
,
sizeof
(
psz
),
"%d"
,
seqnum_text
->
value
()
);
input_item_SetTrackNum
(
p_input
,
psz
);
input_item_SetTrackNum
(
p_input
,
qtu
(
seqnum_text
->
text
()
)
);
input_item_SetTitle
(
p_input
,
qtu
(
title_text
->
text
()
)
);
...
...
@@ -278,8 +280,8 @@ void MetaPanel::update( input_item_t *p_item )
// UPDATE_META( Setting, setting_text );
// UPDATE_META( EncodedBy, encodedby_text );
UPDATE_META
_INT
(
Date
,
date_text
);
UPDATE_META
_INT
(
TrackNum
,
seqnum_text
);
UPDATE_META
(
Date
,
date_text
);
UPDATE_META
(
TrackNum
,
seqnum_text
);
UPDATE_META_INT
(
Rating
,
rating_text
);
#undef UPDATE_META_INT
...
...
modules/gui/qt4/components/infopanels.hpp
View file @
e6e2ad05
...
...
@@ -65,10 +65,10 @@ private:
QLineEdit
*
genre_text
;
// QLineEdit *copyright_text;
QLineEdit
*
collection_text
;
Q
SpinBox
*
seqnum_text
;
Q
LineEdit
*
seqnum_text
;
// QLineEdit *description_text;
QSpinBox
*
rating_text
;
Q
SpinBox
*
date_text
;
Q
LineEdit
*
date_text
;
// QLineEdit *setting_text;
QLineEdit
*
language_text
;
// QLineEdit *nowplaying_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