Make document model API more consistent with entry vs document

Change-Id: Iae2fe480d9fcb564d566f1dcca142c21c99c2d5b
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
Eike Ziller
2014-06-13 16:21:25 +02:00
committed by hjk
parent e828f60c90
commit 98ae1bf67b
11 changed files with 67 additions and 67 deletions

View File

@@ -2154,12 +2154,12 @@ int FakeVimPluginPrivate::currentFile() const
void FakeVimPluginPrivate::switchToFile(int n)
{
int size = DocumentModel::documentCount();
int size = DocumentModel::entryCount();
QTC_ASSERT(size, return);
n = n % size;
if (n < 0)
n += size;
EditorManager::activateEditorForEntry(DocumentModel::documents().at(n));
EditorManager::activateEditorForEntry(DocumentModel::entries().at(n));
}
ExCommandMap &FakeVimExCommandsPage::exCommandMap()