mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-19 13:50:12 +08:00
add brutal upload ui
This commit is contained in:
parent
a2cba53700
commit
1983ef7b51
@ -277,23 +277,61 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="brutal_speed_l">
|
<widget class="QWidget" name="widget" native="true">
|
||||||
<property name="toolTip">
|
<layout class="QGridLayout" name="gridLayout_3">
|
||||||
<string><html><head/><body><p>Server to Client TCP Brutal Speed</p></body></html></string>
|
<property name="leftMargin">
|
||||||
</property>
|
<number>0</number>
|
||||||
<property name="text">
|
</property>
|
||||||
<string>TCP Brutal Speed</string>
|
<property name="topMargin">
|
||||||
</property>
|
<number>0</number>
|
||||||
</widget>
|
</property>
|
||||||
</item>
|
<property name="rightMargin">
|
||||||
<item>
|
<number>0</number>
|
||||||
<widget class="QLineEdit" name="brutal_speed"/>
|
</property>
|
||||||
</item>
|
<property name="bottomMargin">
|
||||||
<item>
|
<number>0</number>
|
||||||
<widget class="QLabel" name="brutal_speed_u">
|
</property>
|
||||||
<property name="text">
|
<property name="spacing">
|
||||||
<string>Mb/s</string>
|
<number>2</number>
|
||||||
</property>
|
</property>
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QLabel" name="brutal_speed_l">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string><html><head/><body><p>Server to Client TCP Brutal Speed</p></body></html></string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Brutal Download Speed</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="2">
|
||||||
|
<widget class="QLabel" name="brutal_speed_u">
|
||||||
|
<property name="text">
|
||||||
|
<string>Mb/s</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="1">
|
||||||
|
<widget class="QLineEdit" name="brutal_d_speed"/>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0">
|
||||||
|
<widget class="QLabel" name="label_4">
|
||||||
|
<property name="text">
|
||||||
|
<string>Brutal Upload Speed</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="1">
|
||||||
|
<widget class="QLineEdit" name="brutal_u_speed"/>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="2">
|
||||||
|
<widget class="QLabel" name="label_7">
|
||||||
|
<property name="text">
|
||||||
|
<string>Mb/s</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
|
|||||||
@ -342,7 +342,8 @@ void DialogEditProfile::typeSelected(const QString &newType) {
|
|||||||
auto mux = ent->outbound->GetMux();
|
auto mux = ent->outbound->GetMux();
|
||||||
ui->multiplex->setCurrentIndex(mux->getMuxState());
|
ui->multiplex->setCurrentIndex(mux->getMuxState());
|
||||||
ui->brutal_enable->setChecked(mux->brutal->enabled);
|
ui->brutal_enable->setChecked(mux->brutal->enabled);
|
||||||
ui->brutal_speed->setText(Int2String(mux->brutal->down_mbps));
|
ui->brutal_d_speed->setText(Int2String(mux->brutal->down_mbps));
|
||||||
|
ui->brutal_u_speed->setText(Int2String(mux->brutal->up_mbps));
|
||||||
}
|
}
|
||||||
|
|
||||||
// 左边 bean
|
// 左边 bean
|
||||||
@ -457,7 +458,8 @@ bool DialogEditProfile::onEnd() {
|
|||||||
auto mux = ent->outbound->GetMux();
|
auto mux = ent->outbound->GetMux();
|
||||||
mux->saveMuxState(ui->multiplex->currentIndex());
|
mux->saveMuxState(ui->multiplex->currentIndex());
|
||||||
mux->brutal->enabled = ui->brutal_enable->isChecked();
|
mux->brutal->enabled = ui->brutal_enable->isChecked();
|
||||||
mux->brutal->down_mbps = ui->brutal_speed->text().toInt();
|
mux->brutal->down_mbps = ui->brutal_d_speed->text().toInt();
|
||||||
|
mux->brutal->up_mbps = ui->brutal_u_speed->text().toInt();
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user