Commit 2809059b authored by Samuel GAIST's avatar Samuel GAIST Committed by Samuel GAIST
Browse files

[widgets][protocoltemplateeditor] Use DataFormatModel

parent cae6d4e6
Pipeline #40216 passed with stage
in 6 minutes and 48 seconds
......@@ -33,16 +33,16 @@ from PyQt5.QtWidgets import QInputDialog
from ..backend.asset import Asset
from ..backend.asset import AssetType
from ..backend.assetmodel import AssetModel
from ..backend.assetmodel import DataFormatModel
from ..widgets.protocoltemplateeditor import ProtocolTemplateEditor
from ..widgets.protocoltemplateeditor import SetWidget
@pytest.fixture()
def dataformat_model(test_prefix):
asset_model = AssetModel()
asset_model.asset_type = AssetType.DATAFORMAT
asset_model = DataFormatModel()
asset_model.prefix_path = test_prefix
asset_model.full_list_enabled = True
return asset_model
......
......@@ -38,7 +38,7 @@ from PyQt5.QtWidgets import QVBoxLayout
from PyQt5.QtWidgets import QWidget
from ..backend.asset import AssetType
from ..backend.assetmodel import AssetModel
from ..backend.assetmodel import DataFormatModel
from ..backend.delegates import AssetItemDelegate
from ..decorators import frozen
from .editor import AbstractAssetEditor
......@@ -186,8 +186,8 @@ class ProtocolTemplateEditor(AbstractAssetEditor):
self.setObjectName(self.__class__.__name__)
self.set_title(self.tr("Protocol Template"))
self.dataformat_model = AssetModel()
self.dataformat_model.asset_type = AssetType.DATAFORMAT
self.dataformat_model = DataFormatModel()
self.dataformat_model.full_list_enabled = True
self.scroll_widget = ScrollWidget()
......
Supports Markdown
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