diff options
author | Tobias Hunger <tobias.hunger@theqtcompany.com> | 2016-04-13 15:52:14 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@theqtcompany.com> | 2016-04-15 09:40:53 +0000 |
commit | 95ac4edfd4276c73f0304651fe032d511a5a7c16 (patch) | |
tree | c1ebcef6ecff1292f9fa670111c39043b0f67837 /src/plugins/projectexplorer/waitforstopdialog.cpp | |
parent | 79da8a45860940f98333517c60ac388cc0b1af3a (diff) |
Projectexplorer: Modernize codebase
Change-Id: I4793b58aa77bcd46af99f8b843c0f7439cdc9269
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
Reviewed-by: Vikas Pachdha <vikas.pachdha@theqtcompany.com>
Diffstat (limited to 'src/plugins/projectexplorer/waitforstopdialog.cpp')
-rw-r--r-- | src/plugins/projectexplorer/waitforstopdialog.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/projectexplorer/waitforstopdialog.cpp b/src/plugins/projectexplorer/waitforstopdialog.cpp index 1b9e4e71767..1bd57372b44 100644 --- a/src/plugins/projectexplorer/waitforstopdialog.cpp +++ b/src/plugins/projectexplorer/waitforstopdialog.cpp @@ -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()) { |