##// END OF EJS Templates
Creates the visitor that generates a hierarchical menu associated with a variable....
Creates the visitor that generates a hierarchical menu associated with a variable. This menu will contain all the widgets in which the variable can be displayed

File last commit:

r143:53848f21863d
r195:9044a6f2b5b4
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;
}