aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/buildprogress.cpp
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@theqtcompany.com>2016-04-13 15:52:14 +0200
committerTobias Hunger <tobias.hunger@theqtcompany.com>2016-04-15 09:40:53 +0000
commit95ac4edfd4276c73f0304651fe032d511a5a7c16 (patch)
treec1ebcef6ecff1292f9fa670111c39043b0f67837 /src/plugins/projectexplorer/buildprogress.cpp
parent79da8a45860940f98333517c60ac388cc0b1af3a (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/buildprogress.cpp')
-rw-r--r--src/plugins/projectexplorer/buildprogress.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/plugins/projectexplorer/buildprogress.cpp b/src/plugins/projectexplorer/buildprogress.cpp
index 24d191cd1e..f42790b7ff 100644
--- a/src/plugins/projectexplorer/buildprogress.cpp
+++ b/src/plugins/projectexplorer/buildprogress.cpp
@@ -27,27 +27,27 @@
#include "projectexplorerconstants.h"
#include <coreplugin/coreicons.h>
+
#include <utils/stylehelper.h>
-#include <QVBoxLayout>
-#include <QHBoxLayout>
-#include <QLabel>
#include <QFont>
+#include <QLabel>
+#include <QHBoxLayout>
#include <QPixmap>
-#include <QDebug>
+#include <QVBoxLayout>
using namespace ProjectExplorer;
using namespace ProjectExplorer::Internal;
-BuildProgress::BuildProgress(TaskWindow *taskWindow, Qt::Orientation orientation)
- : m_contentWidget(new QWidget),
- m_errorIcon(new QLabel),
- m_warningIcon(new QLabel),
- m_errorLabel(new QLabel),
- m_warningLabel(new QLabel),
- m_taskWindow(taskWindow)
+BuildProgress::BuildProgress(TaskWindow *taskWindow, Qt::Orientation orientation) :
+ m_contentWidget(new QWidget),
+ m_errorIcon(new QLabel),
+ m_warningIcon(new QLabel),
+ m_errorLabel(new QLabel),
+ m_warningLabel(new QLabel),
+ m_taskWindow(taskWindow)
{
- QHBoxLayout *contentLayout = new QHBoxLayout;
+ auto contentLayout = new QHBoxLayout;
contentLayout->setContentsMargins(0, 0, 0, 0);
contentLayout->setSpacing(0);
setLayout(contentLayout);
@@ -60,12 +60,12 @@ BuildProgress::BuildProgress(TaskWindow *taskWindow, Qt::Orientation orientation
layout->setContentsMargins(8, 2, 0, 2);
layout->setSpacing(2);
m_contentWidget->setLayout(layout);
- QHBoxLayout *errorLayout = new QHBoxLayout;
+ auto errorLayout = new QHBoxLayout;
errorLayout->setSpacing(2);
layout->addLayout(errorLayout);
errorLayout->addWidget(m_errorIcon);
errorLayout->addWidget(m_errorLabel);
- QHBoxLayout *warningLayout = new QHBoxLayout;
+ auto warningLayout = new QHBoxLayout;
warningLayout->setSpacing(2);
layout->addLayout(warningLayout);
warningLayout->addWidget(m_warningIcon);