##// END OF EJS Templates
Adds name to a graph...
Adds name to a graph - The name is passed as a parameter in the ctor - It is used as a title of the graph and will also be used to be displayed in menus related to a variable

File last commit:

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