BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
ViewportAxisPlotControllerTest Class Reference

Testing AxisPlotControllers. More...

Inheritance diagram for ViewportAxisPlotControllerTest:
[legend]
Collaboration diagram for ViewportAxisPlotControllerTest:
[legend]

Public Member Functions

 ~ViewportAxisPlotControllerTest ()
 
std::unique_ptr< QSignalSpy > createSpy (QCPAxis *axis)
 
std::unique_ptr< QSignalSpy > createSpy2 (QCPAxis *axis)
 

Detailed Description

Testing AxisPlotControllers.

Definition at line 30 of file viewportaxisplotcontroller.test.cpp.

Constructor & Destructor Documentation

◆ ~ViewportAxisPlotControllerTest()

ViewportAxisPlotControllerTest::~ViewportAxisPlotControllerTest ( )
default

Member Function Documentation

◆ createSpy()

std::unique_ptr<QSignalSpy> ViewportAxisPlotControllerTest::createSpy ( QCPAxis *  axis)
inline

Definition at line 34 of file viewportaxisplotcontroller.test.cpp.

35  {
36  return std::make_unique<QSignalSpy>(
37  axis, static_cast<void (QCPAxis::*)(const QCPRange&)>(&QCPAxis::rangeChanged));
38  }

◆ createSpy2()

std::unique_ptr<QSignalSpy> ViewportAxisPlotControllerTest::createSpy2 ( QCPAxis *  axis)
inline

Definition at line 40 of file viewportaxisplotcontroller.test.cpp.

41  {
42  return std::make_unique<QSignalSpy>(
43  axis, static_cast<void (QCPAxis::*)(const QCPRange&, const QCPRange&)>(
44  &QCPAxis::rangeChanged));
45  }

The documentation for this class was generated from the following file: