#include "Common.h"
#include <WindowTypes.h>
#include <stdint.h>
#include <string>
#include <glib.h>
#include <QGraphicsObject>
#include <QSize>
Go to the source code of this file.
#define QM_CONNECT |
( |
|
source, |
|
|
|
sSignal, |
|
|
|
tSlot |
|
) |
| |
Value:do { \
if (!connect(source, sSignal, tSlot)) { \
qFatal("Failed to connect signal %s::%s to this::%s", \
#source, sSignal, tSlot); \
} \
} while (0)
Mandatory Qt signal/slot connection between another object's signal and this object's slot.
#define QM_CONNECT_EX |
( |
|
target, |
|
|
|
source, |
|
|
|
sSignal, |
|
|
|
tSlot |
|
) |
| |
Value:do { \
if (target == NULL) qFatal("Cannot connect to NULL object"); \
if (!(target)->connect(source, sSignal, tSlot)) { \
qFatal("Failed to connect signal %s::%s to %s::%s", \
#source, sSignal, #target, tSlot); \
} \
} while (0)
Mandatory Qt signal/slot connection between the target slot and the source signal.