7#ifndef __KIS_SIGNAL_AUTO_CONNECTOR_H
8#define __KIS_SIGNAL_AUTO_CONNECTOR_H
11#include <QSharedPointer>
41 template<
class Sender,
class Signal,
class Receiver,
class Method>
43 Receiver receiver, Method method,
44 Qt::ConnectionType type = Qt::AutoConnection)
45 :
m_connection(QObject::connect(sender, signal, receiver, method, type))
80 template<
class Sender,
class Signal,
class Receiver,
class Method>
82 Receiver receiver, Method method,
83 Qt::ConnectionType type = Qt::AutoConnection)
87 receiver, method, type)));
95 template<
class Sender,
class Signal,
class Receiver,
class Method>
97 Receiver receiver, Method method)
101 receiver, method, Qt::UniqueConnection)));
QMetaObject::Connection m_connection
~KisSignalAutoConnection()
KisSignalAutoConnection(Sender sender, Signal signal, Receiver receiver, Method method, Qt::ConnectionType type=Qt::AutoConnection)
KisSignalAutoConnection(const KisSignalAutoConnection &rhs)
void addUniqueConnection(Sender sender, Signal signal, Receiver receiver, Method method)
QVector< KisSignalAutoConnectionSP > m_connections
void addConnection(Sender sender, Signal signal, Receiver receiver, Method method, Qt::ConnectionType type=Qt::AutoConnection)
QSharedPointer< KisSignalAutoConnection > KisSignalAutoConnectionSP