Skip to content

Commit 60bed29

Browse files
committed
Fixed sizing of the date columns in the lifecycle table.
The dates in the table are now fully visible. Improved titles and docstrings.
1 parent 458f51d commit 60bed29

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

arho_feature_template/core/plan_manager.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ def save_document(document: Document) -> QgsFeature:
755755

756756

757757
def save_lifecycle(lifecycle: LifeCycle) -> QgsFeature:
758-
"""Save a list of LifeCycle objects to the layer."""
758+
"""Save a LifeCycle object to the layer."""
759759
feature = LifeCycleLayer.feature_from_model(lifecycle)
760760
layer = LifeCycleLayer.get_from_project()
761761

arho_feature_template/gui/components/lifecycle_table_widget.py

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ def __init__(self, lifecycles: list[LifeCycle], parent=None):
3030
header.setSectionResizeMode(0, QHeaderView.Stretch)
3131
for i in range(1, 3):
3232
header.setSectionResizeMode(i, QHeaderView.ResizeToContents)
33+
header.setMinimumSectionSize(110)
3334

3435
# Add given lifecycles
3536
for lifecycle in lifecycles:

arho_feature_template/gui/dialogs/lifecycle_editor.ui

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</rect>
1212
</property>
1313
<property name="windowTitle">
14-
<string>Dialog</string>
14+
<string>Kaavan elinkaaret</string>
1515
</property>
1616
<layout class="QVBoxLayout" name="verticalLayout">
1717
<item>

arho_feature_template/plugin.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def initGui(self) -> None: # noqa N802
228228
)
229229

230230
self.edit_lifecycles_action = self.add_action(
231-
text="Muokkaa elinkaaria",
231+
text="Kaavan elinkaaret",
232232
icon=QgsApplication.getThemeIcon("mActionFileSaveAs.svg"),
233233
# icon=QIcon(resources_path("icons", "toolbar", "tallenna_jsonina2.svg")),
234234
triggered_callback=self.edit_lifecycles,

0 commit comments

Comments
 (0)