Fluid
Loading...
Searching...
No Matches
Signals | Public Member Functions | Properties | List of all members
YearModel Class Reference

#include <yearmodel.h>

Inheritance diagram for YearModel:
Inheritance graph
[legend]
Collaboration diagram for YearModel:
Collaboration graph
[legend]

Signals

void fromChanged ()
 
void toChanged ()
 
void countChanged ()
 

Public Member Functions

 YearModel (QObject *parent=nullptr)
 
QDate from () const
 
void setFrom (const QDate &date)
 
QDate to () const
 
void setTo (const QDate &date)
 
QHash< int, QByteArray > roleNames () const override
 
QVariant data (const QModelIndex &index, int role) const override
 
int rowCount (const QModelIndex &parent=QModelIndex()) const override
 
Q_INVOKABLE int get (int index) const
 
void reset ()
 

Properties

QDate from
 
QDate to
 
int count
 

Constructor & Destructor Documentation

◆ YearModel()

YearModel::YearModel ( QObject *  parent = nullptr)
explicit

Member Function Documentation

◆ countChanged

void YearModel::countChanged ( )
signal

◆ data()

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

◆ from()

QDate YearModel::from ( ) const

◆ fromChanged

void YearModel::fromChanged ( )
signal

◆ get()

int YearModel::get ( int  index) const

◆ reset()

void YearModel::reset ( )

◆ roleNames()

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

◆ rowCount()

int YearModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const
override

◆ setFrom()

void YearModel::setFrom ( const QDate &  date)

◆ setTo()

void YearModel::setTo ( const QDate &  date)

◆ to()

QDate YearModel::to ( ) const

◆ toChanged

void YearModel::toChanged ( )
signal

Property Documentation

◆ count

int YearModel::count
read

◆ from

QDate YearModel::from
readwrite

◆ to

QDate YearModel::to
readwrite

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