CANdevStudio
Development tool for CAN bus simulation
Loading...
Searching...
No Matches
GuiMock Class Reference

fakeit is broken so wrap broken solution to get it working with qt signals More...

#include <guimock.h>

Inheritance diagram for GuiMock:
Collaboration diagram for GuiMock:

Public Member Functions

 GuiMock (QObject *parent=nullptr)
 
void loadQML (const QUrl &url) override
 
void setModel (CANBusModel *model) override
 sets can bus model pointer
 
QWidget * mainWidget () override
 not used, return main widget for ui
 
void updateUIColor () override
 used to align empty QQuickWidget color with current color scheme
 
- Public Member Functions inherited from QMLExecutorGuiInt
 QMLExecutorGuiInt (QObject *parent)
 constructor
 
virtual ~QMLExecutorGuiInt ()
 virtual dtor to get things working
 

Public Attributes

fakeit::Mock< QMLExecutorGuiIntmock
 

Additional Inherited Members

- Public Slots inherited from QMLExecutorGuiInt
- Signals inherited from QMLExecutorGuiInt
void QMLLoaded (const QUrl &url)
 this signal is emitted when qml was loaded
 
void dockUndock ()
 

Detailed Description

fakeit is broken so wrap broken solution to get it working with qt signals

Constructor & Destructor Documentation

◆ GuiMock()

GuiMock::GuiMock ( QObject *  parent = nullptr)
inline

Member Function Documentation

◆ loadQML()

void GuiMock::loadQML ( const QUrl &  url)
inlineoverridevirtual

Loads qml file.

Parameters
urlurl to a qml file

Implements QMLExecutorGuiInt.

◆ mainWidget()

QWidget * GuiMock::mainWidget ( )
inlineoverridevirtual

not used, return main widget for ui

Implements QMLExecutorGuiInt.

◆ setModel()

void GuiMock::setModel ( CANBusModel model)
inlineoverridevirtual

sets can bus model pointer

Parameters
modelcan bus model

Implements QMLExecutorGuiInt.

◆ updateUIColor()

void GuiMock::updateUIColor ( )
inlineoverridevirtual

used to align empty QQuickWidget color with current color scheme

Implements QMLExecutorGuiInt.

Member Data Documentation

◆ mock

fakeit::Mock<QMLExecutorGuiInt> GuiMock::mock

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