Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
a737917d
Commit
a737917d
authored
Jul 12, 2011
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: advanced_open: use QTimeEdit instead of QDoubleSpinBox
parent
f3426da7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
24 deletions
+22
-24
modules/gui/qt4/dialogs/open.cpp
modules/gui/qt4/dialogs/open.cpp
+11
-3
modules/gui/qt4/ui/open.ui
modules/gui/qt4/ui/open.ui
+11
-21
No files found.
modules/gui/qt4/dialogs/open.cpp
View file @
a737917d
...
...
@@ -157,7 +157,7 @@ OpenDialog::OpenDialog( QWidget *parent,
CONNECT
(
ui
.
slaveCheckbox
,
toggled
(
bool
),
this
,
updateMRL
()
);
CONNECT
(
ui
.
slaveText
,
textChanged
(
const
QString
&
),
this
,
updateMRL
()
);
CONNECT
(
ui
.
cacheSpinBox
,
valueChanged
(
int
),
this
,
updateMRL
()
);
CONNECT
(
ui
.
startTime
DoubleSpinBox
,
valueChanged
(
double
),
this
,
updateMRL
()
);
CONNECT
(
ui
.
startTime
TimeEdit
,
timeChanged
(
const
QTime
&
),
this
,
updateMRL
()
);
BUTTONACT
(
ui
.
advancedCheckBox
,
toggleAdvancedPanel
()
);
BUTTONACT
(
ui
.
slaveBrowseButton
,
browseInputSlave
()
);
...
...
@@ -179,6 +179,9 @@ OpenDialog::OpenDialog( QWidget *parent,
storedMethod
=
""
;
newCachingMethod
(
"file-caching"
);
/* enforce section due to .ui bug */
ui
.
startTimeTimeEdit
->
setCurrentSection
(
QDateTimeEdit
::
SecondSection
);
setMinimumSize
(
sizeHint
()
);
setMaximumWidth
(
900
);
resize
(
getSettings
()
->
value
(
"opendialog-size"
,
QSize
(
500
,
400
)
).
toSize
()
);
...
...
@@ -429,8 +432,13 @@ void OpenDialog::updateMRL() {
}
mrl
+=
QString
(
" :%1=%2"
).
arg
(
storedMethod
).
arg
(
ui
.
cacheSpinBox
->
value
()
);
if
(
ui
.
startTimeDoubleSpinBox
->
value
()
)
{
mrl
+=
" :start-time="
+
QString
::
number
(
ui
.
startTimeDoubleSpinBox
->
value
()
);
if
(
ui
.
startTimeTimeEdit
->
time
()
!=
ui
.
startTimeTimeEdit
->
minimumTime
()
)
{
mrl
+=
QString
(
" :start-time=%1.%2"
)
.
arg
(
QString
::
number
(
ui
.
startTimeTimeEdit
->
minimumTime
().
secsTo
(
ui
.
startTimeTimeEdit
->
time
()
)
)
)
.
arg
(
ui
.
startTimeTimeEdit
->
time
().
msec
(),
3
,
10
,
QChar
(
'0'
)
);
}
ui
.
advancedLineInput
->
setText
(
mrl
);
ui
.
mrlLine
->
setText
(
itemsMRL
.
join
(
" "
)
);
...
...
modules/gui/qt4/ui/open.ui
View file @
a737917d
...
...
@@ -94,23 +94,10 @@
<string>
Start Time
</string>
</property>
<property
name=
"buddy"
>
<cstring>
startTime
DoubleSpinBox
</cstring>
<cstring>
startTime
TimeEdit
</cstring>
</property>
</widget>
</item>
<item
row=
"0"
column=
"7"
>
<spacer>
<property
name=
"orientation"
>
<enum>
Qt::Horizontal
</enum>
</property>
<property
name=
"sizeHint"
stdset=
"0"
>
<size>
<width>
40
</width>
<height>
20
</height>
</size>
</property>
</spacer>
</item>
<item
row=
"1"
column=
"2"
colspan=
"6"
>
<widget
class=
"Line"
name=
"line"
/>
</item>
...
...
@@ -178,19 +165,22 @@
</property>
</widget>
</item>
<item
row=
"0"
column=
"5"
colspan=
"
2
"
>
<widget
class=
"Q
DoubleSpinBox"
name=
"startTimeDoubleSpinBox
"
>
<item
row=
"0"
column=
"5"
colspan=
"
3
"
>
<widget
class=
"Q
TimeEdit"
name=
"startTimeTimeEdit
"
>
<property
name=
"toolTip"
>
<string>
Change the start time for the media
</string>
</property>
<property
name=
"alignment"
>
<set>
Qt::AlignRight
</set>
</property>
<property
name=
"suffix"
>
<string>
s
</string>
<property
name=
"currentSection"
>
<enum>
QDateTimeEdit::SecondSection
</enum>
</property>
<property
name=
"displayFormat"
>
<string>
HH'H':mm'm':ss's'.zzz
</string>
</property>
<property
name=
"
decimals
"
>
<
number>
1
</number
>
<property
name=
"
timeSpec
"
>
<
enum>
Qt::LocalTime
</enum
>
</property>
</widget>
</item>
...
...
@@ -251,7 +241,7 @@
<tabstop>
Tab
</tabstop>
<tabstop>
advancedCheckBox
</tabstop>
<tabstop>
cacheSpinBox
</tabstop>
<tabstop>
startTime
DoubleSpinBox
</tabstop>
<tabstop>
startTime
TimeEdit
</tabstop>
<tabstop>
slaveCheckbox
</tabstop>
<tabstop>
slaveText
</tabstop>
<tabstop>
slaveBrowseButton
</tabstop>
...
...
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