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;
}
void ShadowsocksOutboundEditor::on_ss_encryptionMethod_currentIndexChanged(const QString &arg1)
void ShadowsocksOutboundEditor::on_ss_encryptionMethod_currentTextChanged(const QString &arg1)
{
PLUGIN_EDITOR_LOADING_GUARD
shadowsocks.method = arg1;

View File

@ -47,7 +47,7 @@ class ShadowsocksOutboundEditor
void changeEvent(QEvent *e) override;
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);
private:

View File

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