Defines a model, based on a QMenuBar, to present all system buttons as a table.  
 More...
#include <MenuBarModel.h>
 | 
| 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...
  | 
|   | 
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. 
- Parameters
 - 
  
    | mnuBar | The menu bar to be used. | 
    | parent | Parent object.  | 
  
   
 
 
      
        
          | te::qt::af::MenuBarModel::~MenuBarModel  | 
          ( | 
           | ) | 
           | 
        
      
 
 
      
        
          | int te::qt::af::MenuBarModel::columnCount  | 
          ( | 
          const QModelIndex &  | 
          parent = QModelIndex() | ) | 
           const | 
        
      
 
 
      
        
          | QVariant te::qt::af::MenuBarModel::data  | 
          ( | 
          const QModelIndex &  | 
          index,  | 
        
        
           | 
           | 
          int  | 
          role = Qt::DisplayRole  | 
        
        
           | 
          ) | 
           |  const | 
        
      
 
 
  
  
      
        
          | virtual Qt::ItemFlags te::qt::af::MenuBarModel::flags  | 
          ( | 
          const QModelIndex &  | 
          index | ) | 
           const | 
         
       
   | 
  
virtual   | 
  
 
 
      
        
          | QVariant te::qt::af::MenuBarModel::headerData  | 
          ( | 
          int  | 
          section,  | 
        
        
           | 
           | 
          Qt::Orientation  | 
          orientation,  | 
        
        
           | 
           | 
          int  | 
          role = Qt::DisplayRole  | 
        
        
           | 
          ) | 
           |  const | 
        
      
 
 
      
        
          | int te::qt::af::MenuBarModel::rowCount  | 
          ( | 
          const QModelIndex &  | 
          parent = QModelIndex() | ) | 
           const | 
        
      
 
 
      
        
          | bool te::qt::af::MenuBarModel::setData  | 
          ( | 
          const QModelIndex &  | 
          index,  | 
        
        
           | 
           | 
          const QVariant &  | 
          value,  | 
        
        
           | 
           | 
          int  | 
          role = Qt::EditRole  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
      
        
          | void te::qt::af::MenuBarModel::setMenuBar  | 
          ( | 
          QMenuBar *  | 
          mnuBar | ) | 
           | 
        
      
 
Sets the menu bar to be used in the model. 
 
 
  
  
      
        
          | void te::qt::af::MenuBarModel::updateAction  | 
          ( | 
          QAction *  | 
          ,  | 
         
        
           | 
           | 
          const bool &  | 
            | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
signal   | 
  
 
 
      
        
          | void te::qt::af::MenuBarModel::updateActionsState  | 
          ( | 
          const QList< QAction * > &  | 
          acts | ) | 
           | 
        
      
 
Check the actions contained in acts. 
- Parameters
 - 
  
  
 
 
 
  
  
      
        
          | std::vector<QAction*> te::qt::af::MenuBarModel::m_actions | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | std::vector<bool> te::qt::af::MenuBarModel::m_actionsActivation | 
         
       
   | 
  
protected   | 
  
 
State of each system button. (True insert, False do nothing). 
Definition at line 101 of file MenuBarModel.h.
 
 
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_master/src/terralib/qt/af/settings/MenuBarModel.h