Commit 79c5d20d authored by Samuel GAIST's avatar Samuel GAIST

[backend][assetmodel] Remove full_list_enabled property

Only the setter is used, remove the unused code and
just use the setter.
parent fe5bb7bd
......@@ -280,14 +280,6 @@ class DataFormatModel(AbstractAssetModel):
return os.path.join(self.prefix_path, self.__asset_type.path)
def fullListEnabled(self):
"""Returns whether the full list mode is enabled.
:return: if full list is enabled
"""
return self._full_list_enabled
def setFullListEnabled(self, enabled):
"""Enable/disable the full list mode
......@@ -300,8 +292,6 @@ class DataFormatModel(AbstractAssetModel):
self._full_list_enabled = enabled
self.reload()
full_list_enabled = pyqtProperty(str, fget=fullListEnabled, fset=setFullListEnabled)
def json_path(self, asset_name):
"""Reimpl"""
......
......@@ -80,7 +80,7 @@ def dataformat_model(test_prefix):
def full_dataformat_model(test_prefix):
model = DataFormatModel()
model.prefix_path = test_prefix
model.full_list_enabled = True
model.setFullListEnabled(True)
return model
......
......@@ -155,7 +155,7 @@ class TestDataFormatModel:
def df_model(self, request, test_prefix):
df_model = DataFormatModel()
df_model.prefix_path = test_prefix
df_model.full_list_enabled = request.param
df_model.setFullListEnabled(request.param)
return df_model
def test_model_load(self, df_model):
......
......@@ -44,7 +44,7 @@ from ..widgets.dialogs import NameInputDialog
@pytest.fixture()
def dataformat_model(test_prefix):
asset_model = DataFormatModel()
asset_model.full_list_enabled = True
asset_model.setFullListEnabled(True)
asset_model.prefix_path = test_prefix
return asset_model
......
......@@ -646,7 +646,7 @@ class DataformatEditor(AbstractAssetEditor):
self.set_title(self.tr("Dataformat"))
self.dataformat_model = DataFormatModel()
self.dataformat_model.full_list_enabled = True
self.dataformat_model.setFullListEnabled(True)
self.extends_label = QLabel()
self._add_information_widget(self.tr("Extends"), self.extends_label)
......
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