mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-04-20 11:35:56 +00:00
feat: change video size to max size
This commit is contained in:
parent
47ce210843
commit
31efc0de25
6 changed files with 35 additions and 26 deletions
|
@ -80,11 +80,12 @@ void Dialog::initUI()
|
|||
ui->bitRateBox->addItem("10000000");
|
||||
ui->bitRateBox->setCurrentIndex(2);
|
||||
|
||||
ui->videoSizeBox->addItem("480");
|
||||
ui->videoSizeBox->addItem("720");
|
||||
ui->videoSizeBox->addItem("1080");
|
||||
ui->videoSizeBox->addItem("native");
|
||||
ui->videoSizeBox->setCurrentIndex(1);
|
||||
ui->maxSizeBox->addItem("600");
|
||||
ui->maxSizeBox->addItem("800");
|
||||
ui->maxSizeBox->addItem("1000");
|
||||
ui->maxSizeBox->addItem("1200");
|
||||
ui->maxSizeBox->addItem("native");
|
||||
ui->maxSizeBox->setCurrentIndex(2);
|
||||
|
||||
ui->formatBox->addItem("mp4");
|
||||
ui->formatBox->addItem("mkv");
|
||||
|
@ -147,7 +148,7 @@ void Dialog::on_startServerBtn_clicked()
|
|||
|
||||
quint32 bitRate = ui->bitRateBox->currentText().trimmed().toUInt();
|
||||
// this is ok that "native" toUshort is 0
|
||||
quint16 videoSize = ui->videoSizeBox->currentText().trimmed().toUShort();
|
||||
quint16 videoSize = ui->maxSizeBox->currentText().trimmed().toUShort();
|
||||
Device::DeviceParams params;
|
||||
params.serial = ui->serialBox->currentText().trimmed();
|
||||
params.maxSize = videoSize;
|
||||
|
|
|
@ -299,7 +299,7 @@
|
|||
<item row="0" column="6">
|
||||
<widget class="QLabel" name="label_4">
|
||||
<property name="text">
|
||||
<string>video size:</string>
|
||||
<string>max size:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -318,7 +318,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item row="0" column="7">
|
||||
<widget class="QComboBox" name="videoSizeBox">
|
||||
<widget class="QComboBox" name="maxSizeBox">
|
||||
<property name="toolTip">
|
||||
<string/>
|
||||
</property>
|
||||
|
|
Binary file not shown.
|
@ -16,22 +16,22 @@
|
|||
<translation type="vanished">file transfer failed</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../device/device.cpp" line="101"/>
|
||||
<location filename="../../device/device.cpp" line="108"/>
|
||||
<source>install apk</source>
|
||||
<translation>install apk</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../device/device.cpp" line="103"/>
|
||||
<location filename="../../device/device.cpp" line="110"/>
|
||||
<source>file transfer</source>
|
||||
<translation>file transfer</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../device/device.cpp" line="106"/>
|
||||
<location filename="../../device/device.cpp" line="113"/>
|
||||
<source>wait current %1 to complete</source>
|
||||
<translation>wait current %1 to complete</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../device/device.cpp" line="109"/>
|
||||
<location filename="../../device/device.cpp" line="116"/>
|
||||
<source>%1 complete, save in %2</source>
|
||||
<translation>%1 complete, save in %2</translation>
|
||||
</message>
|
||||
|
@ -41,7 +41,7 @@
|
|||
<translation type="vanished">%1 complete\n save in %2</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../device/device.cpp" line="112"/>
|
||||
<location filename="../../device/device.cpp" line="119"/>
|
||||
<source>%1 failed</source>
|
||||
<translation>%1 failed</translation>
|
||||
</message>
|
||||
|
@ -75,7 +75,7 @@
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../dialog.ui" line="330"/>
|
||||
<location filename="../../dialog.cpp" line="277"/>
|
||||
<location filename="../../dialog.cpp" line="286"/>
|
||||
<source>select path</source>
|
||||
<translation>select path</translation>
|
||||
</message>
|
||||
|
@ -128,6 +128,11 @@
|
|||
<source>use reverse</source>
|
||||
<translation>use reverse</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../dialog.ui" line="302"/>
|
||||
<source>max size:</source>
|
||||
<translation>max size</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../dialog.ui" line="309"/>
|
||||
<source>close screen</source>
|
||||
|
@ -173,9 +178,8 @@
|
|||
<translation>bit rate:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../dialog.ui" line="302"/>
|
||||
<source>video size:</source>
|
||||
<translation>video size:</translation>
|
||||
<translation type="vanished">video size:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../dialog.ui" line="62"/>
|
||||
|
@ -274,7 +278,7 @@
|
|||
<translation type="vanished">file transfer failed</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../device/ui/videoform.cpp" line="396"/>
|
||||
<location filename="../../device/ui/videoform.cpp" line="407"/>
|
||||
<source>file does not exist</source>
|
||||
<translation>file does not exist</translation>
|
||||
</message>
|
||||
|
|
Binary file not shown.
|
@ -16,22 +16,22 @@
|
|||
<translation type="vanished">文件传输失败</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../device/device.cpp" line="101"/>
|
||||
<location filename="../../device/device.cpp" line="108"/>
|
||||
<source>install apk</source>
|
||||
<translation>安装apk</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../device/device.cpp" line="103"/>
|
||||
<location filename="../../device/device.cpp" line="110"/>
|
||||
<source>file transfer</source>
|
||||
<translation>文件传输</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../device/device.cpp" line="106"/>
|
||||
<location filename="../../device/device.cpp" line="113"/>
|
||||
<source>wait current %1 to complete</source>
|
||||
<translation>等待当前%1完成</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../device/device.cpp" line="109"/>
|
||||
<location filename="../../device/device.cpp" line="116"/>
|
||||
<source>%1 complete, save in %2</source>
|
||||
<translation>%1完成,保存在%2</translation>
|
||||
</message>
|
||||
|
@ -41,7 +41,7 @@
|
|||
<translation type="vanished">%1完成\n 保存在 %2</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../device/device.cpp" line="112"/>
|
||||
<location filename="../../device/device.cpp" line="119"/>
|
||||
<source>%1 failed</source>
|
||||
<translation>%1 失败</translation>
|
||||
</message>
|
||||
|
@ -75,7 +75,7 @@
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../../dialog.ui" line="330"/>
|
||||
<location filename="../../dialog.cpp" line="277"/>
|
||||
<location filename="../../dialog.cpp" line="286"/>
|
||||
<source>select path</source>
|
||||
<translation>选择路径</translation>
|
||||
</message>
|
||||
|
@ -128,6 +128,11 @@
|
|||
<source>use reverse</source>
|
||||
<translation>使用reverse</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../dialog.ui" line="302"/>
|
||||
<source>max size:</source>
|
||||
<translation>最大尺寸</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../dialog.ui" line="309"/>
|
||||
<source>close screen</source>
|
||||
|
@ -173,9 +178,8 @@
|
|||
<translation>比特率:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../dialog.ui" line="302"/>
|
||||
<source>video size:</source>
|
||||
<translation>视频尺寸:</translation>
|
||||
<translation type="vanished">视频尺寸:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../dialog.ui" line="62"/>
|
||||
|
@ -274,7 +278,7 @@
|
|||
<translation type="vanished">文件传输失败</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../device/ui/videoform.cpp" line="396"/>
|
||||
<location filename="../../device/ui/videoform.cpp" line="407"/>
|
||||
<source>file does not exist</source>
|
||||
<translation>文件不存在</translation>
|
||||
</message>
|
||||
|
|
Loading…
Add table
Reference in a new issue