summaryrefslogtreecommitdiffstats
path: root/examples/serialbus/can/canbusdeviceinfodialog.cpp
blob: ad02892a7d7f82924bb599c74a8d1d962ff5ce1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (C) 2021 Andre Hartmann <aha_1980@gmx.de>
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

#include "canbusdeviceinfodialog.h"
#include "ui_canbusdeviceinfodialog.h"

#include <QCanBusDeviceInfo>

CanBusDeviceInfoDialog::CanBusDeviceInfoDialog(const QCanBusDeviceInfo &info, QWidget *parent) :
    QDialog(parent),
    m_ui(new Ui::CanBusDeviceInfoDialog)
{
    m_ui->setupUi(this);
    m_ui->deviceInfoBox->setDeviceInfo(info);

    connect(m_ui->okButton, &QPushButton::pressed, this, &QDialog::close);
}

CanBusDeviceInfoDialog::~CanBusDeviceInfoDialog()
{
    delete m_ui;
}