Add weather routes project progress
This commit is contained in:
34
WeatherRoutes/mvc/model/mapdatamodel.cpp
Normal file
34
WeatherRoutes/mvc/model/mapdatamodel.cpp
Normal 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
WeatherRoutes/mvc/model/mapdatamodel.h
Normal file
22
WeatherRoutes/mvc/model/mapdatamodel.h
Normal 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
|
||||
Reference in New Issue
Block a user