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

Subclass of QStyledItemDelegate to display/edit librepcb::Angle values. More...

#include <angledelegate.h>

Inherits QStyledItemDelegate.

+ Collaboration diagram for AngleDelegate:

Public Member Functions

 AngleDelegate (QObject *parent=nullptr) noexcept
 
 AngleDelegate (const AngleDelegate &other)=delete
 
 ~AngleDelegate () noexcept
 
QString displayText (const QVariant &value, const QLocale &locale) const override
 
QWidget * createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 
void setEditorData (QWidget *editor, const QModelIndex &index) const override
 
void setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override
 
void updateEditorGeometry (QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 
AngleDelegateoperator= (const AngleDelegate &rhs)=delete
 

Private Member Functions

void editingFinished () noexcept
 

Detailed Description

Subclass of QStyledItemDelegate to display/edit librepcb::Angle values.

Constructor & Destructor Documentation

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

Member Function Documentation

QString displayText ( const QVariant &  value,
const QLocale &  locale 
) const
override

+ Here is the call graph for this function:

QWidget * createEditor ( QWidget *  parent,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
override

+ Here is the call graph for this function:

void setEditorData ( QWidget *  editor,
const QModelIndex &  index 
) const
override

+ Here is the call graph for this function:

void setModelData ( QWidget *  editor,
QAbstractItemModel *  model,
const QModelIndex &  index 
) const
override

+ Here is the call graph for this function:

void updateEditorGeometry ( QWidget *  editor,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
override
AngleDelegate& operator= ( const AngleDelegate rhs)
delete
void editingFinished ( )
privatenoexcept

+ Here is the caller graph for this function:


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