aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/scxmleditor/common/statisticsdialog.cpp
blob: 4b30d74fbec0edeab1f89a53a4ec0572974c31fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0

#include "scxmldocument.h"
#include "statisticsdialog.h"

using namespace ScxmlEditor::Common;

StatisticsDialog::StatisticsDialog(QWidget *parent)
    : QDialog(parent)
{
    m_ui.setupUi(this);
    setWindowTitle(tr("Document Statistics"));
    connect(m_ui.m_okButton, &QPushButton::clicked, this, &StatisticsDialog::accept);
}

void StatisticsDialog::setDocument(ScxmlEditor::PluginInterface::ScxmlDocument *doc)
{
    m_ui.m_statistics->setDocument(doc);
}