SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
A view that displays a list-model as toolbar buttons. More...
#include <qtOperationTypeView.h>
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 Attributes | |
QPointer< qtToolPaletteLayout > | m_flow |
QPointer< QWidget > | m_palette |
QPointer< QAbstractItemModel > | m_model |
Properties | |
QAbstractItemModel | model |
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.
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.
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.
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.
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.
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.