LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PathModel Class Referencefinal

The PathModel class implements QAbstractTableModel for librepcb::Path. More...

#include <pathmodel.h>

Inherits QAbstractTableModel.

+ Collaboration diagram for PathModel:

Public Types

enum  Column
 

Public Member Functions

 PathModel ()=delete
 
 PathModel (const PathModel &other) noexcept
 
 PathModel (QObject *parent=nullptr) noexcept
 
 ~PathModel () noexcept
 
void setPath (const Path &path) noexcept
 
const PathgetPath () const noexcept
 
void addItem (const QVariant &editData) noexcept
 
void copyItem (const QVariant &editData) noexcept
 
void removeItem (const QVariant &editData) noexcept
 
void moveItemUp (const QVariant &editData) noexcept
 
void moveItemDown (const QVariant &editData) noexcept
 
int rowCount (const QModelIndex &parent=QModelIndex()) const override
 
int columnCount (const QModelIndex &parent=QModelIndex()) const override
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const override
 
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override
 
Qt::ItemFlags flags (const QModelIndex &index) const override
 
bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override
 
PathModeloperator= (const PathModel &rhs) noexcept
 

Private Attributes

Path mPath
 
Vertex mNewVertex
 

Detailed Description

The PathModel class implements QAbstractTableModel for librepcb::Path.

Member Enumeration Documentation

enum Column
Enumerator
COLUMN_X 
COLUMN_Y 
COLUMN_ANGLE 
COLUMN_ACTIONS 
_COLUMN_COUNT 

Constructor & Destructor Documentation

PathModel ( )
delete
PathModel ( const PathModel other)
noexcept
PathModel ( QObject *  parent = nullptr)
explicitnoexcept
~PathModel ( )
noexcept

Member Function Documentation

void setPath ( const Path path)
noexcept
const Path& getPath ( ) const
inlinenoexcept
void addItem ( const QVariant &  editData)
noexcept

+ Here is the caller graph for this function:

void copyItem ( const QVariant &  editData)
noexcept

+ Here is the caller graph for this function:

void removeItem ( const QVariant &  editData)
noexcept

+ Here is the caller graph for this function:

void moveItemUp ( const QVariant &  editData)
noexcept

+ Here is the caller graph for this function:

void moveItemDown ( const QVariant &  editData)
noexcept

+ Here is the caller graph for this function:

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

+ Here is the call graph for this function:

int columnCount ( const QModelIndex &  parent = QModelIndex()) const
override
QVariant data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
override

+ Here is the call graph for this function:

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

+ Here is the call graph for this function:

Qt::ItemFlags flags ( const QModelIndex &  index) const
override
bool setData ( const QModelIndex &  index,
const QVariant &  value,
int  role = Qt::EditRole 
)
override

+ Here is the call graph for this function:

PathModel& operator= ( const PathModel rhs)
noexcept

Member Data Documentation

Path mPath
private
Vertex mNewVertex
private

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