XGUI_ActionsMgr* anActionsMgr = workshop()->actionsMgr();
QAction* anAcceptAllAction = anActionsMgr->operationStateAction(XGUI_ActionsMgr::AcceptAll);
myAcceptAllToolTip = anAcceptAllAction->toolTip();
+ myAcceptAllStatusTip = anAcceptAllAction->statusTip();
QAction* anOkAction = anActionsMgr->operationStateAction(XGUI_ActionsMgr::Accept);
myAcceptToolTip = anOkAction->toolTip();
+ myAcceptStatusTip = anOkAction->toolTip();
}
XGUI_ErrorMgr::~XGUI_ErrorMgr()
bool anEnabled = anError.isEmpty();
anAcceptAllAction->setEnabled(anEnabled);
anAcceptAllAction->setToolTip(!anEnabled ? anError : myAcceptAllToolTip);
+ anAcceptAllAction->setStatusTip(!anEnabled ? anError : myAcceptAllStatusTip);
}
}
anAcceptAction->setEnabled(anEnabled);
anAcceptAction->setToolTip(anEnabled ? myAcceptToolTip : theError);
+ anAcceptAction->setStatusTip(anEnabled ? myAcceptStatusTip : theError);
// some operations have no property panel, so it is important to check that it is not null
if (myPropertyPanel) {
// update controls error information
QLabel* myErrorLabel; /// contains an error information
QString myAcceptToolTip; /// cached tool tip value for enabled Accept action
QString myAcceptAllToolTip; /// cached tool tip value for enabled AcceptAll action
+ QString myAcceptStatusTip; /// cached status tip value for enabled Accept action
+ QString myAcceptAllStatusTip; /// cached status tip value for enabled AcceptAll action
};
#endif // XGUI_ErrorMgr_H
\ No newline at end of file