VariableInspectorWidget.cpp
26 lines
| 675 B
| text/x-c
|
CppLexer
Alexandre Leroux
|
r143 | #include <Variable/VariableController.h> | ||
Alexandre Leroux
|
r105 | #include <Variable/VariableInspectorWidget.h> | ||
Alexandre Leroux
|
r143 | #include <Variable/VariableModel.h> | ||
Alexandre Leroux
|
r105 | |||
#include <ui_VariableInspectorWidget.h> | ||||
Alexandre Leroux
|
r143 | #include <QSortFilterProxyModel> | ||
#include <SqpApplication.h> | ||||
Alexandre Leroux
|
r105 | VariableInspectorWidget::VariableInspectorWidget(QWidget *parent) | ||
: QWidget{parent}, ui{new Ui::VariableInspectorWidget} | ||||
{ | ||||
ui->setupUi(this); | ||||
Alexandre Leroux
|
r143 | |||
// Sets model for table | ||||
auto sortFilterModel = new QSortFilterProxyModel{this}; | ||||
sortFilterModel->setSourceModel(sqpApp->variableController().variableModel()); | ||||
ui->tableView->setModel(sortFilterModel); | ||||
Alexandre Leroux
|
r105 | } | ||
VariableInspectorWidget::~VariableInspectorWidget() | ||||
{ | ||||
delete ui; | ||||
} | ||||