mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fixed background color setting for legends and refactored Legend class hierarchy
* Added a new cafTitledOverlayFrame as a base-class for all ResInsight legend classes * Inherits cvf::OverlayItem
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
#include "RimStimPlanColors.h"
|
||||
#include "RimViewLinker.h"
|
||||
|
||||
#include "cafTitledOverlayFrame.h"
|
||||
#include "cafCategoryLegend.h"
|
||||
#include "cafCategoryMapper.h"
|
||||
#include "cafOverlayScalarMapperLegend.h"
|
||||
@@ -675,7 +676,7 @@ void RimLegendConfig::setTitle(const QString& title)
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
cvf::OverlayItem* RimLegendConfig::legend()
|
||||
caf::TitledOverlayFrame* RimLegendConfig::legend()
|
||||
{
|
||||
if (m_currentScalarMapper == m_categoryMapper)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user