DISPLACE  1.0
A spatial model of fisheries to help sustainable fishing and maritime spatial planning
MapShapefileListAdapter Class Reference

#include <mapshapefilelistadapter.h>

Inheritance diagram for MapShapefileListAdapter:

Public Member Functions

 MapShapefileListAdapter (qmapcontrol::QMapControl *control)
 
void clearPaths ()
 
void addPath (const QString &path)
 
void refresh ()
 
int rowCount (const QModelIndex &parent) const override
 
QVariant data (const QModelIndex &index, int role) const override
 
Qt::ItemFlags flags (const QModelIndex &index) const override
 
bool setData (const QModelIndex &index, const QVariant &value, int role) override
 

Constructor & Destructor Documentation

◆ MapShapefileListAdapter()

MapShapefileListAdapter::MapShapefileListAdapter ( qmapcontrol::QMapControl *  control)
explicit

Member Function Documentation

◆ addPath()

void MapShapefileListAdapter::addPath ( const QString &  path)

◆ clearPaths()

void MapShapefileListAdapter::clearPaths ( )

◆ data()

QVariant MapShapefileListAdapter::data ( const QModelIndex &  index,
int  role 
) const
override

◆ flags()

Qt::ItemFlags MapShapefileListAdapter::flags ( const QModelIndex &  index) const
override

◆ refresh()

void MapShapefileListAdapter::refresh ( )

@TODO Optimize this. We can cache paths that aren't changed.

◆ rowCount()

int MapShapefileListAdapter::rowCount ( const QModelIndex &  parent) const
override

◆ setData()

bool MapShapefileListAdapter::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role 
)
override

The documentation for this class was generated from the following files: