summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorhjk <qtc-committer@nokia.com>2009-01-26 14:30:04 +0100
committerhjk <qtc-committer@nokia.com>2009-01-26 14:30:04 +0100
commit1a621a9c9e7507679d0d980583f60615c23b3b11 (patch)
tree1d61319eab00b9f34237a7e145a7d9fc73301631 /src/plugins
parentf9679651e1b8862db38f3a474e58e602faa8cd4f (diff)
downloadqt-creator-1a621a9c9e7507679d0d980583f60615c23b3b11.tar.gz
Fixes: coreplugin: remove a few more PluginManager* parameters
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/coreplugin/mainwindow.cpp2
-rw-r--r--src/plugins/coreplugin/outputpane.h2
-rw-r--r--src/plugins/coreplugin/plugindialog.cpp4
-rw-r--r--src/plugins/coreplugin/plugindialog.h3
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();