From 3b68efc0b881568620f097534cdd55f560678111 Mon Sep 17 00:00:00 2001
From: Dmitry Yurov <d.yurov@fz-juelich.de>
Date: Mon, 5 Feb 2018 14:16:56 +0100
Subject: [PATCH] Insert stub for SpecularDataWidget into TestView

---
 GUI/coregui/Views/TestView.cpp | 12 ++++++++++++
 GUI/coregui/Views/TestView.h   |  1 +
 2 files changed, 13 insertions(+)

diff --git a/GUI/coregui/Views/TestView.cpp b/GUI/coregui/Views/TestView.cpp
index 2a8c3bcee55..ca66a3e4495 100644
--- a/GUI/coregui/Views/TestView.cpp
+++ b/GUI/coregui/Views/TestView.cpp
@@ -21,6 +21,7 @@
 #include "MinimizerSettingsWidget.h"
 #include "ApplicationModels.h"
 #include "SampleModel.h"
+#include "SpecularDataWidget.h"
 #include "TestComponentView.h"
 #include "mainwindow.h"
 #include <QTreeView>
@@ -42,6 +43,7 @@ TestView::TestView(MainWindow *mainWindow)
 //    test_AccordionWidget();
 //    test_RunFitWidget();
 //    test_ba3d();
+    test_specular_data_widget();
 }
 
 void TestView::test_ComponentProxyModel()
@@ -169,3 +171,13 @@ void TestView::test_ba3d()
     setLayout(layout);
 
 }
+
+void TestView::test_specular_data_widget()
+{
+    QVBoxLayout *layout = new QVBoxLayout;
+    layout->setMargin(0);
+    layout->setSpacing(0);
+    auto widget = new SpecularDataWidget;
+    layout->addWidget(widget);
+    setLayout(layout);
+}
diff --git a/GUI/coregui/Views/TestView.h b/GUI/coregui/Views/TestView.h
index 41e5a044f50..47e24725f16 100644
--- a/GUI/coregui/Views/TestView.h
+++ b/GUI/coregui/Views/TestView.h
@@ -32,6 +32,7 @@ private:
     void test_MinimizerSettings();
     void test_AccordionWidget();
     void test_ba3d();
+    void test_specular_data_widget();
 
     MainWindow* m_mainWindow;
 };
-- 
GitLab