Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.editor
Commits
15c932be
Commit
15c932be
authored
Feb 27, 2020
by
Flavio TARSETTI
Browse files
[widgets] Toolchain class renaming and improvement
parent
df08a2eb
Pipeline
#37741
passed with stage
in 15 minutes and 28 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
beat/editor/widgets/toolchaineditor.py
View file @
15c932be
...
...
@@ -1409,7 +1409,7 @@ class ToolchainView(QGraphicsView):
self
.
toolchain
.
dataChanged
.
emit
()
class
Toolchain
(
QWidget
):
class
Toolchain
Widget
(
QWidget
):
"""Toolchain designer"""
dataChanged
=
pyqtSignal
()
...
...
@@ -1429,8 +1429,8 @@ class Toolchain(QWidget):
if
file_
.
open
(
QFile
.
ReadOnly
|
QFile
.
Text
):
config_data
=
json
.
loads
(
file_
.
readAll
().
data
().
decode
(
"utf-8"
))
self
.
scene_config
=
config_data
[
"toolchainscene_config"
]
self
.
scene
=
ToolchainScene
(
self
.
scene_config
)
scene_config
=
config_data
[
"toolchainscene_config"
]
self
.
scene
=
ToolchainScene
(
scene_config
)
self
.
block_config
=
config_data
[
"block_config"
]
self
.
connection_config
=
config_data
[
"connection_config"
]
...
...
@@ -1829,7 +1829,7 @@ class ToolchainEditor(AbstractAssetEditor):
self
.
toolchain_model
=
AssetModel
()
self
.
toolchain_model
.
asset_type
=
AssetType
.
TOOLCHAIN
self
.
toolchain
=
Toolchain
()
self
.
toolchain
=
Toolchain
Widget
()
self
.
layout
().
addWidget
(
self
.
toolchain
,
2
)
self
.
layout
().
addStretch
()
...
...
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