BibleTime
Signals | Public Member Functions | List of all members
BtSignal Class Reference

#include <btsignal.h>

Inheritance diagram for BtSignal:

Signals

void signal ()
 

Public Member Functions

 BtSignal (QObject *parent=nullptr)
 
void emitSignal ()
 

Detailed Description

BtSignal The purpose of this class is to emit Qt signals for other classes that are not derived from QObject. It can be used as a member variable of those classes.

There are some classes it is not possible to derive from QObject and have the signals work. Certain multiple inheritance classes which cannot have QObject as the first derived class, cannot use Qt signals.

Definition at line 30 of file btsignal.h.

Constructor & Destructor Documentation

◆ BtSignal()

BtSignal::BtSignal ( QObject parent = nullptr)

Definition at line 15 of file btsignal.cpp.

Member Function Documentation

◆ emitSignal()

void BtSignal::emitSignal ( )
inline

Immediately emits the beforeChanged() signal.

Definition at line 41 of file btsignal.h.

References signal().

◆ signal

void BtSignal::signal ( )
signal

Referenced by emitSignal().


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