forked from qt-creator/qt-creator
Fixes: coreplugin: remove more PluginManager parameters
Details: access PluginManager::instance() instead
This commit is contained in:
@@ -49,10 +49,6 @@ class QSettings;
|
||||
class QShortcut;
|
||||
QT_END_NAMESPACE
|
||||
|
||||
namespace ExtensionSystem {
|
||||
class PluginManager;
|
||||
}
|
||||
|
||||
namespace Core {
|
||||
|
||||
class ActionManager;
|
||||
@@ -93,7 +89,7 @@ public:
|
||||
MainWindow();
|
||||
~MainWindow();
|
||||
|
||||
bool init(ExtensionSystem::PluginManager *pm, QString *error_message);
|
||||
bool init(QString *errorMessage);
|
||||
void extensionsInitialized();
|
||||
|
||||
IContext *contextObject(QWidget *widget);
|
||||
@@ -103,12 +99,10 @@ public:
|
||||
|
||||
void openFiles(const QStringList &fileNames);
|
||||
|
||||
inline ExtensionSystem::PluginManager *pluginManager() { return m_pluginManager; }
|
||||
Core::ActionManager *actionManager() const;
|
||||
Core::FileManager *fileManager() const;
|
||||
Core::UniqueIDManager *uniqueIDManager() const;
|
||||
Core::MessageManager *messageManager() const;
|
||||
ExtensionSystem::PluginManager *pluginManager() const;
|
||||
Core::EditorManager *editorManager() const;
|
||||
Core::ProgressManager *progressManager() const;
|
||||
Core::ScriptManager *scriptManager() const;
|
||||
@@ -195,8 +189,6 @@ private:
|
||||
|
||||
QMap<QWidget *, IContext *> m_contextWidgets;
|
||||
|
||||
ExtensionSystem::PluginManager *m_pluginManager;
|
||||
|
||||
BaseMode *m_outputMode;
|
||||
GeneralSettings *m_generalSettings;
|
||||
ShortcutSettings *m_shortcutSettings;
|
||||
|
||||
Reference in New Issue
Block a user