forked from qt-creator/qt-creator
Fixes: coreplugin: remove a few more PluginManager* parameters
This commit is contained in:
@@ -1114,7 +1114,7 @@ void MainWindow::destroyVersionDialog()
|
||||
|
||||
void MainWindow::aboutPlugins()
|
||||
{
|
||||
PluginDialog dialog(ExtensionSystem::PluginManager::instance(), this);
|
||||
PluginDialog dialog(this);
|
||||
dialog.exec();
|
||||
}
|
||||
|
||||
|
@@ -132,8 +132,6 @@ private:
|
||||
QWidget *m_buttonsWidget;
|
||||
QMap<int, QPushButton *> m_buttons;
|
||||
QMap<QAction *, int> m_actions;
|
||||
|
||||
static OutputPaneManager *m_instance;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
|
@@ -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);
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user