mirror of
https://github.com/Qv2ray/Qv2ray.git
synced 2025-05-21 19:30:26 +08:00
ui tweak: combobo for useragent
This commit is contained in:
parent
7c178c9e7c
commit
df844da03f
@ -151,7 +151,7 @@ PreferencesWindow::PreferencesWindow(QWidget *parent) : QvDialog(parent), Curren
|
|||||||
qvProxyPortCB->setValue(CurrentConfig.networkConfig.port);
|
qvProxyPortCB->setValue(CurrentConfig.networkConfig.port);
|
||||||
qvProxyAddressTxt->setText(CurrentConfig.networkConfig.address);
|
qvProxyAddressTxt->setText(CurrentConfig.networkConfig.address);
|
||||||
qvProxyTypeCombo->setCurrentText(CurrentConfig.networkConfig.type);
|
qvProxyTypeCombo->setCurrentText(CurrentConfig.networkConfig.type);
|
||||||
qvNetworkUATxt->setText(CurrentConfig.networkConfig.userAgent);
|
qvNetworkUATxt->setEditText(CurrentConfig.networkConfig.userAgent);
|
||||||
//
|
//
|
||||||
qvProxyNoProxy->setChecked(CurrentConfig.networkConfig.proxyType == Qv2rayConfig_Network::QVPROXY_NONE);
|
qvProxyNoProxy->setChecked(CurrentConfig.networkConfig.proxyType == Qv2rayConfig_Network::QVPROXY_NONE);
|
||||||
qvProxySystemProxy->setChecked(CurrentConfig.networkConfig.proxyType == Qv2rayConfig_Network::QVPROXY_SYSTEM);
|
qvProxySystemProxy->setChecked(CurrentConfig.networkConfig.proxyType == Qv2rayConfig_Network::QVPROXY_SYSTEM);
|
||||||
@ -881,12 +881,6 @@ void PreferencesWindow::on_qvProxyPortCB_valueChanged(int arg1)
|
|||||||
CurrentConfig.networkConfig.port = arg1;
|
CurrentConfig.networkConfig.port = arg1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void PreferencesWindow::on_qvNetworkUATxt_textEdited(const QString &arg1)
|
|
||||||
{
|
|
||||||
LOADINGCHECK
|
|
||||||
CurrentConfig.networkConfig.userAgent = arg1;
|
|
||||||
}
|
|
||||||
|
|
||||||
void PreferencesWindow::on_setAllowInsecureCB_stateChanged(int arg1)
|
void PreferencesWindow::on_setAllowInsecureCB_stateChanged(int arg1)
|
||||||
{
|
{
|
||||||
LOADINGCHECK
|
LOADINGCHECK
|
||||||
@ -1139,3 +1133,9 @@ void PreferencesWindow::on_latencyICMPingRB_clicked()
|
|||||||
latencyTCPingRB->setChecked(false);
|
latencyTCPingRB->setChecked(false);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void PreferencesWindow::on_qvNetworkUATxt_editTextChanged(const QString &arg1)
|
||||||
|
{
|
||||||
|
LOADINGCHECK
|
||||||
|
CurrentConfig.networkConfig.userAgent = arg1;
|
||||||
|
}
|
||||||
|
@ -95,7 +95,6 @@ class PreferencesWindow
|
|||||||
void on_qvProxyAddressTxt_textEdited(const QString &arg1);
|
void on_qvProxyAddressTxt_textEdited(const QString &arg1);
|
||||||
void on_qvProxyTypeCombo_currentTextChanged(const QString &arg1);
|
void on_qvProxyTypeCombo_currentTextChanged(const QString &arg1);
|
||||||
void on_qvProxyPortCB_valueChanged(int arg1);
|
void on_qvProxyPortCB_valueChanged(int arg1);
|
||||||
void on_qvNetworkUATxt_textEdited(const QString &arg1);
|
|
||||||
void on_setAllowInsecureCB_stateChanged(int arg1);
|
void on_setAllowInsecureCB_stateChanged(int arg1);
|
||||||
void on_setTestLatenctCB_stateChanged(int arg1);
|
void on_setTestLatenctCB_stateChanged(int arg1);
|
||||||
void on_setAllowInsecureCiphersCB_stateChanged(int arg1);
|
void on_setAllowInsecureCiphersCB_stateChanged(int arg1);
|
||||||
@ -122,6 +121,7 @@ class PreferencesWindow
|
|||||||
void on_fixedAutoConnectRB_clicked();
|
void on_fixedAutoConnectRB_clicked();
|
||||||
void on_latencyTCPingRB_clicked();
|
void on_latencyTCPingRB_clicked();
|
||||||
void on_latencyICMPingRB_clicked();
|
void on_latencyICMPingRB_clicked();
|
||||||
|
void on_qvNetworkUATxt_editTextChanged(const QString &arg1);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
//
|
//
|
||||||
|
@ -357,10 +357,28 @@ For example, for updating subscriptions.</string>
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="1">
|
<item row="2" column="1">
|
||||||
<widget class="QLineEdit" name="qvNetworkUATxt">
|
<widget class="QComboBox" name="qvNetworkUATxt">
|
||||||
<property name="text">
|
<property name="editable">
|
||||||
<string/>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string notr="true">Qv2ray/$VERSION WebRequestHelper</string>
|
||||||
|
</property>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string notr="true">Qv2ray/$VERSION WebRequestHelper</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string notr="true">Mozilla/5.0 (X11; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string notr="true"></string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0">
|
<item row="1" column="0">
|
||||||
|
Loading…
Reference in New Issue
Block a user