diff options
author | Lukáš Lalinský <lalinsky@gmail.com> | 2008-12-31 11:08:29 +0100 |
---|---|---|
committer | Lukáš Lalinský <lalinsky@gmail.com> | 2008-12-31 11:08:29 +0100 |
commit | e40be8a9658095b5d7e87afdf4a95762885e7aab (patch) | |
tree | 0586c6a25e4f26c0f958ef25614fcc215ed74eef /src/connector.cpp | |
parent | ca579d4487f431baf791ccb0c2635fb339cdfacf (diff) | |
download | dbmodel-e40be8a9658095b5d7e87afdf4a95762885e7aab.tar.xz |
Update line layouts in a singleshot timer
Diffstat (limited to 'src/connector.cpp')
-rw-r--r-- | src/connector.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/connector.cpp b/src/connector.cpp index 123971d..f693fde 100644 --- a/src/connector.cpp +++ b/src/connector.cpp @@ -15,6 +15,7 @@ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. #include "connector.h" +#include "diagramdocument.h" #include "hub.h" #include "line.h" @@ -40,7 +41,8 @@ Connector::setPos(const QPointF &pos) { if (m_pos != pos) { m_pos = pos; - m_owner->updatePositions(); + if (m_owner->document()) + m_owner->document()->updateLineLayout(m_owner); } } @@ -55,7 +57,8 @@ Connector::setAngle(qreal angle) { if (m_angle != angle) { m_angle = angle; -// m_owner->updatePositions(); + if (m_owner->document()) + m_owner->document()->updateLineLayout(m_owner); } } |