summaryrefslogtreecommitdiffstats
path: root/examples/graphs/3d/widgetgraphgallery/scattergraphwidget.cpp
blob: 6b087b663bc3fc7780e04d0657355ef24cb5bf84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright (C) 2024 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#include "scattergraphwidget.h"

ScatterGraphWidget::ScatterGraphWidget() = default;

ScatterGraphWidget::~ScatterGraphWidget() = default;

void ScatterGraphWidget::initialize()
{
    m_scatterGraph = new Q3DScatterWidgetItem();
    m_scatterGraph->setWidget(this);
}

Q3DScatterWidgetItem *ScatterGraphWidget::scatterGraph() const
{
    return m_scatterGraph;
}