Skip to content
Snippets Groups Projects
Commit 6df7fa12 authored by Pospelov, Gennady's avatar Pospelov, Gennady
Browse files

TestView added to ModelTechView

parent edb00e3c
No related branches found
No related tags found
No related merge requests found
......@@ -23,10 +23,15 @@
#include "ModelTreeView.h"
#include "mainwindow.h"
#include "SessionModelDelegate.h"
#include "TestView.h"
#include <QToolBar>
#include <QToolButton>
#include <QVBoxLayout>
namespace {
const bool show_test_view = true;
}
SessionModelView::SessionModelView(MainWindow *mainWindow)
: QWidget(mainWindow)
, m_mainWindow(mainWindow)
......@@ -51,6 +56,9 @@ SessionModelView::SessionModelView(MainWindow *mainWindow)
setLayout(layout);
init_tabs();
if (show_test_view)
init_test_view();
}
void SessionModelView::onExpandCollapseTree()
......@@ -85,3 +93,10 @@ QList<SessionModel*> SessionModelView::modelsForTabs()
return result;
}
void SessionModelView::init_test_view()
{
auto view = new TestView(m_mainWindow);
int index = m_tabs->addTab(view, "Test View");
m_tabs->setCurrentIndex(index);
}
......@@ -47,6 +47,7 @@ private slots:
private:
void init_tabs();
QList<SessionModel*> modelsForTabs();
void init_test_view();
MainWindow* m_mainWindow;
QToolBar* m_toolBar;
......
......@@ -35,7 +35,6 @@
#include "projectmanager.h"
#include "stylehelper.h"
#include "tooltipdatabase.h"
#include "TestView.h"
#include <QApplication>
#include <QCloseEvent>
#include <QMessageBox>
......@@ -238,9 +237,7 @@ void MainWindow::initViews()
m_sampleView = new SampleView(this);
m_importDataView = new ImportDataView(this);
m_simulationView = new SimulationView(this);
m_jobView = new JobView(this);
// TestView *testView = new TestView(this);
m_tabWidget->insertTab(WELCOME, m_welcomeView, QIcon(":/images/main_welcomeview.svg"), "Welcome");
m_tabWidget->setTabToolTip(WELCOME, QStringLiteral("Switch to Welcome View"));
......@@ -260,8 +257,6 @@ void MainWindow::initViews()
m_tabWidget->insertTab(JOB, m_jobView, QIcon(":/images/main_jobview.svg"), "Jobs");
m_tabWidget->setTabToolTip(JOB, QStringLiteral("Switch to see job results, tune parameters real time,\nfit the data"));
// m_tabWidget->insertTab(TESTVIEW, testView, QIcon(":/images/main_testview.svg"), "TestView");
m_tabWidget->setCurrentIndex(WELCOME);
// enabling technical view
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment