Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
OpenGEODE
Commits
9d167a85
Commit
9d167a85
authored
Oct 30, 2015
by
Maxime Perrotin
Browse files
Scale the statecharts according to window size
parent
834cd2b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
opengeode/opengeode.py
View file @
9d167a85
...
...
@@ -2060,6 +2060,9 @@ class OG_MainWindow(QtGui.QMainWindow, object):
Statechart
.
render_statechart
(
self
.
statechart_scene
,
graph
)
self
.
statechart_view
.
refresh
()
self
.
statechart_view
.
fitInView
(
self
.
statechart_scene
.
itemsBoundingRect
(),
Qt
.
KeepAspectRatioByExpanding
)
except
(
IOError
,
TypeError
)
as
err
:
LOG
.
debug
(
str
(
err
))
elif
key_event
.
key
()
==
Qt
.
Key_Colon
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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