Commit eccedd53 authored by Francois Cartegnie's avatar Francois Cartegnie

Qt: profile_selector: better width/height selection widgets

parent b5aeef8a
...@@ -349,8 +349,8 @@ void VLCProfileEditor::fillProfile( const QString& qs ) ...@@ -349,8 +349,8 @@ void VLCProfileEditor::fillProfile( const QString& qs )
ui.vBitrateSpin->setValue( options[5].toInt() ); ui.vBitrateSpin->setValue( options[5].toInt() );
ui.vScaleBox->setEditText( options[6] ); ui.vScaleBox->setEditText( options[6] );
ui.vFrameBox->setValue( options[7].toDouble() ); ui.vFrameBox->setValue( options[7].toDouble() );
ui.widthBox->setText( options[8] ); ui.widthBox->setValue( options[8].toInt() );
ui.heightBox->setText( options[9] ); ui.heightBox->setValue( options[9].toInt() );
ui.aCodecBox->setCurrentIndex( ui.aCodecBox->findData( options[10] ) ); ui.aCodecBox->setCurrentIndex( ui.aCodecBox->findData( options[10] ) );
ui.aBitrateSpin->setValue( options[11].toInt() ); ui.aBitrateSpin->setValue( options[11].toInt() );
...@@ -448,8 +448,8 @@ QString VLCProfileEditor::transcodeValue() ...@@ -448,8 +448,8 @@ QString VLCProfileEditor::transcodeValue()
<< QString::number( ui.vBitrateSpin->value() ) << QString::number( ui.vBitrateSpin->value() )
<< ui.vScaleBox->currentText() << ui.vScaleBox->currentText()
<< QString::number( ui.vFrameBox->value() ) << QString::number( ui.vFrameBox->value() )
<< ui.widthBox->text() << QString::number( ui.widthBox->value() )
<< ui.heightBox->text() << QString::number( ui.heightBox->value() )
<< qs_acodec << qs_acodec
<< QString::number( ui.aBitrateSpin->value() ) << QString::number( ui.aBitrateSpin->value() )
......
...@@ -230,6 +230,9 @@ ...@@ -230,6 +230,9 @@
<property name="alignment"> <property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property> </property>
<property name="specialValueText">
<string>Same as source</string>
</property>
<property name="prefix"> <property name="prefix">
<string/> <string/>
</property> </property>
...@@ -287,25 +290,6 @@ ...@@ -287,25 +290,6 @@
</property> </property>
</widget> </widget>
</item> </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"> <item row="2" column="2">
<spacer name="horizontalSpacer"> <spacer name="horizontalSpacer">
<property name="orientation"> <property name="orientation">
...@@ -332,22 +316,35 @@ ...@@ -332,22 +316,35 @@
</property> </property>
</widget> </widget>
</item> </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"> <item row="2" column="4">
<widget class="QLineEdit" name="heightBox"> <widget class="QSpinBox" name="heightBox">
<property name="sizePolicy"> <property name="specialValueText">
<sizepolicy hsizetype="Maximum" vsizetype="Fixed"> <string>Auto</string>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property> </property>
<property name="inputMask"> <property name="suffix">
<string>00000; </string> <string>px</string>
</property> </property>
<property name="text"> <property name="maximum">
<string/> <number>9999</number>
</property> </property>
<property name="alignment"> <property name="singleStep">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> <number>8</number>
</property> </property>
</widget> </widget>
</item> </item>
...@@ -510,7 +507,7 @@ ...@@ -510,7 +507,7 @@
<tabstop>profileLine</tabstop> <tabstop>profileLine</tabstop>
<tabstop>tabWidget</tabstop> <tabstop>tabWidget</tabstop>
<tabstop>TSMux</tabstop> <tabstop>TSMux</tabstop>
<tabstop>ASFMux</tabstop> <tabstop>WEBMux</tabstop>
<tabstop>OggMux</tabstop> <tabstop>OggMux</tabstop>
<tabstop>MOVMux</tabstop> <tabstop>MOVMux</tabstop>
<tabstop>PSMux</tabstop> <tabstop>PSMux</tabstop>
...@@ -521,7 +518,7 @@ ...@@ -521,7 +518,7 @@
<tabstop>MKVMux</tabstop> <tabstop>MKVMux</tabstop>
<tabstop>RAWMux</tabstop> <tabstop>RAWMux</tabstop>
<tabstop>AVIMux</tabstop> <tabstop>AVIMux</tabstop>
<tabstop>buttonBox</tabstop> <tabstop>ASFMux</tabstop>
<tabstop>transcodeVideo</tabstop> <tabstop>transcodeVideo</tabstop>
<tabstop>keepVideo</tabstop> <tabstop>keepVideo</tabstop>
<tabstop>vCodecBox</tabstop> <tabstop>vCodecBox</tabstop>
...@@ -539,6 +536,7 @@ ...@@ -539,6 +536,7 @@
<tabstop>transcodeSubs</tabstop> <tabstop>transcodeSubs</tabstop>
<tabstop>subsCodecBox</tabstop> <tabstop>subsCodecBox</tabstop>
<tabstop>subsOverlay</tabstop> <tabstop>subsOverlay</tabstop>
<tabstop>buttonBox</tabstop>
</tabstops> </tabstops>
<resources/> <resources/>
<connections/> <connections/>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment