Browse Source

little ui fixes

pull/948/head
hypnosis-i2p 7 years ago
parent
commit
1efc2a9b5d
  1. 4
      qt/i2pd_qt/generalsettingswidget.ui
  2. 2
      qt/i2pd_qt/mainwindow.h

4
qt/i2pd_qt/generalsettingswidget.ui

@ -929,7 +929,7 @@ @@ -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 @@ @@ -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>

2
qt/i2pd_qt/mainwindow.h

@ -331,7 +331,7 @@ public: @@ -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();

Loading…
Cancel
Save