Code_TYMPAN  4.4.0
Industrial site acoustic simulation
Public Member Functions | Protected Slots | List of all members
PaletteColorDelegate Class Reference

(Qt) Delegate for displaying and editing colors More...

#include <TYPaletteWidget.h>

Inheritance diagram for PaletteColorDelegate:
Inheritance graph
[legend]
Collaboration diagram for PaletteColorDelegate:
Collaboration graph
[legend]

Public Member Functions

 PaletteColorDelegate (QObject *parent=NULL)
 
QWidget * createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
 
void setEditorData (QWidget *editor, const QModelIndex &index) const
 
void setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
 

Protected Slots

void validateColor ()
 

Detailed Description

(Qt) Delegate for displaying and editing colors

Definition at line 188 of file TYPaletteWidget.h.

Constructor & Destructor Documentation

◆ PaletteColorDelegate()

PaletteColorDelegate::PaletteColorDelegate ( QObject *  parent = NULL)
inline

Definition at line 193 of file TYPaletteWidget.h.

Member Function Documentation

◆ createEditor()

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

Definition at line 494 of file TYPaletteWidget.cpp.

◆ setEditorData()

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

Definition at line 500 of file TYPaletteWidget.cpp.

Here is the call graph for this function:

◆ setModelData()

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

Definition at line 536 of file TYPaletteWidget.cpp.

◆ validateColor

void PaletteColorDelegate::validateColor ( )
protectedslot

Definition at line 520 of file TYPaletteWidget.cpp.

Here is the caller graph for this function:

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