##// END OF EJS Templates
Adds a name for a tab...
Adds a name for a tab - The name is displayed in the tab - It will also be used to be displayed in menus related to a variable

File last commit:

r152:53848f21863d
r198:2c59e95cf3ce
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;
}