mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Remove padding to the left in TreeSelectionEditor if the tree doesn't have grand children.
This commit is contained in:
@@ -76,6 +76,18 @@ public:
|
||||
return m_childItems.value(row);
|
||||
}
|
||||
|
||||
bool hasGrandChildren() const
|
||||
{
|
||||
for (auto child : m_childItems)
|
||||
{
|
||||
if (child->childCount() != 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
int childCount() const
|
||||
{
|
||||
return m_childItems.count();
|
||||
|
||||
Reference in New Issue
Block a user