mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#887 Category Legend: Limit legend height when having few categories
This commit is contained in:
@@ -127,6 +127,19 @@ String CategoryLegend::title() const
|
||||
return title;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
size_t CategoryLegend::categoryCount() const
|
||||
{
|
||||
if (m_categoryMapper.notNull())
|
||||
{
|
||||
return m_categoryMapper->categoryCount();
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
/// Hardware rendering using shader programs
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -49,6 +49,8 @@ public:
|
||||
void setTitle(const cvf::String& title);
|
||||
cvf::String title() const;
|
||||
|
||||
size_t categoryCount() const;
|
||||
|
||||
protected:
|
||||
|
||||
//==================================================================================================
|
||||
|
||||
Reference in New Issue
Block a user