Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
eccedd53
Commit
eccedd53
authored
Sep 17, 2012
by
François Cartegnie
🤞
Browse files
Qt: profile_selector: better width/height selection widgets
parent
b5aeef8a
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/gui/qt4/components/sout/profile_selector.cpp
View file @
eccedd53
...
...
@@ -349,8 +349,8 @@ void VLCProfileEditor::fillProfile( const QString& qs )
ui
.
vBitrateSpin
->
setValue
(
options
[
5
].
toInt
()
);
ui
.
vScaleBox
->
setEditText
(
options
[
6
]
);
ui
.
vFrameBox
->
setValue
(
options
[
7
].
toDouble
()
);
ui
.
widthBox
->
set
Text
(
options
[
8
]
);
ui
.
heightBox
->
set
Text
(
options
[
9
]
);
ui
.
widthBox
->
set
Value
(
options
[
8
]
.
toInt
()
);
ui
.
heightBox
->
set
Value
(
options
[
9
]
.
toInt
()
);
ui
.
aCodecBox
->
setCurrentIndex
(
ui
.
aCodecBox
->
findData
(
options
[
10
]
)
);
ui
.
aBitrateSpin
->
setValue
(
options
[
11
].
toInt
()
);
...
...
@@ -448,8 +448,8 @@ QString VLCProfileEditor::transcodeValue()
<<
QString
::
number
(
ui
.
vBitrateSpin
->
value
()
)
<<
ui
.
vScaleBox
->
currentText
()
<<
QString
::
number
(
ui
.
vFrameBox
->
value
()
)
<<
ui
.
widthBox
->
text
(
)
<<
ui
.
heightBox
->
text
(
)
<<
QString
::
number
(
ui
.
widthBox
->
value
()
)
<<
QString
::
number
(
ui
.
heightBox
->
value
()
)
<<
qs_acodec
<<
QString
::
number
(
ui
.
aBitrateSpin
->
value
()
)
...
...
modules/gui/qt4/ui/profiles.ui
View file @
eccedd53
...
...
@@ -230,6 +230,9 @@
<property
name=
"alignment"
>
<set>
Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
</set>
</property>
<property
name=
"specialValueText"
>
<string>
Same as source
</string>
</property>
<property
name=
"prefix"
>
<string/>
</property>
...
...
@@ -287,25 +290,6 @@
</property>
</widget>
</item>
<item
row=
"2"
column=
"1"
>
<widget
class=
"QLineEdit"
name=
"widthBox"
>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"Maximum"
vsizetype=
"Fixed"
>
<horstretch>
0
</horstretch>
<verstretch>
0
</verstretch>
</sizepolicy>
</property>
<property
name=
"inputMask"
>
<string>
00000;
</string>
</property>
<property
name=
"text"
>
<string/>
</property>
<property
name=
"alignment"
>
<set>
Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
</set>
</property>
</widget>
</item>
<item
row=
"2"
column=
"2"
>
<spacer
name=
"horizontalSpacer"
>
<property
name=
"orientation"
>
...
...
@@ -332,22 +316,35 @@
</property>
</widget>
</item>
<item
row=
"2"
column=
"1"
>
<widget
class=
"QSpinBox"
name=
"widthBox"
>
<property
name=
"specialValueText"
>
<string>
Auto
</string>
</property>
<property
name=
"suffix"
>
<string>
px
</string>
</property>
<property
name=
"maximum"
>
<number>
9999
</number>
</property>
<property
name=
"singleStep"
>
<number>
8
</number>
</property>
</widget>
</item>
<item
row=
"2"
column=
"4"
>
<widget
class=
"QLineEdit"
name=
"heightBox"
>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"Maximum"
vsizetype=
"Fixed"
>
<horstretch>
0
</horstretch>
<verstretch>
0
</verstretch>
</sizepolicy>
<widget
class=
"QSpinBox"
name=
"heightBox"
>
<property
name=
"specialValueText"
>
<string>
Auto
</string>
</property>
<property
name=
"
inputMask
"
>
<string>
00000;
</string>
<property
name=
"
suffix
"
>
<string>
px
</string>
</property>
<property
name=
"
text
"
>
<
string/
>
<property
name=
"
maximum
"
>
<
number>
9999
</number
>
</property>
<property
name=
"
alignment
"
>
<
set>
Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
</set
>
<property
name=
"
singleStep
"
>
<
number>
8
</number
>
</property>
</widget>
</item>
...
...
@@ -510,7 +507,7 @@
<tabstop>
profileLine
</tabstop>
<tabstop>
tabWidget
</tabstop>
<tabstop>
TSMux
</tabstop>
<tabstop>
ASF
Mux
</tabstop>
<tabstop>
WEB
Mux
</tabstop>
<tabstop>
OggMux
</tabstop>
<tabstop>
MOVMux
</tabstop>
<tabstop>
PSMux
</tabstop>
...
...
@@ -521,7 +518,7 @@
<tabstop>
MKVMux
</tabstop>
<tabstop>
RAWMux
</tabstop>
<tabstop>
AVIMux
</tabstop>
<tabstop>
buttonBo
x
</tabstop>
<tabstop>
ASFMu
x
</tabstop>
<tabstop>
transcodeVideo
</tabstop>
<tabstop>
keepVideo
</tabstop>
<tabstop>
vCodecBox
</tabstop>
...
...
@@ -539,6 +536,7 @@
<tabstop>
transcodeSubs
</tabstop>
<tabstop>
subsCodecBox
</tabstop>
<tabstop>
subsOverlay
</tabstop>
<tabstop>
buttonBox
</tabstop>
</tabstops>
<resources/>
<connections/>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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