Manages a button.  
 More...
#include <ArmarXGui/gui-plugins/ScenarioManager/gui/buttondelegate.h>
|  | 
| bool | editorEvent (QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index) override | 
|  | 
Manages a button. 
Definition at line 41 of file buttondelegate.h.
◆ ButtonDelegate()
◆ buttonClicked
  
  | 
        
          | void buttonClicked | ( | int | row, |  
          |  |  | int | column, |  
          |  |  | QModelIndex | parent |  
          |  | ) |  |  |  | signal | 
 
 
◆ editorEvent()
  
  | 
        
          | bool editorEvent | ( | QEvent * | event, |  
          |  |  | QAbstractItemModel * | model, |  
          |  |  | const QStyleOptionViewItem & | option, |  
          |  |  | const QModelIndex & | index |  
          |  | ) |  |  |  | overrideprotected | 
 
 
◆ getAppIconSize()
      
        
          | int getAppIconSize | ( |  | ) | const | 
      
 
 
◆ getScenarioIconSize()
      
        
          | int getScenarioIconSize | ( |  | ) | const | 
      
 
 
◆ paint()
  
  | 
        
          | void paint | ( | QPainter * | painter, |  
          |  |  | const QStyleOptionViewItem & | option, |  
          |  |  | const QModelIndex & | index |  
          |  | ) |  | const |  | override | 
 
Sets button style and draws it. 
- Parameters
- 
  
    | painter | Painter that does the drawing |  | option | Describes the parameter used to draw the button |  | index | Used to locate the button |  
 
Definition at line 66 of file buttondelegate.cpp.
 
 
◆ setAppIconSize()
      
        
          | void setAppIconSize | ( | int | value | ) |  | 
      
 
 
◆ setEditorData()
  
  | 
        
          | void setEditorData | ( | QWidget * | editor, |  
          |  |  | const QModelIndex & | index |  
          |  | ) |  | const |  | virtual | 
 
 
◆ setModelData()
  
  | 
        
          | void setModelData | ( | QWidget * | editor, |  
          |  |  | QAbstractItemModel * | model, |  
          |  |  | const QModelIndex & | index |  
          |  | ) |  | const |  | virtual | 
 
 
◆ setScenarioIconSize()
      
        
          | void setScenarioIconSize | ( | int | value | ) |  | 
      
 
 
◆ sizeHint()
  
  | 
        
          | QSize sizeHint | ( | const QStyleOptionViewItem & | option, |  
          |  |  | const QModelIndex & | index |  
          |  | ) |  | const |  | override | 
 
Calculates and returns the size of the button. 
- Parameters
- 
  
    | option | Used to get the height and width of the item |  | index | Used to locate the button (not used currently) |  
 
Definition at line 177 of file buttondelegate.cpp.
 
 
The documentation for this class was generated from the following files: