QmlProfiler: Add default argument for parent widgets on event views

Change-Id: Id67e87920a09ff2f5f5bbf73327f2cac6b299973
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2016-05-31 17:31:45 +02:00
parent 3174c36ab1
commit d527cc8d5a
5 changed files with 8 additions and 8 deletions

View File

@@ -35,7 +35,7 @@
namespace QmlProfiler {
namespace Internal {
FlameGraphView::FlameGraphView(QWidget *parent, QmlProfilerModelManager *manager) :
FlameGraphView::FlameGraphView(QmlProfilerModelManager *manager, QWidget *parent) :
QmlProfilerEventsView(parent), m_content(new QQuickWidget(this)),
m_model(new FlameGraphModel(manager, this))
{

View File

@@ -38,7 +38,7 @@ class FlameGraphView : public QmlProfilerEventsView
{
Q_OBJECT
public:
FlameGraphView(QWidget *parent, QmlProfilerModelManager *manager);
FlameGraphView(QmlProfilerModelManager *manager, QWidget *parent = nullptr);
public slots:
void selectByTypeId(int typeIndex) override;

View File

@@ -173,8 +173,8 @@ static void getSourceLocation(QStandardItem *infoItem,
receiver(fileName, line, column);
}
QmlProfilerStatisticsView::QmlProfilerStatisticsView(QWidget *parent,
QmlProfilerModelManager *profilerModelManager)
QmlProfilerStatisticsView::QmlProfilerStatisticsView(QmlProfilerModelManager *profilerModelManager,
QWidget *parent)
: QmlProfilerEventsView(parent), d(new QmlProfilerStatisticsViewPrivate(this))
{
setObjectName(QLatin1String("QmlProfilerStatisticsView"));

View File

@@ -75,8 +75,8 @@ class QmlProfilerStatisticsView : public QmlProfilerEventsView
{
Q_OBJECT
public:
explicit QmlProfilerStatisticsView(QWidget *parent,
QmlProfilerModelManager *profilerModelManager);
explicit QmlProfilerStatisticsView(QmlProfilerModelManager *profilerModelManager,
QWidget *parent = nullptr);
~QmlProfilerStatisticsView();
void clear() override;

View File

@@ -94,8 +94,8 @@ void QmlProfilerViewManager::createViews()
perspective->addOperation({Constants::QmlProfilerTimelineDockId, d->traceView, {},
Perspective::SplitVertical});
d->eventsViews << new QmlProfilerStatisticsView(0, d->profilerModelManager);
d->eventsViews << new FlameGraphView(0, d->profilerModelManager);
d->eventsViews << new QmlProfilerStatisticsView(d->profilerModelManager);
d->eventsViews << new FlameGraphView(d->profilerModelManager);
foreach (QmlProfilerEventsView *view, d->eventsViews) {
connect(view, &QmlProfilerEventsView::typeSelected,