fix deprecated warning QModelIndex::child

Use
QModelIndex::index
instead.

This function was DEPRECATED_SINCE(5, 8)
This commit is contained in:
Simon De Backer
2020-06-07 10:39:07 +02:00
committed by Laurent Trinques
parent 803414f716
commit 24528b0fdb
3 changed files with 7 additions and 8 deletions

View File

@@ -146,7 +146,7 @@ void DynamicElementTextItemEditor::setCurrentText(DynamicElementTextItem *text)
return;
ui->m_tree_view->expand(index);
ui->m_tree_view->expand(index.child(0,0));
ui->m_tree_view->expand(index.QModelIndex::model()->index(0,0));
ui->m_tree_view->setCurrentIndex(index);
ui->m_remove_selection->setEnabled(true);
}