mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
@@ -29,20 +29,8 @@ void RiaOptionItemFactory::appendOptionItemFromViewNameAndCaseName( Rim3dView*
|
||||
{
|
||||
if ( !view || !optionItems ) return;
|
||||
|
||||
QString caseName;
|
||||
|
||||
RimCase* rimCase = nullptr;
|
||||
view->firstAncestorOrThisOfType( rimCase );
|
||||
if ( rimCase )
|
||||
{
|
||||
caseName = rimCase->caseUserDescription();
|
||||
}
|
||||
else
|
||||
{
|
||||
caseName = "<Unnamed case>";
|
||||
}
|
||||
|
||||
QString displayName = caseName + " : " + view->name();
|
||||
QString displayName = view->autoName();
|
||||
|
||||
caf::QIconProvider iconProvider = view->uiCapability()->uiIconProvider();
|
||||
|
||||
|
||||
@@ -219,6 +219,14 @@ QString Rim3dView::name() const
|
||||
return m_nameConfig->customName();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QString Rim3dView::autoName() const
|
||||
{
|
||||
return m_nameConfig->name();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -109,6 +109,7 @@ public:
|
||||
|
||||
void setName( const QString& name );
|
||||
QString name() const;
|
||||
QString autoName() const;
|
||||
|
||||
// Implementation of RiuViewerToViewInterface
|
||||
cvf::Color3f backgroundColor() const override
|
||||
|
||||
Reference in New Issue
Block a user