DISPLACE  1.0
A spatial model of fisheries to help sustainable fishing and maritime spatial planning
PaletteModel Class Reference
Inheritance diagram for PaletteModel:

Public Member Functions

 PaletteModel (Palette *palette, QObject *parent=0)
 
void reread (Palette *palette)
 
QModelIndex index (int row, int column, const QModelIndex &parent) const
 
QModelIndex parent (const QModelIndex &child) const
 
int rowCount (const QModelIndex &parent) const
 
int columnCount (const QModelIndex &parent) const
 
QVariant data (const QModelIndex &index, int role) const
 
bool setData (const QModelIndex &index, const QVariant &value, int role)
 
bool insertRow (int row, const QModelIndex &parent)
 
bool removeRow (int row, const QModelIndex &parent)
 
Qt::ItemFlags flags (const QModelIndex &index) const
 
void update (Palette *palette)
 
void refresh ()
 

Constructor & Destructor Documentation

◆ PaletteModel()

PaletteModel::PaletteModel ( Palette palette,
QObject *  parent = 0 
)
inlineexplicit

Member Function Documentation

◆ columnCount()

int PaletteModel::columnCount ( const QModelIndex &  parent) const
inline

◆ data()

QVariant PaletteModel::data ( const QModelIndex &  index,
int  role 
) const
inline

◆ flags()

Qt::ItemFlags PaletteModel::flags ( const QModelIndex &  index) const
inline

◆ index()

QModelIndex PaletteModel::index ( int  row,
int  column,
const QModelIndex &  parent 
) const
inline

◆ insertRow()

bool PaletteModel::insertRow ( int  row,
const QModelIndex &  parent 
)
inline

◆ parent()

QModelIndex PaletteModel::parent ( const QModelIndex &  child) const
inline

◆ refresh()

void PaletteModel::refresh ( )
inline

◆ removeRow()

bool PaletteModel::removeRow ( int  row,
const QModelIndex &  parent 
)
inline

◆ reread()

void PaletteModel::reread ( Palette palette)
inline

◆ rowCount()

int PaletteModel::rowCount ( const QModelIndex &  parent) const
inline

◆ setData()

bool PaletteModel::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role 
)
inline

◆ update()

void PaletteModel::update ( Palette palette)
inline

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