initial commit to split repos

This commit is contained in:
2025-05-28 15:54:31 +02:00
parent 1582368303
commit bdcdf65432
52 changed files with 2027 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
// #include "mapdatamodel.h"
// MapDataModel::MapDataModel(QObject *parent) {}
// int MapDataModel::rowCount(const QModelIndex &parent) const
// {
// return mDatas.size();
// }
// int MapDataModel::columnCount(const QModelIndex &parent) const
// {
// }
// QVariant MapDataModel::data(const QModelIndex &index, int role) const
// {
// if (!index.isValid())
// return QVariant();
// if ( role == Qt::DisplayRole)
// {
// if ( index.column() == 0)
// return mDatas[index.row()].waypoints();
// if ( index.column() == 1)
// return mDatas[index.row()].longitude();
// if ( index.column() == 2)
// return mDatas[index.row()].altitude();
// }
// return QVariant();
// }
// void MapDataModel::populate()
// {
// }

22
mvc/model/mapdatamodel.h Normal file
View File

@@ -0,0 +1,22 @@
// #ifndef MAPDATAMODEL_H
// #define MAPDATAMODEL_H
// #include <QAbstractItemModel >
// #include <QObject>
// #include "../data/mapdata.h"
// class MapDataModel : public QAbstractItemModel
// {
// Q_OBJECT
// public:
// MapDataModel(QObject * parent = 0);
// int rowCount(const QModelIndex& parent = QModelIndex()) const;
// int columnCount(const QModelIndex& parent = QModelIndex()) const;
// QVariant data(const QModelIndex &index, int role) const;
// void populate();
// private:
// QList<MapData> mDatas;
// };
// #endif // MAPDATAMODEL_H