Remove padding to the left in TreeSelectionEditor if the tree doesn't have grand children.

This commit is contained in:
Gaute Lindkvist
2018-09-28 15:50:16 +02:00
parent ac8c6edafa
commit fcda0b9755
4 changed files with 27 additions and 3 deletions

View File

@@ -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();