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()
|
void MainWindow::aboutPlugins()
|
||||||
{
|
{
|
||||||
PluginDialog dialog(ExtensionSystem::PluginManager::instance(), this);
|
PluginDialog dialog(this);
|
||||||
dialog.exec();
|
dialog.exec();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -132,8 +132,6 @@ private:
|
|||||||
QWidget *m_buttonsWidget;
|
QWidget *m_buttonsWidget;
|
||||||
QMap<int, QPushButton *> m_buttons;
|
QMap<int, QPushButton *> m_buttons;
|
||||||
QMap<QAction *, int> m_actions;
|
QMap<QAction *, int> m_actions;
|
||||||
|
|
||||||
static OutputPaneManager *m_instance;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace Internal
|
||||||
|
@@ -48,9 +48,9 @@
|
|||||||
|
|
||||||
using namespace Core::Internal;
|
using namespace Core::Internal;
|
||||||
|
|
||||||
PluginDialog::PluginDialog(ExtensionSystem::PluginManager *manager, QWidget *parent)
|
PluginDialog::PluginDialog(QWidget *parent)
|
||||||
: QDialog(parent),
|
: QDialog(parent),
|
||||||
m_view(new ExtensionSystem::PluginView(manager, this))
|
m_view(new ExtensionSystem::PluginView(ExtensionSystem::PluginManager::instance(), this))
|
||||||
{
|
{
|
||||||
QVBoxLayout *vl = new QVBoxLayout(this);
|
QVBoxLayout *vl = new QVBoxLayout(this);
|
||||||
vl->addWidget(m_view);
|
vl->addWidget(m_view);
|
||||||
|
@@ -41,7 +41,6 @@ class QPushButton;
|
|||||||
QT_END_NAMESPACE
|
QT_END_NAMESPACE
|
||||||
|
|
||||||
namespace ExtensionSystem {
|
namespace ExtensionSystem {
|
||||||
class PluginManager;
|
|
||||||
class PluginSpec;
|
class PluginSpec;
|
||||||
class PluginView;
|
class PluginView;
|
||||||
}
|
}
|
||||||
@@ -54,7 +53,7 @@ class PluginDialog : public QDialog
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
PluginDialog(ExtensionSystem::PluginManager *manager, QWidget *parent);
|
explicit PluginDialog(QWidget *parent);
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void updateButtons();
|
void updateButtons();
|
||||||
|
Reference in New Issue
Block a user