forked from qt-creator/qt-creator
EditorManager: Small API clean-up
- Move private enum to private header
- Add missing parameter to openEditorAtSearchResult
- Remove convenience singular close* methods, we have {} nowadays
Change-Id: Ic5b6d831a9f506ffee09b89b3358874433d62998
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -1643,7 +1643,7 @@ void ClearCasePluginPrivate::commitFromEditor()
|
||||
{
|
||||
m_submitActionTriggered = true;
|
||||
QTC_ASSERT(submitEditor(), return);
|
||||
EditorManager::closeDocument(submitEditor()->document());
|
||||
EditorManager::closeDocuments({submitEditor()->document()});
|
||||
}
|
||||
|
||||
QString ClearCasePluginPrivate::runCleartoolSync(const QString &workingDir,
|
||||
@@ -2712,7 +2712,7 @@ public:
|
||||
|
||||
~TestCase()
|
||||
{
|
||||
EditorManager::closeDocument(m_editor->document(), false);
|
||||
EditorManager::closeDocuments({m_editor->document()}, false);
|
||||
QCoreApplication::processEvents(); // process any pending events
|
||||
|
||||
QFile file(m_fileName);
|
||||
|
||||
Reference in New Issue
Block a user