LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CategoryTreeModel< ElementType > Class Template Referencefinal

The CategoryTreeModel class. More...

#include <categorytreemodel.h>

Inherits QAbstractItemModel.

+ Collaboration diagram for CategoryTreeModel< ElementType >:

Public Member Functions

 CategoryTreeModel ()=delete
 
 CategoryTreeModel (const CategoryTreeModel &other)=delete
 
 CategoryTreeModel (const WorkspaceLibraryDb &library, const QStringList &localeOrder) noexcept
 
 ~CategoryTreeModel () noexcept
 
CategoryTreeItem< ElementType > * getItem (const QModelIndex &index) const
 
virtual int columnCount (const QModelIndex &parent=QModelIndex()) const
 
virtual int rowCount (const QModelIndex &parent=QModelIndex()) const
 
virtual QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const
 
virtual QModelIndex parent (const QModelIndex &index) const
 
virtual QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
 
virtual QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
 
CategoryTreeModeloperator= (const CategoryTreeModel &rhs)=delete
 

Private Attributes

QScopedPointer
< CategoryTreeItem
< ElementType > > 
mRootItem
 

Detailed Description

template<typename ElementType>
class librepcb::workspace::CategoryTreeModel< ElementType >

The CategoryTreeModel class.

Constructor & Destructor Documentation

CategoryTreeModel ( )
delete
CategoryTreeModel ( const CategoryTreeModel< ElementType > &  other)
delete
CategoryTreeModel ( const WorkspaceLibraryDb library,
const QStringList &  localeOrder 
)
explicitnoexcept
~CategoryTreeModel ( )
noexcept

Member Function Documentation

CategoryTreeItem< ElementType > * getItem ( const QModelIndex &  index) const

+ Here is the call graph for this function:

int columnCount ( const QModelIndex &  parent = QModelIndex()) const
virtual
int rowCount ( const QModelIndex &  parent = QModelIndex()) const
virtual

+ Here is the call graph for this function:

QModelIndex index ( int  row,
int  column,
const QModelIndex &  parent = QModelIndex() 
) const
virtual

+ Here is the call graph for this function:

QModelIndex parent ( const QModelIndex &  index) const
virtual

+ Here is the call graph for this function:

QVariant headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const
virtual
QVariant data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
virtual

+ Here is the call graph for this function:

CategoryTreeModel& operator= ( const CategoryTreeModel< ElementType > &  rhs)
delete

Member Data Documentation

QScopedPointer<CategoryTreeItem<ElementType> > mRootItem
private

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