##// END OF EJS Templates
Creates factory that is responsible of creation of QCustomPlot components relative to a variable
Creates factory that is responsible of creation of QCustomPlot components relative to a variable

File last commit:

r143:53848f21863d
r168:9fde42db8d93
Show More
VariableInspectorWidget.cpp
26 lines | 675 B | text/x-c | CppLexer
/ gui / src / Variable / VariableInspectorWidget.cpp
Alexandre Leroux
Affects model to the Variable Widget
r143 #include <Variable/VariableController.h>
Alexandre Leroux
Initializes the variable inspector and adds it to the MainWindow
r105 #include <Variable/VariableInspectorWidget.h>
Alexandre Leroux
Affects model to the Variable Widget
r143 #include <Variable/VariableModel.h>
Alexandre Leroux
Initializes the variable inspector and adds it to the MainWindow
r105
#include <ui_VariableInspectorWidget.h>
Alexandre Leroux
Affects model to the Variable Widget
r143 #include <QSortFilterProxyModel>
#include <SqpApplication.h>
Alexandre Leroux
Initializes the variable inspector and adds it to the MainWindow
r105 VariableInspectorWidget::VariableInspectorWidget(QWidget *parent)
: QWidget{parent}, ui{new Ui::VariableInspectorWidget}
{
ui->setupUi(this);
Alexandre Leroux
Affects model to the Variable Widget
r143
// Sets model for table
auto sortFilterModel = new QSortFilterProxyModel{this};
sortFilterModel->setSourceModel(sqpApp->variableController().variableModel());
ui->tableView->setModel(sortFilterModel);
Alexandre Leroux
Initializes the variable inspector and adds it to the MainWindow
r105 }
VariableInspectorWidget::~VariableInspectorWidget()
{
delete ui;
}