Commit da67c140 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit

Merge pull request #33 from mwestphal/10752_32_IsLetterOrNumberFix

Using isPrint() instead of isLetterOrNumber() to check if a key is di…
parents 0fa33fb5 61d84487
......@@ -80,7 +80,7 @@ bool pqDoubleSpinBoxEventTranslator::translateEvent(QObject* Object, QEvent* Eve
{
QKeyEvent* ke = static_cast<QKeyEvent*>(Event);
QString keyText = ke->text();
if(keyText.length() && keyText.at(0).isLetterOrNumber())
if(keyText.length() && keyText.at(0).isPrint())
{
emit recordEvent(object, "set_double", QString("%1").arg(object->value()));
}
......
......@@ -82,7 +82,7 @@ bool pqLineEditEventTranslator::translateEvent(QObject* object, QEvent* event, i
{
QKeyEvent* ke = static_cast<QKeyEvent*>(event);
QString keyText = ke->text();
if(keyText.length() && keyText.at(0).isLetterOrNumber())
if(keyText.length() && keyText.at(0).isPrint())
{
if (leObject)
{
......
......@@ -90,7 +90,7 @@ bool pqSpinBoxEventTranslator::translateEvent(QObject* Object,
QKeyEvent* ke = static_cast<QKeyEvent*>(Event);
QString keyText = ke->text();
this->Value = object->value();
if(keyText.length() && keyText.at(0).isLetterOrNumber())
if(keyText.length() && keyText.at(0).isPrint())
{
emit recordEvent(object, "set_int", QString("%1").arg(object->value()));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment