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

2
qt/i2pd_qt/mainwindow.h

@ -331,7 +331,7 @@ public:
class UInt16StringItem : public BaseFormattedStringItem { class UInt16StringItem : public BaseFormattedStringItem {
public: public:
UInt16StringItem(ConfigOption option_, QLineEdit* lineEdit_, QString fieldNameTranslated_) : 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 ~UInt16StringItem(){}
virtual bool isValid(){ virtual bool isValid(){
auto str=lineEdit->text(); auto str=lineEdit->text();

Loading…
Cancel
Save