LibrePCB Developers Documentation
Loading...
Searching...
No Matches
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() [1/2]

AngleDelegate ( QObject *  parent = nullptr)
explicitnoexcept

◆ AngleDelegate() [2/2]

AngleDelegate ( const AngleDelegate other)
delete

◆ ~AngleDelegate()

~AngleDelegate ( )
noexcept

Member Function Documentation

◆ displayText()

QString displayText ( const QVariant &  value,
const QLocale &  locale 
) const
override
+ Here is the call graph for this function:

◆ createEditor()

QWidget * createEditor ( QWidget *  parent,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
override
+ Here is the call graph for this function:

◆ setEditorData()

void setEditorData ( QWidget *  editor,
const QModelIndex &  index 
) const
override
+ Here is the call graph for this function:

◆ setModelData()

void setModelData ( QWidget *  editor,
QAbstractItemModel *  model,
const QModelIndex &  index 
) const
override
+ Here is the call graph for this function:

◆ updateEditorGeometry()

void updateEditorGeometry ( QWidget *  editor,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
override

◆ operator=()

AngleDelegate & operator= ( const AngleDelegate rhs)
delete

◆ editingFinished()

void editingFinished ( )
privatenoexcept
+ Here is the caller graph for this function:

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