Toolkit includes.  
 More...
#include <QmitkSimpleBarrierParametersDelegate.h>
 | 
|   | QmitkSimpleBarrierParametersDelegate (QObject *parent=nullptr) | 
|   | 
| void  | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) 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 | 
|   | 
Toolkit includes. 
An item delegate for rendering and editing the parameters relevant for a barrier constraint. The delegate assumes the following: 1) if the data is requested with the edit role, it gets a string list of all possible options. 2) if the data is requested with the display role it gets only a list of all currently selected options. If the data is transferred back to the model it contains all selected parameter names in a string list. 
Definition at line 29 of file QmitkSimpleBarrierParametersDelegate.h.
 
◆ QmitkSimpleBarrierParametersDelegate()
      
        
          | QmitkSimpleBarrierParametersDelegate::QmitkSimpleBarrierParametersDelegate  | 
          ( | 
          QObject *  | 
          parent = nullptr | ) | 
           | 
        
      
 
 
◆ createEditor()
  
  
      
        
          | QWidget* QmitkSimpleBarrierParametersDelegate::createEditor  | 
          ( | 
          QWidget *  | 
          parent,  | 
         
        
           | 
           | 
          const QStyleOptionViewItem &  | 
          option,  | 
         
        
           | 
           | 
          const QModelIndex &  | 
          index  | 
         
        
           | 
          ) | 
           |  const | 
         
       
   | 
  
override   | 
  
 
 
◆ paint()
  
  
      
        
          | void QmitkSimpleBarrierParametersDelegate::paint  | 
          ( | 
          QPainter *  | 
          painter,  | 
         
        
           | 
           | 
          const QStyleOptionViewItem &  | 
          option,  | 
         
        
           | 
           | 
          const QModelIndex &  | 
          index  | 
         
        
           | 
          ) | 
           |  const | 
         
       
   | 
  
override   | 
  
 
 
◆ setEditorData()
  
  
      
        
          | void QmitkSimpleBarrierParametersDelegate::setEditorData  | 
          ( | 
          QWidget *  | 
          editor,  | 
         
        
           | 
           | 
          const QModelIndex &  | 
          index  | 
         
        
           | 
          ) | 
           |  const | 
         
       
   | 
  
override   | 
  
 
 
◆ setModelData()
  
  
      
        
          | void QmitkSimpleBarrierParametersDelegate::setModelData  | 
          ( | 
          QWidget *  | 
          editor,  | 
         
        
           | 
           | 
          QAbstractItemModel *  | 
          model,  | 
         
        
           | 
           | 
          const QModelIndex &  | 
          index  | 
         
        
           | 
          ) | 
           |  const | 
         
       
   | 
  
override   | 
  
 
 
The documentation for this class was generated from the following file: