Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
OpenGEODE
Commits
c27217fe
Commit
c27217fe
authored
Jan 31, 2015
by
Maxime Perrotin
Browse files
Remove old comments
parent
df432470
Changes
1
Hide whitespace changes
Inline
Side-by-side
opengeode/genericSymbols.py
View file @
c27217fe
...
...
@@ -1208,21 +1208,6 @@ class VerticalSymbol(Symbol, object):
self
.
pos_y
=
y
self
.
cam
(
self
.
position
,
self
.
position
)
# def update_position(self):
# '''
# Update the symbol position -
# always below its parent (check collisions, etc.)
# '''
# # 'or self.parent' because of pyside/qt bug
# parent = self.parentItem() or self.parent
# self.pos_x = -((self.boundingRect().width() -
# parent.boundingRect().width()) / 2)
# # In case of collision with parent item, move down
# try:
# self.pos_y = max(self.y(), parent.connectionPoint.y())
# except AttributeError:
# self.pos_y = max(self.y(), parent.boundingRect().height() + 15)
def
mouse_move
(
self
,
event
):
''' Click and move: forbid symbol to move on the x axis '''
super
(
VerticalSymbol
,
self
).
mouse_move
(
event
)
...
...
@@ -1230,12 +1215,6 @@ class VerticalSymbol(Symbol, object):
new_y
=
self
.
pos_y
+
event
.
pos
().
y
()
-
event
.
lastPos
().
y
()
new_x
=
self
.
pos_x
+
event
.
pos
().
x
()
-
event
.
lastPos
().
x
()
self
.
position
=
QPointF
(
new_x
,
new_y
)
# if not self.parent:
# self.pos_x += event.pos().x() - event.lastPos().x()
# if not self.hasParent or (new_y >=
# self.connection.start_point.y() +
# self.parent.minDistanceToSymbolAbove):
# self.pos_y = new_y
self
.
update_connections
()
self
.
updateConnectionPoints
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment