Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
caa34346
Commit
caa34346
authored
Sep 10, 2011
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: simplify go to time dialog
parent
d405f2ca
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
20 deletions
+4
-20
modules/gui/qt4/dialogs/gototime.cpp
modules/gui/qt4/dialogs/gototime.cpp
+4
-20
No files found.
modules/gui/qt4/dialogs/gototime.cpp
View file @
caa34346
...
@@ -53,35 +53,19 @@ GotoTimeDialog::GotoTimeDialog( intf_thread_t *_p_intf)
...
@@ -53,35 +53,19 @@ GotoTimeDialog::GotoTimeDialog( intf_thread_t *_p_intf)
buttonBox
->
addButton
(
gotoButton
,
QDialogButtonBox
::
AcceptRole
);
buttonBox
->
addButton
(
gotoButton
,
QDialogButtonBox
::
AcceptRole
);
buttonBox
->
addButton
(
cancelButton
,
QDialogButtonBox
::
RejectRole
);
buttonBox
->
addButton
(
cancelButton
,
QDialogButtonBox
::
RejectRole
);
QGroupBox
*
timeGroupBox
=
new
QGroupBox
;
QGridLayout
*
boxLayout
=
new
QGridLayout
(
timeGroupBox
);
QLabel
*
timeIntro
=
new
QLabel
(
qtr
(
"Go to time"
)
+
":"
);
QLabel
*
timeIntro
=
new
QLabel
(
qtr
(
"Go to time"
)
+
":"
);
timeIntro
->
setWordWrap
(
true
);
timeIntro
->
setWordWrap
(
true
);
timeIntro
->
setAlignment
(
Qt
::
AlignCenter
);
timeIntro
->
setAlignment
(
Qt
::
AlignCenter
);
timeEdit
=
new
QTimeEdit
();
timeEdit
=
new
QTimeEdit
();
timeEdit
->
setDisplayFormat
(
"
hh : mm : ss
"
);
timeEdit
->
setDisplayFormat
(
"
HH'H':mm'm':ss's'
"
);
timeEdit
->
setAlignment
(
Qt
::
AlignRight
);
timeEdit
->
setAlignment
(
Qt
::
AlignRight
);
timeEdit
->
setSizePolicy
(
QSizePolicy
::
Expanding
,
QSizePolicy
::
Minimum
);
timeEdit
->
setSizePolicy
(
QSizePolicy
::
Expanding
,
QSizePolicy
::
Minimum
);
QLabel
*
helpFormat
=
new
QLabel
(
timeEdit
->
displayFormat
()
);
mainLayout
->
addWidget
(
timeIntro
,
0
,
0
,
1
,
1
);
helpFormat
->
setSizePolicy
(
QSizePolicy
::
Minimum
,
QSizePolicy
::
Preferred
);
mainLayout
->
addWidget
(
timeEdit
,
0
,
1
,
1
,
1
);
QSpacerItem
*
spacerBox
=
new
QSpacerItem
(
20
,
10
,
QSizePolicy
::
Minimum
,
QSizePolicy
::
Fixed
);
QSpacerItem
*
spacerItem
=
new
QSpacerItem
(
20
,
3
,
QSizePolicy
::
Minimum
,
QSizePolicy
::
Expanding
);
boxLayout
->
addWidget
(
timeIntro
,
0
,
0
,
1
,
2
);
boxLayout
->
addItem
(
spacerBox
,
1
,
0
,
1
,
2
);
boxLayout
->
addWidget
(
timeEdit
,
2
,
0
,
1
,
1
);
boxLayout
->
addWidget
(
helpFormat
,
2
,
1
,
1
,
1
);
mainLayout
->
addWidget
(
timeGroupBox
,
0
,
0
,
1
,
4
);
mainLayout
->
addWidget
(
buttonBox
,
1
,
0
,
1
,
2
);
mainLayout
->
addItem
(
spacerItem
,
1
,
0
);
mainLayout
->
addWidget
(
buttonBox
,
2
,
3
);
BUTTONACT
(
gotoButton
,
close
()
);
BUTTONACT
(
gotoButton
,
close
()
);
BUTTONACT
(
cancelButton
,
cancel
()
);
BUTTONACT
(
cancelButton
,
cancel
()
);
...
...
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