EditorManager: Do not be a widget.

There is no reason for the editor manager itself to be a widget. This
makes even less sense in the presence of multiple windows.

Change-Id: I384f8945fdd5632d64643e473e6637e05abbce7e
Reviewed-by: hjk <hjk121@nokiamail.com>
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
Eike Ziller
2014-07-18 15:33:30 +02:00
committed by hjk
parent 30bad4b3f0
commit 4b82817391
11 changed files with 164 additions and 94 deletions

View File

@@ -39,6 +39,7 @@
#include "addlibrarywizard.h"
#include "wizards/qtquickapp.h"
#include <coreplugin/icore.h>
#include <projectexplorer/projectexplorer.h>
#include <projectexplorer/buildmanager.h>
#include <projectexplorer/session.h>
@@ -146,7 +147,7 @@ void QmakeManager::addLibraryContextMenu()
void QmakeManager::addLibrary(const QString &fileName, ProFileEditor *editor)
{
AddLibraryWizard wizard(fileName, Core::EditorManager::instance());
AddLibraryWizard wizard(fileName, Core::ICore::dialogParent());
if (wizard.exec() != QDialog::Accepted)
return;