managed QTableView
More...
#include <XXManagedTableView.h>
managed QTableView
can manage events on its items
|
| | TableView (QWidget *parent) |
| template<typename TargetClass> |
| void | onSelected (TargetClass *instance, void(TargetClass::*memberFunction)(const QModelIndex &)) |
| template<typename TargetClass> |
| void | onDoubleClicked (TargetClass *instance, bool(TargetClass::*memberFunction)(const QModelIndex &)) |
| template<typename TargetClass> |
| void | onContextMenu (TargetClass *instance, QMenu *(TargetClass::*memberFunction)(const QModelIndex &)) |
| void | setModel (QAbstractItemModel *model) override |
| QModelIndex | currentSourceIndex () const |
◆ TableView()
| XX::Managed::TableView::TableView |
( |
QWidget * | parent | ) |
|
◆ currentSourceIndex()
| QModelIndex XX::Managed::TableView::currentSourceIndex |
( |
| ) |
const |
◆ onContextMenu()
template<typename TargetClass>
| void XX::Managed::TableView::onContextMenu |
( |
TargetClass * | instance, |
|
|
QMenu *(TargetClass::* | memberFunction )(const QModelIndex &) ) |
◆ onDoubleClicked()
template<typename TargetClass>
| void XX::Managed::TableView::onDoubleClicked |
( |
TargetClass * | instance, |
|
|
bool(TargetClass::* | memberFunction )(const QModelIndex &) ) |
◆ onSelected()
template<typename TargetClass>
| void XX::Managed::TableView::onSelected |
( |
TargetClass * | instance, |
|
|
void(TargetClass::* | memberFunction )(const QModelIndex &) ) |
◆ setModel()
| void XX::Managed::TableView::setModel |
( |
QAbstractItemModel * | model | ) |
|
|
override |
The documentation for this class was generated from the following file: