void keyReleased(QObject* theObject, QKeyEvent* theEvent);
/// The signal is emitted if the enter is clicked in the control of the widget
- void enterClicked();
+ /// \param theObject a sender of the event
+ void enterClicked(QObject* theObject);
/// The signal about the widget is get focus
/// \param theWidget the model base widget
//if (myIsEnterPressedEmitted)
if (!myIsEditing)
- emit enterClicked();
+ emit enterClicked(this);
}
else
storeValue();
this, SLOT(onActivateNextWidget(ModuleBase_ModelWidget*)));
connect(aWidget, SIGNAL(keyReleased(QObject*, QKeyEvent*)),
this, SIGNAL(keyReleased(QObject*, QKeyEvent*)));
- connect(aWidget, SIGNAL(enterClicked()),
- this, SIGNAL(enterClicked()));
+ connect(aWidget, SIGNAL(enterClicked(QObject*)),
+ this, SIGNAL(enterClicked(QObject*)));
}
}
void onActivateNextWidget(ModuleBase_ModelWidget* theWidget);
signals:
- void enterClicked();
+ /// The signal is emitted if the enter is clicked in the control of the widget
+ /// \param theObject a sender of the event
+ void enterClicked(QObject* theObject);
protected:
/// Makes the widget active, deactivate the previous, activate and hightlight the given one
connect(myPropertyPanel, SIGNAL(keyReleased(QObject*, QKeyEvent*)),
myOperationMgr, SLOT(onKeyReleased(QObject*, QKeyEvent*)));
- connect(myPropertyPanel, SIGNAL(enterClicked()),
- myOperationMgr, SLOT(onProcessEnter()));
+ connect(myPropertyPanel, SIGNAL(enterClicked(QObject*)),
+ myOperationMgr, SLOT(onProcessEnter(QObject*)));
}
//******************************************************