Commit 1c7821ac authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[widgets][toolchaineditor] Use validated input widgets

parent 0b182618
Pipeline #40571 passed with stage
in 10 minutes and 45 seconds
......@@ -28,7 +28,6 @@ from functools import partial
import simplejson as json
from beat.backend.python.algorithm import Algorithm
from PyQt5.QtCore import QFile
from PyQt5.QtCore import QPointF
from PyQt5.QtCore import QRect
......@@ -55,7 +54,6 @@ from PyQt5.QtWidgets import QGraphicsPathItem
from PyQt5.QtWidgets import QGraphicsView
from PyQt5.QtWidgets import QHBoxLayout
from PyQt5.QtWidgets import QLabel
from PyQt5.QtWidgets import QLineEdit
from PyQt5.QtWidgets import QListWidget
from PyQt5.QtWidgets import QListWidgetItem
from PyQt5.QtWidgets import QMenu
......@@ -65,6 +63,8 @@ from PyQt5.QtWidgets import QToolBar
from PyQt5.QtWidgets import QVBoxLayout
from PyQt5.QtWidgets import QWidget
from beat.backend.python.algorithm import Algorithm
from ..backend.asset import Asset
from ..backend.asset import AssetType
from ..backend.assetmodel import AssetModel
......@@ -74,6 +74,7 @@ from ..backend.resourcemodels import experiment_resources
from ..decorators import frozen
from .editor import AbstractAssetEditor
from .toolchainscene import ToolchainScene
from .validatedhelpers import NameLineEdit
class BasePin(QGraphicsObject):
......@@ -671,7 +672,7 @@ class BlockEditionDialog(QDialog):
toolchain = block.toolchain
self.setWindowTitle(self.tr("Block Edition"))
self.name_lineedit = QLineEdit(block.name)
self.name_lineedit = NameLineEdit(block.name)
self.color = "#000000"
self.channel_combobox = QComboBox()
no_channel_label = QLabel(self.tr("No input connections yet!"))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment