]> git.lyx.org Git - features.git/commitdiff
use validator rather than inputMask for line edit validation
authorJuergen Spitzmueller <spitz@lyx.org>
Mon, 22 Jul 2019 07:36:09 +0000 (09:36 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:42 +0000 (15:48 +0200)
inputMask gives an odd cursor, see #7204

src/frontends/qt/GuiPrefs.cpp

index fec146aed5c56b1d7c64b317330a09e37bc07623..02c9234ae384ff37b5a9fcf8354992357c481fe1 100644 (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);