make QComboBox ss_encryptionMethod editable

This commit is contained in:
dyhkwong 2021-01-01 13:09:51 +08:00 committed by QxQ
parent 6cab561332
commit 2befe9eb20
3 changed files with 5 additions and 2 deletions

View File

@ -23,7 +23,7 @@ void ShadowsocksOutboundEditor::on_ss_passwordTxt_textEdited(const QString &arg1
shadowsocks.password = arg1; shadowsocks.password = arg1;
} }
void ShadowsocksOutboundEditor::on_ss_encryptionMethod_currentIndexChanged(const QString &arg1) void ShadowsocksOutboundEditor::on_ss_encryptionMethod_currentTextChanged(const QString &arg1)
{ {
PLUGIN_EDITOR_LOADING_GUARD PLUGIN_EDITOR_LOADING_GUARD
shadowsocks.method = arg1; shadowsocks.method = arg1;

View File

@ -47,7 +47,7 @@ class ShadowsocksOutboundEditor
void changeEvent(QEvent *e) override; void changeEvent(QEvent *e) override;
private slots: private slots:
void on_ss_encryptionMethod_currentIndexChanged(const QString &arg1); void on_ss_encryptionMethod_currentTextChanged(const QString &arg1);
void on_ss_passwordTxt_textEdited(const QString &arg1); void on_ss_passwordTxt_textEdited(const QString &arg1);
private: private:

View File

@ -43,6 +43,9 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="editable">
<bool>true</bool>
</property>
<item> <item>
<property name="text"> <property name="text">
<string notr="true">none</string> <string notr="true">none</string>