use validator rather than inputMask for line edit validation

inputMask gives an odd cursor, see #7204
This commit is contained in:
Juergen Spitzmueller 2019-07-22 09:36:09 +02:00
parent 4fca62a37c
commit 13df8f9a21

View File

@ -2423,7 +2423,7 @@ PrefLanguage::PrefLanguage(GuiPreferences * form)
startCommandED->setValidator(new NoNewLineValidator(startCommandED));
endCommandED->setValidator(new NoNewLineValidator(endCommandED));
defaultDecimalSepED->setInputMask("X; ");
defaultDecimalSepED->setValidator(new QRegExpValidator(QRegExp("\\S"), this));
defaultDecimalSepED->setMaxLength(1);
defaultLengthUnitCO->addItem(lyx::qt_(unit_name_gui[Length::CM]), Length::CM);