|
FougTools
0.7.0dev-046fb6a
Handy tools for C++, Qt and OpenCascade
|
Establishes a signal/slot connection between two QObjects and automatically breaks it upon destruction. More...
#include <qttools/core/scoped_connection.h>
Public Member Functions | |
| ScopedConnect (const QObject *sender, const char *signal, const QObject *receiver, const char *slot, Qt::ConnectionType type=Qt::UniqueConnection) | |
| ~ScopedConnect () | |
Establishes a signal/slot connection between two QObjects and automatically breaks it upon destruction.
ScopedConnect guarantees that a signal/slot connection will get broken when the current scope dissapears
| qtcore::ScopedConnect::ScopedConnect | ( | const QObject * | sender, |
| const char * | signal, | ||
| const QObject * | receiver, | ||
| const char * | slot, | ||
| Qt::ConnectionType | type = Qt::UniqueConnection |
||
| ) |
| qtcore::ScopedConnect::~ScopedConnect | ( | ) |
1.8.8