diff options
author | hjk <qtc-committer@nokia.com> | 2009-01-26 14:30:04 +0100 |
---|---|---|
committer | hjk <qtc-committer@nokia.com> | 2009-01-26 14:30:04 +0100 |
commit | 1a621a9c9e7507679d0d980583f60615c23b3b11 (patch) | |
tree | 1d61319eab00b9f34237a7e145a7d9fc73301631 /src/plugins | |
parent | f9679651e1b8862db38f3a474e58e602faa8cd4f (diff) | |
download | qt-creator-1a621a9c9e7507679d0d980583f60615c23b3b11.tar.gz |
Fixes: coreplugin: remove a few more PluginManager* parameters
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/coreplugin/mainwindow.cpp | 2 | ||||
-rw-r--r-- | src/plugins/coreplugin/outputpane.h | 2 | ||||
-rw-r--r-- | src/plugins/coreplugin/plugindialog.cpp | 4 | ||||
-rw-r--r-- | src/plugins/coreplugin/plugindialog.h | 3 |
4 files changed, 4 insertions, 7 deletions
diff --git a/src/plugins/coreplugin/mainwindow.cpp b/src/plugins/coreplugin/mainwindow.cpp index fb5ac9c3ae..f5e131b98b 100644 --- a/src/plugins/coreplugin/mainwindow.cpp +++ b/src/plugins/coreplugin/mainwindow.cpp @@ -1114,7 +1114,7 @@ void MainWindow::destroyVersionDialog() void MainWindow::aboutPlugins() { - PluginDialog dialog(ExtensionSystem::PluginManager::instance(), this); + PluginDialog dialog(this); dialog.exec(); } diff --git a/src/plugins/coreplugin/outputpane.h b/src/plugins/coreplugin/outputpane.h index 3d105e377e..b947b12aef 100644 --- a/src/plugins/coreplugin/outputpane.h +++ b/src/plugins/coreplugin/outputpane.h @@ -132,8 +132,6 @@ private: QWidget *m_buttonsWidget; QMap<int, QPushButton *> m_buttons; QMap<QAction *, int> m_actions; - - static OutputPaneManager *m_instance; }; } // namespace Internal diff --git a/src/plugins/coreplugin/plugindialog.cpp b/src/plugins/coreplugin/plugindialog.cpp index 29ea470411..3bd7dc2a03 100644 --- a/src/plugins/coreplugin/plugindialog.cpp +++ b/src/plugins/coreplugin/plugindialog.cpp @@ -48,9 +48,9 @@ using namespace Core::Internal; -PluginDialog::PluginDialog(ExtensionSystem::PluginManager *manager, QWidget *parent) +PluginDialog::PluginDialog(QWidget *parent) : QDialog(parent), - m_view(new ExtensionSystem::PluginView(manager, this)) + m_view(new ExtensionSystem::PluginView(ExtensionSystem::PluginManager::instance(), this)) { QVBoxLayout *vl = new QVBoxLayout(this); vl->addWidget(m_view); diff --git a/src/plugins/coreplugin/plugindialog.h b/src/plugins/coreplugin/plugindialog.h index ace03bb3c1..808490d94c 100644 --- a/src/plugins/coreplugin/plugindialog.h +++ b/src/plugins/coreplugin/plugindialog.h @@ -41,7 +41,6 @@ class QPushButton; QT_END_NAMESPACE namespace ExtensionSystem { -class PluginManager; class PluginSpec; class PluginView; } @@ -54,7 +53,7 @@ class PluginDialog : public QDialog Q_OBJECT public: - PluginDialog(ExtensionSystem::PluginManager *manager, QWidget *parent); + explicit PluginDialog(QWidget *parent); private slots: void updateButtons(); |