signals:
/// The signal about key release on the control, that corresponds to the attribute
+ /// \param theObject a sender of the event
/// \param theEvent key release event
- void keyReleased(QKeyEvent* theEvent);
+ void keyReleased(QObject* theObject, QKeyEvent* theEvent);
/// The signal about the widget activation
/// \param theWidget the activated widget
void afterValuesRestored();
/// The signal about key release on the control, that corresponds to the attribute
+ /// \param theObject a sender of the event
/// \param theEvent key release event
- void keyReleased(QKeyEvent* theEvent);
+ void keyReleased(QObject* theObject, QKeyEvent* theEvent);
/// The signal is emitted if the enter is clicked in the control of the widget
void enterClicked();
switch (theEvent->key()) {
case Qt::Key_Enter:
case Qt::Key_Return:
- emit keyReleased(theEvent);
+ emit keyReleased(this, theEvent);
// do not react to the Enter key, the property panel processes it
return;
break;
this->setLayout(aMainLay);
connect(myEditor, SIGNAL(valueModified()), this, SIGNAL(valuesModified()));
- connect(myEditor, SIGNAL(keyReleased(QKeyEvent*)), this, SIGNAL(keyReleased(QKeyEvent*)));
+ connect(myEditor, SIGNAL(keyReleased(QObject*, QKeyEvent*)),
+ this, SIGNAL(keyReleased(QObject*, QKeyEvent*)));
}
ModuleBase_WidgetExprEditor::~ModuleBase_WidgetExprEditor()
void valueModified();
/// The signal about key release on the control, that corresponds to the attribute
+ /// \param theObject a sender of the event
/// \param theEvent key release event
- void keyReleased(QKeyEvent* theEvent);
+ void keyReleased(QObject* theObject, QKeyEvent* theEvent);
protected:
/// Perform completion by prefix
ModuleBase_Operation* previousOperation(ModuleBase_Operation* theOperation) const;
/// Redefinition of virtual function
+ /// \param theObject a sender of the event
virtual bool eventFilter(QObject *theObject, QEvent *theEvent);
/// Start the operation and append it to the stack of operations
public slots:
/// SLOT, that is called by the key in the property panel is clicked.
- /// \param theEvent the mouse event
/// \param theObject a sender of the event
+ /// \param theEvent the mouse event
bool onKeyReleased(QObject *theObject, QKeyEvent* theEvent);
/// The functionaly, that should be done by delete click
this, SLOT(activateWidget(ModuleBase_ModelWidget*)));
connect(aWidget, SIGNAL(focusOutWidget(ModuleBase_ModelWidget*)),
this, SLOT(onActivateNextWidget(ModuleBase_ModelWidget*)));
- connect(aWidget, SIGNAL(keyReleased(QKeyEvent*)),
- this, SIGNAL(keyReleased(QKeyEvent*)));
+ connect(aWidget, SIGNAL(keyReleased(QObject*, QKeyEvent*)),
+ this, SIGNAL(keyReleased(QObject*, QKeyEvent*)));
connect(aWidget, SIGNAL(enterClicked()),
this, SIGNAL(enterClicked()));
QAction* aCancelAct = myActionsMgr->operationStateAction(XGUI_ActionsMgr::Abort);
connect(aCancelAct, SIGNAL(triggered()), myOperationMgr, SLOT(onAbortOperation()));
- connect(myPropertyPanel, SIGNAL(keyReleased(QKeyEvent*)),
- myOperationMgr, SLOT(onKeyReleased(QKeyEvent*)));
+ connect(myPropertyPanel, SIGNAL(keyReleased(QObject*, QKeyEvent*)),
+ myOperationMgr, SLOT(onKeyReleased(QObject*, QKeyEvent*)));
connect(myPropertyPanel, SIGNAL(enterClicked()),
myOperationMgr, SLOT(onProcessEnter()));