feat: basic geometry spreadsheet model

This commit is contained in:
parker
2025-08-05 22:10:10 +01:00
parent ef372a9630
commit 2c139a5f6a
4 changed files with 56 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
#pragma once
#include <QAbstractListModel>
class GeometrySpreadsheetModel : public QAbstractListModel
{
Q_OBJECT
public:
GeometrySpreadsheetModel(const QStringList &strings, QObject *parent = nullptr)
: QAbstractListModel(parent), stringList(strings) {}
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
QVariant data(const QModelIndex &index, int role) const override;
QVariant headerData(int section, Qt::Orientation orientation,
int role = Qt::DisplayRole) const override;
private:
QStringList stringList;
};