LibrePCB Developers Documentation
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, CategoryTreeFilter::Flags filter) 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() [1/3]

CategoryTreeModel ( )
delete

◆ CategoryTreeModel() [2/3]

CategoryTreeModel ( const CategoryTreeModel< ElementType > &  other)
delete

◆ CategoryTreeModel() [3/3]

CategoryTreeModel ( const WorkspaceLibraryDb library,
const QStringList &  localeOrder,
CategoryTreeFilter::Flags  filter 
)
explicitnoexcept

◆ ~CategoryTreeModel()

~CategoryTreeModel ( )
noexcept

Member Function Documentation

◆ getItem()

CategoryTreeItem< ElementType > * getItem ( const QModelIndex &  index) const
+ Here is the call graph for this function:

◆ columnCount()

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

◆ rowCount()

int rowCount ( const QModelIndex &  parent = QModelIndex()) const
virtual
+ Here is the call graph for this function:

◆ index()

QModelIndex index ( int  row,
int  column,
const QModelIndex &  parent = QModelIndex() 
) const
virtual
+ Here is the call graph for this function:

◆ parent()

QModelIndex parent ( const QModelIndex &  index) const
virtual
+ Here is the call graph for this function:

◆ headerData()

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

◆ data()

QVariant data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
virtual
+ Here is the call graph for this function:

◆ operator=()

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

Member Data Documentation

◆ mRootItem

QScopedPointer<CategoryTreeItem<ElementType> > mRootItem
private

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