1
2
3
4
5
6
7
8
9
10 | void Scopes::closeScope(unity::shell::scopes::ScopeInterface* scope) { const int index = m_allScopes.indexOf((Scope*)scope); if (index >= 0) { setFavorite(scope->id(), false); beginRemoveRows(QModelIndex(), index, index); m_allScopes.removeAt(index); endInsertRows(); } } |