An item delegate for rendering and editing label color in a QmitkMultiLabelTreeView.  
 More...
#include <QmitkLabelColorItemDelegate.h>
 | 
|   | QmitkLabelColorItemDelegate (QObject *parent=nullptr) | 
|   | 
| bool  | editorEvent (QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index) override | 
|   | 
| void  | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override | 
|   | 
An item delegate for rendering and editing label color in a QmitkMultiLabelTreeView. 
Definition at line 24 of file QmitkLabelColorItemDelegate.h.
 
◆ QmitkLabelColorItemDelegate()
  
  
      
        
          | QmitkLabelColorItemDelegate::QmitkLabelColorItemDelegate  | 
          ( | 
          QObject *  | 
          parent = nullptr | ) | 
           | 
         
       
   | 
  
explicit   | 
  
 
Creates a new PropertyDelegate. 
 
 
◆ editorEvent()
  
  
      
        
          | bool QmitkLabelColorItemDelegate::editorEvent  | 
          ( | 
          QEvent *  | 
          event,  | 
         
        
           | 
           | 
          QAbstractItemModel *  | 
          model,  | 
         
        
           | 
           | 
          const QStyleOptionViewItem &  | 
          option,  | 
         
        
           | 
           | 
          const QModelIndex &  | 
          index  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
override   | 
  
 
 
◆ paint()
  
  
      
        
          | void QmitkLabelColorItemDelegate::paint  | 
          ( | 
          QPainter *  | 
          painter,  | 
         
        
           | 
           | 
          const QStyleOptionViewItem &  | 
          option,  | 
         
        
           | 
           | 
          const QModelIndex &  | 
          index  | 
         
        
           | 
          ) | 
           |  const | 
         
       
   | 
  
override   | 
  
 
 
The documentation for this class was generated from the following file: