mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Submenus. Minor refactoring
This commit is contained in:
@@ -184,12 +184,13 @@ void CmdFeature::disableModelChangeContribution()
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
/// Returns action user data.
|
||||
/// May be called from onActionTriggered only
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
const QVariant CmdFeature::userData() const
|
||||
{
|
||||
QAction* action = qobject_cast<QAction*>(sender());
|
||||
if (!action) return QVariant();
|
||||
CAF_ASSERT(action);
|
||||
|
||||
return action->data();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user