26 #include <QAbstractProxyModel> 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" ~ConstraintProxy() override
A class used to represent a dependency.
ConstraintModel * destinationModel() const
Class only listed here to document inheritance of some KDChart classes.
ConstraintProxy(QObject *parent=0)
RelationType relationType() const
QAbstractProxyModel * proxyModel() const
QModelIndex endIndex() const
void setDestinationModel(ConstraintModel *dest)
Class only listed here to document inheritance of some KDChart classes.
QMap< int, QVariant > dataMap() const
void setSourceModel(ConstraintModel *src)
ConstraintModel * sourceModel() const
void setProxyModel(QAbstractProxyModel *proxy)
QModelIndex startIndex() const