BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
widgetbasedtest.cpp
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // qt-mvvm: Model-view-view-model framework for large GUI applications
4 //
5 //! @file mvvm/tests/libtestmachinery/widgetbasedtest.cpp
6 //! @brief Implements class CLASS?
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2020
11 //! @authors Gennady Pospelov et al, Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #include "widgetbasedtest.h"
16 #include <QApplication>
17 
18 QApplication* WidgetBasedTest::m_app = nullptr;
19 
20 namespace {
21 // faking argc and argv
22 char progname[] = "testview";
23 char* argv[] = {&progname[0], nullptr};
24 int argc = 1;
25 } // namespace
26 
28 
30 {
31  m_app = new QApplication(argc, argv);
32 }
33 
35 {
36  delete m_app;
37  m_app = 0;
38 }
static void SetUpTestSuite()
static QApplication * m_app
static void TearDownTestSuite()
Defines class CLASS?