//----------------------------------------------------------------------------// bool TreeViewItemRenderingState::operator>(const TreeViewItemRenderingState& other) const { ItemModel* model = d_attachedTreeView->getModel(); return model->compareIndices( model->makeIndex(d_childId, d_parentIndex), model->makeIndex(other.d_childId, other.d_parentIndex) ) > 0; }