ViewSolutions
Loading...
Searching...
No Matches
ViewSolutions::ListViewModel Class Reference

#include <listviewmodel.h>

Public Member Functions

 ListViewModel (QObject *ptr=nullptr)
 
 ~ListViewModel ()
 
int rowCount (const QModelIndex &parent=QModelIndex()) const
 
QVariant data (const QModelIndex &index, int role) const
 
QHash< int, QByteArray > roleNames () const
 
void setExternalSource (const QList< QObject * > *newData)
 
void setSource (const QList< QObject * > &newData)
 
void addSource (QObject *data)
 
void clear (bool fast=false)
 
bool external () const
 

Detailed Description

Definition at line 19 of file listviewmodel.h.

Inheritance diagram for ViewSolutions::ListViewModel:
Inheritance graph
Collaboration diagram for ViewSolutions::ListViewModel:
Collaboration graph

Constructor & Destructor Documentation

◆ ListViewModel()

ViewSolutions::ListViewModel::ListViewModel ( QObject *  ptr = nullptr)

Definition at line 11 of file listviewmodel.cpp.

◆ ~ListViewModel()

ViewSolutions::ListViewModel::~ListViewModel ( )

Definition at line 16 of file listviewmodel.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ addSource()

void ViewSolutions::ListViewModel::addSource ( QObject *  data)

Definition at line 76 of file listviewmodel.cpp.

Here is the call graph for this function:

◆ clear()

void ViewSolutions::ListViewModel::clear ( bool  fast = false)

Definition at line 86 of file listviewmodel.cpp.

Here is the caller graph for this function:

◆ data()

QVariant ViewSolutions::ListViewModel::data ( const QModelIndex &  index,
int  role 
) const

Definition at line 27 of file listviewmodel.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ external()

bool ViewSolutions::ListViewModel::external ( ) const

Definition at line 98 of file listviewmodel.cpp.

Here is the caller graph for this function:

◆ roleNames()

QHash< int, QByteArray > ViewSolutions::ListViewModel::roleNames ( ) const

Definition at line 39 of file listviewmodel.cpp.

◆ rowCount()

int ViewSolutions::ListViewModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const

Definition at line 20 of file listviewmodel.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setExternalSource()

void ViewSolutions::ListViewModel::setExternalSource ( const QList< QObject * > *  newData)

Definition at line 46 of file listviewmodel.cpp.

Here is the call graph for this function:

◆ setSource()

void ViewSolutions::ListViewModel::setSource ( const QList< QObject * > &  newData)

Definition at line 59 of file listviewmodel.cpp.

Here is the call graph for this function:

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