FlightGear next
QmlStringListModel Class Reference

#include <QmlStringListModel.hxx>

Inherits QAbstractListModel.

Signals

void valuesChanged ()
 

Public Member Functions

 QmlStringListModel (QObject *parent=nullptr)
 
 ~QmlStringListModel () override
 
void setValues (QStringList v)
 
QStringList values () const
 
int rowCount (const QModelIndex &parent) const override
 
QHash< int, QByteArray > roleNames () const override
 
QVariant data (const QModelIndex &m, int role) const override
 

Properties

QStringList values
 

Detailed Description

Definition at line 12 of file QmlStringListModel.hxx.

Constructor & Destructor Documentation

◆ QmlStringListModel()

QmlStringListModel::QmlStringListModel ( QObject * parent = nullptr)

Definition at line 6 of file QmlStringListModel.cxx.

◆ ~QmlStringListModel()

QmlStringListModel::~QmlStringListModel ( )
overridedefault

Member Function Documentation

◆ data()

QVariant QmlStringListModel::data ( const QModelIndex & m,
int role ) const
override

Definition at line 36 of file QmlStringListModel.cxx.

◆ roleNames()

QHash< int, QByteArray > QmlStringListModel::roleNames ( ) const
override

Definition at line 30 of file QmlStringListModel.cxx.

◆ rowCount()

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

Definition at line 24 of file QmlStringListModel.cxx.

◆ setValues()

void QmlStringListModel::setValues ( QStringList v)

Definition at line 12 of file QmlStringListModel.cxx.

◆ values()

QStringList QmlStringListModel::values ( ) const

Definition at line 19 of file QmlStringListModel.cxx.

◆ valuesChanged

void QmlStringListModel::valuesChanged ( )
signal

Property Documentation

◆ values

QStringList QmlStringListModel::values
readwrite

Definition at line 16 of file QmlStringListModel.hxx.


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