5#include "ui_canrawsender.h"
18 widget->setMinimumSize(ui->tv->minimumSize());
23 QObject::connect(ui->pbAdd, &QPushButton::pressed, cb);
28 QObject::connect(ui->pbRemove, &QPushButton::pressed, cb);
33 QObject::connect(ui->pbDockUndock, &QPushButton::toggled, cb);
44 ui->tv->setModel(&_tvModel);
45 ui->tv->setSelectionBehavior(QAbstractItemView::SelectRows);
46 ui->tv->horizontalHeader()->setSectionResizeMode(1, QHeaderView::Stretch);
51 return ui->tv->selectionModel()->selectedRows();
56 ui->tv->setIndexWidget(index, widget);
60 Ui::CanRawSenderPrivate* ui;
This class is responsible for manage can raw sender window.
Definition canrawsender_p.h:19
Definition canrawsender_p.h:13
void setDockUndockCbk(const dockUndock_t &cb) override
Definition crsgui.h:31
void initTableView(QAbstractItemModel &_tvModel) override
Definition crsgui.h:41
QWidget * mainWidget() override
Definition crsgui.h:36
QModelIndexList getSelectedRows() override
Definition crsgui.h:49
void setAddCbk(const add_t &cb) override
Definition crsgui.h:21
void setRemoveCbk(const remove_t &cb) override
Definition crsgui.h:26
CRSGui()
Definition crsgui.h:13
void setIndexWidget(const QModelIndex &index, QWidget *widget) override
Definition crsgui.h:54
Definition crsguiinterface.h:12
std::function< void()> remove_t
Definition crsguiinterface.h:18
std::function< void()> add_t
Definition crsguiinterface.h:17
std::function< void()> dockUndock_t
Definition crsguiinterface.h:19