SMTK  @SMTK_VERSION@
Simulation Modeling Tool Kit
Public Member Functions | Protected Slots | Protected Attributes | Properties | List of all members
qtOperationTypeView Class Reference

A view that displays a list-model as toolbar buttons. More...

#include <qtOperationTypeView.h>

Inheritance diagram for qtOperationTypeView:
[legend]
Collaboration diagram for qtOperationTypeView:
[legend]

Public Member Functions

 qtOperationTypeView (QWidget *parent=nullptr)
 
 smtkTypeMacroBase (qtOperationTypeView)
 
 smtkSuperclassMacro (QScrollArea)
 
QAbstractItemModel * model () const
 Methods that mimic QAbstractItemView. More...
 
void setModel (QAbstractItemModel *model)
 Methods that mimic QAbstractItemView. More...
 
QModelIndex indexAt (const QPoint &point) const
 Methods that mimic QAbstractItemView. More...
 
void scrollTo (const QModelIndex &index, QAbstractItemView::ScrollHint hint)
 Methods that mimic QAbstractItemView. More...
 
QRect visualRect (const QModelIndex &index) const
 Methods that mimic QAbstractItemView. More...
 

Protected Slots

void operationsAdded (const QModelIndex &parent, int first, int last)
 
void operationsReordered (const QModelIndex &sourceParent, int sourceStart, int sourceEnd, const QModelIndex &destinationParent, int destinationRow)
 
void operationsRemoved (const QModelIndex &parent, int first, int last)
 
void operationsUpdated (const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector< int > &roles=QVector< int >())
 
void operationsLayoutChanging (const QList< QPersistentModelIndex > &parents, QAbstractItemModel::LayoutChangeHint hint)
 
void operationsLayoutChanged (const QList< QPersistentModelIndex > &parents, QAbstractItemModel::LayoutChangeHint hint)
 
void operationsResetting ()
 

Protected Attributes

QPointer< qtToolPaletteLayoutm_flow
 
QPointer< QWidget > m_palette
 
QPointer< QAbstractItemModel > m_model
 

Properties

QAbstractItemModel model
 

Detailed Description

A view that displays a list-model as toolbar buttons.

The model must be a qtOperationTypeModel or a proxy-model with an underlying qtOperationTypeModel because this view expects the second column to contain a qtOperationAction object.

Member Function Documentation

◆ indexAt()

QModelIndex qtOperationTypeView::indexAt ( const QPoint &  point) const

Methods that mimic QAbstractItemView.

This class does not inherit QAbstractItemView because that makes handling scrolling and resizing overly complex, but it presents much of the same API.

◆ model()

QAbstractItemModel* qtOperationTypeView::model ( ) const

Methods that mimic QAbstractItemView.

This class does not inherit QAbstractItemView because that makes handling scrolling and resizing overly complex, but it presents much of the same API.

◆ scrollTo()

void qtOperationTypeView::scrollTo ( const QModelIndex &  index,
QAbstractItemView::ScrollHint  hint 
)

Methods that mimic QAbstractItemView.

This class does not inherit QAbstractItemView because that makes handling scrolling and resizing overly complex, but it presents much of the same API.

◆ setModel()

void qtOperationTypeView::setModel ( QAbstractItemModel *  model)

Methods that mimic QAbstractItemView.

This class does not inherit QAbstractItemView because that makes handling scrolling and resizing overly complex, but it presents much of the same API.

◆ visualRect()

QRect qtOperationTypeView::visualRect ( const QModelIndex &  index) const

Methods that mimic QAbstractItemView.

This class does not inherit QAbstractItemView because that makes handling scrolling and resizing overly complex, but it presents much of the same API.


The documentation for this class was generated from the following files: