From: Juergen Spitzmueller Date: Mon, 22 Jul 2019 07:36:09 +0000 (+0200) Subject: use validator rather than inputMask for line edit validation X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=2ed12aecb6e789d8fccfe3a35402b11150b041d8;p=features.git use validator rather than inputMask for line edit validation inputMask gives an odd cursor, see #7204 --- diff --git a/src/frontends/qt/GuiPrefs.cpp b/src/frontends/qt/GuiPrefs.cpp index fec146aed5..02c9234ae3 100644 --- a/src/frontends/qt/GuiPrefs.cpp +++ b/src/frontends/qt/GuiPrefs.cpp @@ -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);