little ui fixes

This commit is contained in:
hypnosis-i2p 2017-09-08 18:02:12 +08:00
parent 9441c1cffe
commit 1efc2a9b5d
2 changed files with 3 additions and 3 deletions

View File

@ -929,7 +929,7 @@
<item>
<widget class="QLabel" name="label_7">
<property name="text">
<string>Port (leave empty to auto-assign):</string>
<string>Port (leave 0 to auto-assign):</string>
</property>
</widget>
</item>
@ -1500,7 +1500,7 @@
<item>
<widget class="QLabel" name="bandwidthLabel">
<property name="text">
<string>Bandwidth limit (integer):</string>
<string>Bandwidth limit (integer or a letter):</string>
</property>
</widget>
</item>

View File

@ -331,7 +331,7 @@ public:
class UInt16StringItem : public BaseFormattedStringItem {
public:
UInt16StringItem(ConfigOption option_, QLineEdit* lineEdit_, QString fieldNameTranslated_) :
BaseFormattedStringItem(option_, lineEdit_, fieldNameTranslated_, QApplication::tr("Must be unsigned 16-bit integer")) {};
BaseFormattedStringItem(option_, lineEdit_, fieldNameTranslated_, QApplication::tr("Must be unsigned 16-bit integer.")) {};
virtual ~UInt16StringItem(){}
virtual bool isValid(){
auto str=lineEdit->text();