1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: ModuleBase_IntSpinBox.cxx
4 // Author: Natalia ERMOLAEVA
6 #include "ModuleBase_IntSpinBox.h"
10 ModuleBase_IntSpinBox::ModuleBase_IntSpinBox(QWidget* theParent)
11 : QSpinBox(theParent)//,
14 //connect(this, SIGNAL(valueChanged(const QString&)), this, SLOT(onValueChanged(const QString&)));
17 /*void ModuleBase_IntSpinBox::onValueChanged(const QString& theValue)
22 bool ModuleBase_IntSpinBox::isModified() const
27 void ModuleBase_IntSpinBox::clearModified()
32 void ModuleBase_IntSpinBox::keyPressEvent(QKeyEvent *theEvent)
34 switch (theEvent->key()) {
36 case Qt::Key_Return: {
37 // do not react to the Enter key, the property panel processes it
44 QSpinBox::keyPressEvent(theEvent);