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:
@@ -218,6 +218,14 @@ bool caf::PdmUiTreeSelectionQModel::isChecked(const QModelIndex& index) const
|
||||
return data(index, Qt::CheckStateRole).toBool();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
/// Checks if this is a real tree with grand children or just a list of children.
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool caf::PdmUiTreeSelectionQModel::hasGrandChildren() const
|
||||
{
|
||||
return m_tree && m_tree->hasGrandChildren();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user