forked from qt-creator/qt-creator
Projectexplorer: Modernize codebase
Change-Id: I4793b58aa77bcd46af99f8b843c0f7439cdc9269 Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com> Reviewed-by: Vikas Pachdha <vikas.pachdha@theqtcompany.com>
This commit is contained in:
@@ -35,18 +35,18 @@
|
||||
using namespace ProjectExplorer;
|
||||
using namespace ProjectExplorer::Internal;
|
||||
|
||||
WaitForStopDialog::WaitForStopDialog(QList<ProjectExplorer::RunControl *> runControls)
|
||||
: m_runControls(runControls)
|
||||
WaitForStopDialog::WaitForStopDialog(QList<ProjectExplorer::RunControl *> runControls) :
|
||||
m_runControls(runControls)
|
||||
{
|
||||
setWindowTitle(tr("Waiting for Applications to Stop"));
|
||||
|
||||
QVBoxLayout *layout = new QVBoxLayout();
|
||||
auto layout = new QVBoxLayout();
|
||||
setLayout(layout);
|
||||
|
||||
m_progressLabel = new QLabel;
|
||||
layout->addWidget(m_progressLabel);
|
||||
|
||||
QPushButton *cancelButton = new QPushButton(tr("Cancel"));
|
||||
auto cancelButton = new QPushButton(tr("Cancel"));
|
||||
connect(cancelButton, &QPushButton::clicked,
|
||||
this, &QDialog::close);
|
||||
layout->addWidget(cancelButton);
|
||||
@@ -74,7 +74,7 @@ void WaitForStopDialog::updateProgressText()
|
||||
|
||||
void WaitForStopDialog::runControlFinished()
|
||||
{
|
||||
RunControl *rc = qobject_cast<RunControl *>(sender());
|
||||
auto rc = qobject_cast<RunControl *>(sender());
|
||||
m_runControls.removeOne(rc);
|
||||
|
||||
if (m_runControls.isEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user