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
27
WidgetBasedTest::WidgetBasedTest
() {}
28
29
void
WidgetBasedTest::SetUpTestSuite
()
30
{
31
m_app
=
new
QApplication(argc, argv);
32
}
33
34
void
WidgetBasedTest::TearDownTestSuite
()
35
{
36
delete
m_app
;
37
m_app
= 0;
38
}
WidgetBasedTest::SetUpTestSuite
static void SetUpTestSuite()
Definition:
widgetbasedtest.cpp:29
WidgetBasedTest::m_app
static QApplication * m_app
Definition:
widgetbasedtest.h:33
WidgetBasedTest::TearDownTestSuite
static void TearDownTestSuite()
Definition:
widgetbasedtest.cpp:34
WidgetBasedTest::WidgetBasedTest
WidgetBasedTest()
Definition:
widgetbasedtest.cpp:27
widgetbasedtest.h
Defines class CLASS?
mvvm
tests
libtestmachinery
widgetbasedtest.cpp
Generated by
1.9.1