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:
hjk
2019-03-21 08:09:35 +01:00
parent be7c215dd7
commit e9d8ff21b0
60 changed files with 94 additions and 132 deletions

View File

@@ -35,8 +35,7 @@
namespace Ios {
namespace Internal {
IosSettingsPage::IosSettingsPage(QObject *parent)
: Core::IOptionsPage(parent)
IosSettingsPage::IosSettingsPage()
{
setId(Constants::IOS_SETTINGS_ID);
setDisplayName(tr("iOS"));

View File

@@ -39,7 +39,7 @@ class IosSettingsPage : public Core::IOptionsPage
Q_OBJECT
public:
explicit IosSettingsPage(QObject *parent = nullptr);
IosSettingsPage();
QWidget *widget() override;
void apply() override;

View File

@@ -62,9 +62,8 @@ static void onSimOperation(const SimulatorInfo &simInfo, SimulatorOperationDialo
dlg->addMessage(simInfo, response, contextStr);
}
IosSettingsWidget::IosSettingsWidget(QWidget *parent)
: QWidget(parent),
m_ui(new Ui::IosSettingsWidget),
IosSettingsWidget::IosSettingsWidget()
: m_ui(new Ui::IosSettingsWidget),
m_simControl(new SimulatorControl(this))
{
m_ui->setupUi(this);

View File

@@ -33,15 +33,13 @@ namespace Ios {
namespace Internal {
namespace Ui { class IosSettingsWidget; }
class SimulatorInfoModel;
using SimulatorInfoList = QList<SimulatorInfo>;
class IosSettingsWidget : public QWidget
{
Q_OBJECT
public:
IosSettingsWidget(QWidget *parent = nullptr);
IosSettingsWidget();
~IosSettingsWidget() override;
void saveSettings();