BibleTime
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
Functions
a
b
c
d
e
f
g
h
i
l
m
n
p
q
r
s
t
v
Variables
a
b
c
d
g
h
i
k
l
m
p
r
s
u
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
Enumerations
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
p
r
s
t
u
w
Properties
Related Symbols
Files
File List
File Members
All
a
b
c
e
f
h
i
j
k
l
m
o
p
r
s
t
u
w
Functions
b
c
f
i
j
l
m
o
p
r
t
Variables
Typedefs
Enumerations
Enumerator
Macros
a
b
c
i
l
m
r
s
t
u
w
src
backend
btsignal.h
Go to the documentation of this file.
1
/*********
2
*
3
* In the name of the Father, and of the Son, and of the Holy Spirit.
4
*
5
* This file is part of BibleTime's source code, https://bibletime.info/
6
*
7
* Copyright 1999-2025 by the BibleTime developers.
8
* The BibleTime source code is licensed under the GNU General Public License
9
* version 2.0.
10
*
11
**********/
12
13
#pragma once
14
15
#include <QObject>
16
17
#include <QString>
18
19
20
/**
21
* BtSignal
22
* The purpose of this class is to emit Qt signals for other classes
23
* that are not derived from QObject. It can be used as a member
24
* variable of those classes.
25
*
26
* There are some classes it is not possible to derive from QObject and
27
* have the signals work. Certain multiple inheritance classes which cannot
28
* have QObject as the first derived class, cannot use Qt signals.
29
*/
30
class
BtSignal
:
public
QObject
{
31
32
Q_OBJECT
33
34
public
:
35
36
BtSignal
(
QObject
* parent =
nullptr
);
37
38
/**
39
Immediately emits the beforeChanged() signal.
40
*/
41
void
emitSignal
() { Q_EMIT
signal
(); }
42
43
Q_SIGNALS:
44
45
void
signal
();
46
47
};
30
class
BtSignal
:
public
QObject
{
…
};
BtSignal
Definition
btsignal.h:30
BtSignal::signal
void signal()
BtSignal::emitSignal
void emitSignal()
Definition
btsignal.h:41
QObject
Generated by
1.9.8