FougTools  0.7.0dev-046fb6a
Handy tools for C++, Qt and OpenCascade
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
qtcore::ScopedConnect Class Reference

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 ()
 

Detailed Description

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

Constructor & Destructor Documentation

qtcore::ScopedConnect::ScopedConnect ( const QObject *  sender,
const char *  signal,
const QObject *  receiver,
const char *  slot,
Qt::ConnectionType  type = Qt::UniqueConnection 
)
qtcore::ScopedConnect::~ScopedConnect ( )

The documentation for this class was generated from the following files: