forked from qt-creator/qt-creator
Remove unused QObject parent arguments on options pages
In the new plugin setup scheme they are data members of the plugin pimpl and never use the parent. Change-Id: I28fe150393e8159064dcfbd113ce0320af50fd58 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -252,8 +252,7 @@ QString CppFileSettings::licenseTemplate()
|
||||
|
||||
// ------------------ CppFileSettingsWidget
|
||||
|
||||
CppFileSettingsWidget::CppFileSettingsWidget(QWidget *parent) :
|
||||
QWidget(parent),
|
||||
CppFileSettingsWidget::CppFileSettingsWidget() :
|
||||
m_ui(new Internal::Ui::CppFileSettingsPage)
|
||||
{
|
||||
m_ui->setupUi(this);
|
||||
@@ -351,9 +350,7 @@ void CppFileSettingsWidget::slotEdit()
|
||||
}
|
||||
|
||||
// --------------- CppFileSettingsPage
|
||||
CppFileSettingsPage::CppFileSettingsPage(QSharedPointer<CppFileSettings> &settings,
|
||||
QObject *parent) :
|
||||
Core::IOptionsPage(parent),
|
||||
CppFileSettingsPage::CppFileSettingsPage(QSharedPointer<CppFileSettings> &settings) :
|
||||
m_settings(settings)
|
||||
{
|
||||
setId(Constants::CPP_FILE_SETTINGS_ID);
|
||||
@@ -363,7 +360,6 @@ CppFileSettingsPage::CppFileSettingsPage(QSharedPointer<CppFileSettings> &settin
|
||||
|
||||
QWidget *CppFileSettingsPage::widget()
|
||||
{
|
||||
|
||||
if (!m_widget) {
|
||||
m_widget = new CppFileSettingsWidget;
|
||||
m_widget->setSettings(*m_settings);
|
||||
|
||||
Reference in New Issue
Block a user