mirror of
https://github.com/Qv2ray/Qv2ray.git
synced 2025-05-19 10:20:49 +08:00
fix: some minor UI updates
This commit is contained in:
parent
b6a8ee1aec
commit
7f99cf8b16
@ -1244,3 +1244,9 @@ void PreferencesWindow::on_tproxyMode_currentTextChanged(const QString &arg1)
|
|||||||
NEEDRESTART
|
NEEDRESTART
|
||||||
CurrentConfig.inboundConfig.tproxy_mode = arg1;
|
CurrentConfig.inboundConfig.tproxy_mode = arg1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void PreferencesWindow::on_tproxyListenAddr_textEdited(const QString &arg1)
|
||||||
|
{
|
||||||
|
NEEDRESTART
|
||||||
|
CurrentConfig.inboundConfig.tproxy_ip = arg1;
|
||||||
|
}
|
||||||
|
@ -190,6 +190,8 @@ class PreferencesWindow
|
|||||||
|
|
||||||
void on_tproxyMode_currentTextChanged(const QString &arg1);
|
void on_tproxyMode_currentTextChanged(const QString &arg1);
|
||||||
|
|
||||||
|
void on_tproxyListenAddr_textEdited(const QString &arg1);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
//
|
//
|
||||||
RouteSettingsMatrixWidget *routeSettingsWidget;
|
RouteSettingsMatrixWidget *routeSettingsWidget;
|
||||||
|
@ -20,6 +20,16 @@
|
|||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout_4">
|
<layout class="QGridLayout" name="gridLayout_4">
|
||||||
|
<item row="2" column="0">
|
||||||
|
<widget class="QDialogButtonBox" name="buttonBox">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="standardButtons">
|
||||||
|
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QTabWidget" name="tabWidget">
|
<widget class="QTabWidget" name="tabWidget">
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
@ -674,8 +684,8 @@ Custom DNS Settings</string>
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>808</width>
|
<width>794</width>
|
||||||
<height>473</height>
|
<height>484</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||||
@ -895,78 +905,116 @@ Custom DNS Settings</string>
|
|||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
<item row="1" column="0" colspan="2">
|
||||||
</item>
|
<widget class="QGroupBox" name="tproxGroupBox">
|
||||||
<item>
|
<property name="title">
|
||||||
<widget class="QGroupBox" name="tproxGroupBox">
|
<string>Transparent Proxy Settings</string>
|
||||||
<property name="title">
|
</property>
|
||||||
<string>Transparent Proxy Settings</string>
|
<property name="checkable">
|
||||||
</property>
|
<bool>true</bool>
|
||||||
<property name="checkable">
|
</property>
|
||||||
<bool>true</bool>
|
<property name="checked">
|
||||||
</property>
|
<bool>false</bool>
|
||||||
<property name="checked">
|
</property>
|
||||||
<bool>false</bool>
|
<layout class="QFormLayout" name="formLayout_11">
|
||||||
</property>
|
<item row="0" column="0">
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_11" stretch="0">
|
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_73">
|
<widget class="QLabel" name="label_73">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Listening Address</string>
|
<string>Listening Address</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item row="0" column="1">
|
||||||
<widget class="QLineEdit" name="tproxyListenAddr">
|
<layout class="QHBoxLayout" name="horizontalLayout_8">
|
||||||
<property name="placeholderText">
|
<item>
|
||||||
<string>127.0.0.1</string>
|
<widget class="QLineEdit" name="tproxyListenAddr">
|
||||||
</property>
|
<property name="placeholderText">
|
||||||
</widget>
|
<string>127.0.0.1</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label_77">
|
||||||
|
<property name="text">
|
||||||
|
<string>Port</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QSpinBox" name="tProxyPort">
|
||||||
|
<property name="minimum">
|
||||||
|
<number>1</number>
|
||||||
|
</property>
|
||||||
|
<property name="maximum">
|
||||||
|
<number>65535</number>
|
||||||
|
</property>
|
||||||
|
<property name="value">
|
||||||
|
<number>12345</number>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item row="1" column="0">
|
||||||
<widget class="QLabel" name="label_77">
|
<widget class="QLabel" name="label_72">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Port</string>
|
<string>Network Options</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item row="1" column="1">
|
||||||
<widget class="QSpinBox" name="tProxyPort">
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||||
<property name="minimum">
|
<item>
|
||||||
<number>1</number>
|
<widget class="QCheckBox" name="tproxyEnableTCP">
|
||||||
</property>
|
<property name="text">
|
||||||
<property name="maximum">
|
<string>TCP</string>
|
||||||
<number>65535</number>
|
</property>
|
||||||
</property>
|
</widget>
|
||||||
<property name="value">
|
</item>
|
||||||
<number>12345</number>
|
<item>
|
||||||
</property>
|
<widget class="QCheckBox" name="tproxyEnableUDP">
|
||||||
</widget>
|
<property name="text">
|
||||||
|
<string>UDP</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="Line" name="line">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Vertical</enum>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QCheckBox" name="tproxyFollowRedirect">
|
||||||
|
<property name="text">
|
||||||
|
<string>Follow Redirect</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="horizontalSpacer_2">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>40</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item row="2" column="0">
|
||||||
<widget class="QCheckBox" name="tproxyEnableTCP">
|
<widget class="QLabel" name="label_78">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>TCP</string>
|
<string>Mode</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item row="2" column="1">
|
||||||
<widget class="QCheckBox" name="tproxyEnableUDP">
|
|
||||||
<property name="text">
|
|
||||||
<string>UDP</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QCheckBox" name="tproxyFollowRedirect">
|
|
||||||
<property name="text">
|
|
||||||
<string>Follow Redirect</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QComboBox" name="tproxyMode">
|
<widget class="QComboBox" name="tproxyMode">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||||
@ -986,23 +1034,10 @@ Custom DNS Settings</string>
|
|||||||
</item>
|
</item>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_78">
|
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Mode</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</widget>
|
||||||
</layout>
|
</item>
|
||||||
</widget>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<spacer name="verticalSpacer_10">
|
<spacer name="verticalSpacer_10">
|
||||||
@ -1893,9 +1928,6 @@ Custom DNS Settings</string>
|
|||||||
<property name="readOnly">
|
<property name="readOnly">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="html">
|
|
||||||
<string notr="true"/>
|
|
||||||
</property>
|
|
||||||
<property name="placeholderText">
|
<property name="placeholderText">
|
||||||
<string notr="true"/>
|
<string notr="true"/>
|
||||||
</property>
|
</property>
|
||||||
@ -1920,16 +1952,6 @@ Custom DNS Settings</string>
|
|||||||
</widget>
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="0">
|
|
||||||
<widget class="QDialogButtonBox" name="buttonBox">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
<property name="standardButtons">
|
|
||||||
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<tabstops>
|
<tabstops>
|
||||||
@ -1957,12 +1979,6 @@ Custom DNS Settings</string>
|
|||||||
<tabstop>httpAuthCB</tabstop>
|
<tabstop>httpAuthCB</tabstop>
|
||||||
<tabstop>httpAuthUsernameTxt</tabstop>
|
<tabstop>httpAuthUsernameTxt</tabstop>
|
||||||
<tabstop>httpAuthPasswordTxt</tabstop>
|
<tabstop>httpAuthPasswordTxt</tabstop>
|
||||||
<tabstop>tproxGroupBox</tabstop>
|
|
||||||
<tabstop>tproxyListenAddr</tabstop>
|
|
||||||
<tabstop>tProxyPort</tabstop>
|
|
||||||
<tabstop>tproxyEnableTCP</tabstop>
|
|
||||||
<tabstop>tproxyEnableUDP</tabstop>
|
|
||||||
<tabstop>tproxyFollowRedirect</tabstop>
|
|
||||||
<tabstop>proxyDefaultCb</tabstop>
|
<tabstop>proxyDefaultCb</tabstop>
|
||||||
<tabstop>bypassCNCb</tabstop>
|
<tabstop>bypassCNCb</tabstop>
|
||||||
<tabstop>localDNSCb</tabstop>
|
<tabstop>localDNSCb</tabstop>
|
||||||
|
Loading…
Reference in New Issue
Block a user