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
eccedd53
Commit
eccedd53
authored
Sep 17, 2012
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: profile_selector: better width/height selection widgets
parent
b5aeef8a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
37 deletions
+35
-37
modules/gui/qt4/components/sout/profile_selector.cpp
modules/gui/qt4/components/sout/profile_selector.cpp
+4
-4
modules/gui/qt4/ui/profiles.ui
modules/gui/qt4/ui/profiles.ui
+31
-33
No files found.
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
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