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:
Tobias Hunger
2016-04-13 15:52:14 +02:00
parent 79da8a4586
commit 95ac4edfd4
207 changed files with 1047 additions and 1292 deletions

View File

@@ -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()) {