Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
sf::ObjectPropertyModel Class Reference

List model for QObject properties. More...

#include <ObjectPropertyModel.h>

Inheritance diagram for sf::ObjectPropertyModel:
Collaboration diagram for sf::ObjectPropertyModel:

Signals

void changed (QObject *obj, int propertyIndex, bool dynamic)
 Signals a change of the object's property.
 
void addLineEditActions (QLineEdit *lineEdit, QObject *obj, int propertyIndex, bool dynamic) const
 

Public Member Functions

 ObjectPropertyModel (QObject *parent=nullptr)
 Constructor.
 
void setTarget (QObject *obj)
 ???
 
void setDelegates (QAbstractItemView *view)
 ???
 
void refresh ()
 Called to refresh the attached viewer.
 
QVariant headerData (int section, Qt::Orientation orientation, int role) const override
 Overridden from base class to provide column display names.
 
int rowCount (const QModelIndex &parent) const override
 Overridden from base class to provide the amount of rows.
 
QVariant data (const QModelIndex &index, int role) const override
 Overridden from base class to provide the data to present.
 
int columnCount (const QModelIndex &parent) const override
 Overridden from base class to provide the amount of columns.
 
Qt::ItemFlags flags (const QModelIndex &index) const override
 Overridden from base class to provide flags on an item by index.
 
bool setData (const QModelIndex &index, const QVariant &value, int role) override
 Overridden from base class to provide assignment of an item when edited.
 

Detailed Description

List model for QObject properties.

Constructor & Destructor Documentation

◆ ObjectPropertyModel()

sf::ObjectPropertyModel::ObjectPropertyModel ( QObject *  parent = nullptr)
explicit

Constructor.

Member Function Documentation

◆ addLineEditActions

void sf::ObjectPropertyModel::addLineEditActions ( QLineEdit *  lineEdit,
QObject *  obj,
int  propertyIndex,
bool  dynamic 
) const
signal
Parameters
lineEditLine edit created for this property.
objObject concerned.
propertyIndexIndex of the property
dynamicProperty is a dynamic one.

◆ changed

void sf::ObjectPropertyModel::changed ( QObject *  obj,
int  propertyIndex,
bool  dynamic 
)
signal

Signals a change of the object's property.

Parameters
objObject concerned.
propertyIndexIndex of the property
dynamicProperty is a dynamic one.

◆ columnCount()

int sf::ObjectPropertyModel::columnCount ( const QModelIndex &  parent) const
override

Overridden from base class to provide the amount of columns.

◆ data()

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

Overridden from base class to provide the data to present.

◆ flags()

Qt::ItemFlags sf::ObjectPropertyModel::flags ( const QModelIndex &  index) const
override

Overridden from base class to provide flags on an item by index.

◆ headerData()

QVariant sf::ObjectPropertyModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role 
) const
override

Overridden from base class to provide column display names.

◆ refresh()

void sf::ObjectPropertyModel::refresh ( )

Called to refresh the attached viewer.

◆ rowCount()

int sf::ObjectPropertyModel::rowCount ( const QModelIndex &  parent) const
override

Overridden from base class to provide the amount of rows.

◆ setData()

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

Overridden from base class to provide assignment of an item when edited.

◆ setDelegates()

void sf::ObjectPropertyModel::setDelegates ( QAbstractItemView *  view)

???

◆ setTarget()

void sf::ObjectPropertyModel::setTarget ( QObject *  obj)

???


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