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:
[legend]
Collaboration diagram for sf::ObjectPropertyModel:
[legend]

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.
Q_SIGNAL void changed (QObject *obj, int propertyIndex, bool dynamic)
 Signals a change of the object's property.
Q_SIGNAL void addLineEditActions (QLineEdit *line_edit, QObject *obj, int prop_idx, bool dynamic) const

Detailed Description

List model for QObject properties.

Constructor & Destructor Documentation

◆ ObjectPropertyModel()

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

Constructor.

Member Function Documentation

◆ addLineEditActions()

Q_SIGNAL void sf::ObjectPropertyModel::addLineEditActions ( QLineEdit * line_edit,
QObject * obj,
int prop_idx,
bool dynamic ) const
Parameters
line_editLine edit created for this property.
objObject concerned.
prop_idxIndex of the property
dynamicProperty is a dynamic one.

◆ changed()

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

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
nodiscardoverride

Overridden from base class to provide the amount of columns.

◆ data()

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

Overridden from base class to provide the data to present.

◆ flags()

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

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
nodiscardoverride

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
nodiscardoverride

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: