26 #include <QAbstractProxyModel>
28 using namespace KDGantt;
45 if ( m_source ) m_source->disconnect(
this );
58 if ( m_destination ) m_destination->disconnect(
this );
71 if ( m_proxy == proxy )
return;
72 if ( m_proxy ) m_proxy->disconnect(
this );
75 connect( m_proxy, SIGNAL( layoutChanged() ),
this, SLOT( slotLayoutChanged() ) );
76 connect( m_proxy, SIGNAL( modelReset() ),
this, SLOT( slotLayoutChanged() ) );
85 void ConstraintProxy::copyFromSource()
87 if ( m_destination ) {
88 m_destination->clear();
89 if ( !m_source )
return;
95 m_destination->addConstraint( temp );
106 m_destination->addConstraint( temp );
116 m_destination->removeConstraint( temp );
126 m_source->addConstraint( temp );
136 m_source->removeConstraint( temp );
140 void ConstraintProxy::slotLayoutChanged()
145 #include "moc_kdganttconstraintproxy.cpp"