#include <kdganttconstraintproxy.h>
Definition at line 38 of file kdganttconstraintproxy.h.
Public Member Functions | |
ConstraintProxy (QObject *parent=0) | |
ConstraintModel * | destinationModel () const |
QAbstractProxyModel * | proxyModel () const |
void | setDestinationModel (ConstraintModel *dest) |
void | setProxyModel (QAbstractProxyModel *proxy) |
void | setSourceModel (ConstraintModel *src) |
ConstraintModel * | sourceModel () const |
virtual | ~ConstraintProxy () |
ConstraintProxy::ConstraintProxy | ( | QObject * | parent = 0 |
) | [explicit] |
ConstraintProxy::~ConstraintProxy | ( | ) | [virtual] |
ConstraintModel * ConstraintProxy::destinationModel | ( | ) | const |
QAbstractProxyModel * ConstraintProxy::proxyModel | ( | ) | const |
void ConstraintProxy::setDestinationModel | ( | ConstraintModel * | dest | ) |
Definition at line 58 of file kdganttconstraintproxy.cpp.
00059 { 00060 if ( m_destination ) disconnect( m_destination ); 00061 m_destination = dest; 00062 00063 copyFromSource(); 00064 00065 connect( m_destination, SIGNAL( constraintAdded( const KDGantt::Constraint& ) ), 00066 this, SLOT( slotDestinationConstraintAdded( const KDGantt::Constraint& ) ) ); 00067 connect( m_destination, SIGNAL( constraintRemoved( const KDGantt::Constraint& ) ), 00068 this, SLOT( slotDestinationConstraintRemoved( const KDGantt::Constraint& ) ) ); 00069 }
void ConstraintProxy::setProxyModel | ( | QAbstractProxyModel * | proxy | ) |
void ConstraintProxy::setSourceModel | ( | ConstraintModel * | src | ) |
Definition at line 45 of file kdganttconstraintproxy.cpp.
00046 { 00047 if ( m_source ) disconnect( m_source ); 00048 m_source = src; 00049 00050 copyFromSource(); 00051 00052 connect( m_source, SIGNAL( constraintAdded( const KDGantt::Constraint& ) ), 00053 this, SLOT( slotSourceConstraintAdded( const KDGantt::Constraint& ) ) ); 00054 connect( m_source, SIGNAL( constraintRemoved( const KDGantt::Constraint& ) ), 00055 this, SLOT( slotSourceConstraintRemoved( const KDGantt::Constraint& ) ) ); 00056 }
ConstraintModel * ConstraintProxy::sourceModel | ( | ) | const |