use validator rather than inputMask for line edit validation (part 2)

This commit is contained in:
Juergen Spitzmueller 2019-07-22 11:31:56 +02:00
parent 13df8f9a21
commit 24d72468c0
2 changed files with 2 additions and 2 deletions

View File

@ -178,7 +178,7 @@ GuiTabular::GuiTabular(QWidget * parent)
connect(tabularWidthED, SIGNAL(textEdited(const QString &)),
this, SLOT(checkEnabled()));
decimalPointED->setInputMask("X; ");
decimalPointED->setValidator(new QRegExpValidator(QRegExp("\\S"), this));
decimalPointED->setMaxLength(1);
// initialize the length validator

View File

@ -474,7 +474,7 @@
</property>
<property name="maximumSize">
<size>
<width>20</width>
<width>40</width>
<height>16777215</height>
</size>
</property>