From 2ed12aecb6e789d8fccfe3a35402b11150b041d8 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Mon, 22 Jul 2019 09:36:09 +0200 Subject: [PATCH] use validator rather than inputMask for line edit validation inputMask gives an odd cursor, see #7204 --- src/frontends/qt/GuiPrefs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5