myErrorLabel(0),
myWorkshop(theWorkshop)
{
+ ModuleBase_ModelWidget* anActiveWidget = activeWidget();
+ XGUI_ActionsMgr* anActionsMgr = workshop()->actionsMgr();
+ QAction* anAcceptAllAction = anActionsMgr->operationStateAction(XGUI_ActionsMgr::AcceptAll, NULL);
+ myAcceptAllToolTip = anAcceptAllAction->toolTip();
+ QAction* anOkAction = anActionsMgr->operationStateAction(XGUI_ActionsMgr::Accept);
+ myAcceptToolTip = anOkAction->toolTip();
}
XGUI_ErrorMgr::~XGUI_ErrorMgr()
QAction* anAcceptAllAction = anActionsMgr->operationStateAction(XGUI_ActionsMgr::AcceptAll, NULL);
bool anEnabled = anError.isEmpty();
anAcceptAllAction->setEnabled(anEnabled);
- anAcceptAllAction->setToolTip(anError);
+ anAcceptAllAction->setToolTip(!anEnabled ? anError : myAcceptAllToolTip);
}
}
bool anEnabled = theError.isEmpty();
theAction->setEnabled(anEnabled);
+ theAction->setToolTip(anEnabled ? myAcceptToolTip : theError);
// some operations have no property panel, so it is important to check that it is not null
if (myPropertyPanel) {
// update controls error information