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
5d9d238c
Commit
5d9d238c
authored
Mar 31, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - GoToTime layout and design improvements. Not functionnal yet.
parent
f6b0cce8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
11 deletions
+29
-11
modules/gui/qt4/dialogs/gototime.cpp
modules/gui/qt4/dialogs/gototime.cpp
+29
-11
No files found.
modules/gui/qt4/dialogs/gototime.cpp
View file @
5d9d238c
...
...
@@ -32,30 +32,48 @@
#include <QLabel>
#include <QTimeEdit>
#include <QGroupBox>
#include <QHBoxLayout>
GotoTimeDialog
*
GotoTimeDialog
::
instance
=
NULL
;
GotoTimeDialog
::
GotoTimeDialog
(
intf_thread_t
*
_p_intf
)
:
QVLCFrame
(
_p_intf
)
{
setWindowTitle
(
qtr
(
"Go
to
Time"
)
);
resize
(
400
,
20
0
);
setWindowTitle
(
qtr
(
"Go
to
Time"
)
);
resize
(
250
,
18
0
);
QGridLayout
*
l
ayout
=
new
QGridLayout
(
this
);
QGridLayout
*
mainL
ayout
=
new
QGridLayout
(
this
);
QPushButton
*
closeButton
=
new
QPushButton
(
qtr
(
"&Close"
)
);
QLabel
*
timeIntro
=
new
QLabel
(
"Enter below the desired time you want to go in the media"
);
QGroupBox
*
timeGroupBox
=
new
QGroupBox
(
"Time"
);
QHBoxLayout
*
boxLayout
=
new
QHBoxLayout
(
timeGroupBox
);
QGridLayout
*
boxLayout
=
new
QGridLayout
(
timeGroupBox
);
QLabel
*
timeIntro
=
new
QLabel
(
"Enter below the desired time you want to go in the media."
);
timeIntro
->
setWordWrap
(
true
);
timeIntro
->
setAlignment
(
Qt
::
AlignHCenter
,
Qt
::
AlignVCenter
);
timeEdit
=
new
QTimeEdit
();
boxLayout
->
addWidget
(
timeEdit
);
timeEdit
->
setDisplayFormat
(
"hh : mm : ss"
);
timeEdit
->
setAlignment
(
Qt
::
AlignRight
);
timeEdit
->
setSizePolicy
(
QSizePolicy
::
Expanding
,
QSizePolicy
::
Minimum
);
QLabel
*
helpFormat
=
new
QLabel
(
timeEdit
->
displayFormat
()
);
helpFormat
->
setSizePolicy
(
QSizePolicy
::
Minimum
,
QSizePolicy
::
Preferred
);
QSpacerItem
*
spacerBox
=
new
QSpacerItem
(
20
,
10
,
QSizePolicy
::
Minimum
,
QSizePolicy
::
Fixed
);
QSpacerItem
*
spacerItem
=
new
QSpacerItem
(
20
,
5
,
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
);
layout
->
addWidget
(
timeIntro
,
0
,
0
,
1
,
4
);
layout
->
addWidget
(
timeGroupBox
,
1
,
0
,
1
,
4
);
l
ayout
->
addWidget
(
closeButton
,
2
,
3
);
mainLayout
->
addWidget
(
timeGroupBox
,
0
,
0
,
1
,
4
);
mainLayout
->
addItem
(
spacerItem
,
1
,
0
);
mainL
ayout
->
addWidget
(
closeButton
,
2
,
3
);
BUTTONACT
(
closeButton
,
close
()
);
}
...
...
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