forked from qt-creator/qt-creator
CMake: Convert BuildSettingsWidget to Qt5 style connects
Change-Id: I8471196f08f99084dcd3b8173f4528ed6d3e305f Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
@@ -52,8 +52,7 @@ CMakeBuildSettingsWidget::CMakeBuildSettingsWidget(CMakeBuildConfiguration *bc)
|
|||||||
setLayout(fl);
|
setLayout(fl);
|
||||||
|
|
||||||
QPushButton *runCmakeButton = new QPushButton(tr("Run CMake..."));
|
QPushButton *runCmakeButton = new QPushButton(tr("Run CMake..."));
|
||||||
connect(runCmakeButton, SIGNAL(clicked()),
|
connect(runCmakeButton, &QAbstractButton::clicked, this, &CMakeBuildSettingsWidget::runCMake);
|
||||||
this, SLOT(runCMake()));
|
|
||||||
fl->addRow(tr("Reconfigure project:"), runCmakeButton);
|
fl->addRow(tr("Reconfigure project:"), runCmakeButton);
|
||||||
|
|
||||||
m_pathLineEdit = new QLineEdit(this);
|
m_pathLineEdit = new QLineEdit(this);
|
||||||
@@ -64,7 +63,8 @@ CMakeBuildSettingsWidget::CMakeBuildSettingsWidget(CMakeBuildConfiguration *bc)
|
|||||||
|
|
||||||
m_changeButton = new QPushButton(this);
|
m_changeButton = new QPushButton(this);
|
||||||
m_changeButton->setText(tr("&Change"));
|
m_changeButton->setText(tr("&Change"));
|
||||||
connect(m_changeButton, SIGNAL(clicked()), this, SLOT(openChangeBuildDirectoryDialog()));
|
connect(m_changeButton, &QAbstractButton::clicked, this,
|
||||||
|
&CMakeBuildSettingsWidget::openChangeBuildDirectoryDialog);
|
||||||
hbox->addWidget(m_changeButton);
|
hbox->addWidget(m_changeButton);
|
||||||
|
|
||||||
fl->addRow(tr("Build directory:"), hbox);
|
fl->addRow(tr("Build directory:"), hbox);
|
||||||
|
|||||||
Reference in New Issue
Block a user