Add weather routes project progress

This commit is contained in:
2025-04-07 19:40:38 +02:00
parent 8941d84bc8
commit fa5f6b2588
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()
// {
// }

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