Creating Radar Product Model

This commit is contained in:
Dan Paulat 2022-09-14 23:17:31 -05:00
parent 8a450a76bb
commit 8abee4cda1
3 changed files with 64 additions and 0 deletions

View file

@ -0,0 +1,30 @@
#include <scwx/qt/model/radar_product_model.hpp>
#include <scwx/util/logger.hpp>
namespace scwx
{
namespace qt
{
namespace model
{
static const std::string logPrefix_ = "scwx::qt::model::radar_product_model";
static const auto logger_ = scwx::util::Logger::Create(logPrefix_);
class RadarProductModelImpl
{
public:
explicit RadarProductModelImpl() {}
~RadarProductModelImpl() {}
};
RadarProductModel::RadarProductModel(QObject* parent) :
QAbstractTableModel(parent), p(std::make_unique<RadarProductModelImpl>())
{
}
RadarProductModel::~RadarProductModel() = default;
} // namespace model
} // namespace qt
} // namespace scwx

View file

@ -0,0 +1,28 @@
#pragma once
#include <memory>
#include <QAbstractTableModel>
namespace scwx
{
namespace qt
{
namespace model
{
class RadarProductModelImpl;
class RadarProductModel : QAbstractTableModel
{
public:
explicit RadarProductModel(QObject* parent = nullptr);
~RadarProductModel();
private:
std::unique_ptr<RadarProductModelImpl> p;
};
} // namespace model
} // namespace qt
} // namespace scwx