From 808c060a255af042c115cb64c355df2051413a4d Mon Sep 17 00:00:00 2001 From: Nova Date: Thu, 27 Nov 2025 12:22:40 +0330 Subject: [PATCH] add brutal upload ui --- include/ui/profile/dialog_edit_profile.ui | 72 +++++++++++++++++------ src/ui/profile/dialog_edit_profile.cpp | 6 +- 2 files changed, 59 insertions(+), 19 deletions(-) diff --git a/include/ui/profile/dialog_edit_profile.ui b/include/ui/profile/dialog_edit_profile.ui index d8a7507..59f7b23 100644 --- a/include/ui/profile/dialog_edit_profile.ui +++ b/include/ui/profile/dialog_edit_profile.ui @@ -272,23 +272,61 @@ - - - <html><head/><body><p>Server to Client TCP Brutal Speed</p></body></html> - - - TCP Brutal Speed - - - - - - - - - - Mb/s - + + + + 0 + + + 0 + + + 0 + + + 0 + + + 2 + + + + + <html><head/><body><p>Server to Client TCP Brutal Speed</p></body></html> + + + Brutal Download Speed + + + + + + + Mb/s + + + + + + + + + + Brutal Upload Speed + + + + + + + + + + Mb/s + + + + diff --git a/src/ui/profile/dialog_edit_profile.cpp b/src/ui/profile/dialog_edit_profile.cpp index 8ef6f0c..5b8d026 100644 --- a/src/ui/profile/dialog_edit_profile.cpp +++ b/src/ui/profile/dialog_edit_profile.cpp @@ -320,7 +320,8 @@ void DialogEditProfile::typeSelected(const QString &newType) { auto mux = ent->outbound->GetMux(); ui->multiplex->setCurrentIndex(mux->getMuxState()); 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 @@ -433,7 +434,8 @@ bool DialogEditProfile::onEnd() { auto mux = ent->outbound->GetMux(); mux->saveMuxState(ui->multiplex->currentIndex()); 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;