diff options
Diffstat (limited to 'src/util/btsignal.h')
-rw-r--r-- | src/util/btsignal.h | 40 |
1 files changed, 21 insertions, 19 deletions
diff --git a/src/util/btsignal.h b/src/util/btsignal.h index 6f05226..a680311 100644 --- a/src/util/btsignal.h +++ b/src/util/btsignal.h @@ -1,8 +1,10 @@ /********* * +* In the name of the Father, and of the Son, and of the Holy Spirit. +* * This file is part of BibleTime's source code, http://www.bibletime.info/. * -* Copyright 1999-2011 by the BibleTime developers. +* Copyright 1999-2014 by the BibleTime developers. * The BibleTime source code is licensed under the GNU General Public License version 2.0. * **********/ @@ -23,23 +25,23 @@ * have the signals work. Certain multiple inheritance classes which cannot * have QObject as the first derived class, cannot use Qt signals. */ -class BtSignal : public QObject { - Q_OBJECT - - public: - inline BtSignal(QObject *parent = 0) : QObject(parent) {}; - - /** - Immediately emits the beforeChanged() signal. - */ - inline void emitBeforeChanged() { emit beforeChanged(); } - /** - Immediately emits the changed() signal. - */ - inline void emitChanged() { emit changed(); } - - signals: - void beforeChanged(); - void changed(); +class BtSignal: public QObject { + + Q_OBJECT + +public: + + inline BtSignal(QObject *parent = 0) + : QObject(parent) {} + + /** + Immediately emits the beforeChanged() signal. + */ + inline void emitSignal() { emit signal(); } + +signals: + + void signal(); + }; #endif |