Skip to content

Commit

Permalink
styling
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastienPeillet committed Nov 15, 2023
1 parent 9112fef commit 38eb8ae
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/core/layers/plateform.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@ def _link_boat(self, boatLayer: SammoLayer):
"Value": "name",
}
setup = QgsEditorWidgetSetup("ValueRelation", cfg)
res = self.layer.setEditorWidgetSetup(idx, setup)
self.layer.setEditorWidgetSetup(idx, setup)
2 changes: 1 addition & 1 deletion src/core/layers/survey.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def __init__(
self,
db: SammoDataBase,
boatLayer: SammoBoatLayer,
surveyTypeLayer: SammoSurveyTypeLayer
surveyTypeLayer: SammoSurveyTypeLayer,
):
super().__init__(db, SURVEY_TABLE, "Survey")
self.boatLayer = boatLayer
Expand Down
4 changes: 2 additions & 2 deletions src/core/layers/survey_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
__contact__ = "[email protected]"
__copyright__ = "Copyright (c) 2022 Hytech Imaging"

from qgis.core import QgsEditorWidgetSetup, QgsVectorLayer
from qgis.core import QgsVectorLayer

from ..database import (
SURVEY_TYPE_TABLE,
Expand All @@ -20,4 +20,4 @@ def _init(self, layer: QgsVectorLayer) -> None:
self._init_widgets(layer)

def _init_widgets(self, layer: QgsVectorLayer) -> None:
pass
pass
2 changes: 1 addition & 1 deletion src/gui/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def obsSpeLayerJoinInfo(self, layer: QgsVectorLayer) -> None:
"name_fr",
"group_fr",
"family_fr",
"taxon_fr"
"taxon_fr",
]
)
return speciesJoinInfo
Expand Down
8 changes: 3 additions & 5 deletions src/gui/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,11 @@ def surveyEdit(self):
if not vl.featureCount():
feat = QgsVectorLayerUtils.createFeature(vl)
vl.addFeature(feat)
if (
vl in [
if vl in [
self.session.surveyTypeLayer,
self.session.boatLayer,
self.session.plateformLayer
]
):
self.session.plateformLayer,
]:
dlg = QDialog(self)
dlg.setModal(True)
dlg.setWindowTitle(vl.name())
Expand Down

0 comments on commit 38eb8ae

Please sign in to comment.