Defines a model, based on a QMenuBar, to present all system buttons as a table. More...
#include <MenuBarModel.h>
  
 Signals | |
| void | updateAction (QAction *, const bool &) | 
Public Member Functions | |
| int | columnCount (const QModelIndex &parent=QModelIndex()) const | 
| QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const | 
| virtual Qt::ItemFlags | flags (const QModelIndex &index) const | 
| QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const | 
| MenuBarModel (QMenuBar *mnuBar, QObject *parent=0) | |
| Constructor.  More... | |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const | 
| bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) | 
| void | setMenuBar (QMenuBar *mnuBar) | 
| Sets the menu bar to be used in the model.  More... | |
| void | updateActionsState (const QList< QAction * > &acts) | 
| Check the actions contained in acts.  More... | |
| ~MenuBarModel () | |
| Destructor.  More... | |
Protected Attributes | |
| std::vector< QAction * > | m_actions | 
| System buttons.  More... | |
| std::vector< bool > | m_actionsActivation | 
| State of each system button. (True insert, False do nothing).  More... | |
Defines a model, based on a QMenuBar, to present all system buttons as a table.
Definition at line 50 of file MenuBarModel.h.
| te::qt::af::MenuBarModel::MenuBarModel | ( | QMenuBar * | mnuBar, | 
| QObject * | parent = 0  | 
        ||
| ) | 
Constructor.
| mnuBar | The menu bar to be used. | 
| parent | Parent object. | 
Definition at line 19 of file MenuBarModel.cpp.
References setMenuBar().
| te::qt::af::MenuBarModel::~MenuBarModel | ( | ) | 
Destructor.
Definition at line 25 of file MenuBarModel.cpp.
| int te::qt::af::MenuBarModel::columnCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const | 
Definition at line 73 of file MenuBarModel.cpp.
| QVariant te::qt::af::MenuBarModel::data | ( | const QModelIndex & | index, | 
| int | role = Qt::DisplayRole  | 
        ||
| ) | const | 
Definition at line 34 of file MenuBarModel.cpp.
      
  | 
  virtual | 
Definition at line 29 of file MenuBarModel.cpp.
| QVariant te::qt::af::MenuBarModel::headerData | ( | int | section, | 
| Qt::Orientation | orientation, | ||
| int | role = Qt::DisplayRole  | 
        ||
| ) | const | 
Definition at line 68 of file MenuBarModel.cpp.
| int te::qt::af::MenuBarModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const | 
Definition at line 78 of file MenuBarModel.cpp.
| bool te::qt::af::MenuBarModel::setData | ( | const QModelIndex & | index, | 
| const QVariant & | value, | ||
| int | role = Qt::EditRole  | 
        ||
| ) | 
Definition at line 83 of file MenuBarModel.cpp.
| void te::qt::af::MenuBarModel::setMenuBar | ( | QMenuBar * | mnuBar | ) | 
Sets the menu bar to be used in the model.
Definition at line 118 of file MenuBarModel.cpp.
References GetActions().
Referenced by MenuBarModel().
      
  | 
  signal | 
| void te::qt::af::MenuBarModel::updateActionsState | ( | const QList< QAction * > & | acts | ) | 
Check the actions contained in acts.
| acts | List of the actions. | 
Definition at line 101 of file MenuBarModel.cpp.
      
  | 
  protected | 
System buttons.
Definition at line 100 of file MenuBarModel.h.
      
  | 
  protected | 
State of each system button. (True insert, False do nothing).
Definition at line 101 of file MenuBarModel.h.