switch (theEvent->key()) {
case Qt::Key_Enter:
case Qt::Key_Return:
+ emit keyReleased(theEvent);
// do not react to the Enter key, the property panel processes it
return;
break;
//connect(myEditor, SIGNAL(editingFinished()), this, SLOT(onTextChanged()));
connect(myEditor, SIGNAL(valueStored()), this, SLOT(onTextChanged()));
connect(myEditor, SIGNAL(focusNextPrev()), this, SIGNAL(focusNextPrev()));
+
+ connect(myEditor, SIGNAL(keyReleased(QKeyEvent*)), this, SIGNAL(keyReleased(QKeyEvent*)));
+ /// The signal about key release on the control, that corresponds to the attribute
+ /// \param theEvent key release event
}
ModuleBase_WidgetExprEditor::~ModuleBase_WidgetExprEditor()
void valueStored();
void focusNextPrev();
+ /// The signal about key release on the control, that corresponds to the attribute
+ /// \param theEvent key release event
+ void keyReleased(QKeyEvent* theEvent);
+
protected:
/// Perform completion by prefix
/// \param theCompletionPrefix a prefix for looking for completion