Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

107 suodatus kaavamääräyksille ja kaavamääräysryhmille #108

Merged

Conversation

nmaarnio
Copy link
Collaborator

@nmaarnio nmaarnio commented Jan 13, 2025

No description provided.

@nmaarnio nmaarnio linked an issue Jan 13, 2025 that may be closed by this pull request
@nmaarnio nmaarnio added the enhancement New feature or request label Jan 13, 2025
@nmaarnio nmaarnio force-pushed the 107-suodatus-kaavamääräyksille-ja-kaavamääräysryhmille branch 3 times, most recently from 2b77f17 to daa4663 Compare January 14, 2025 09:06
@nmaarnio nmaarnio requested a review from LKajan January 14, 2025 09:06
from qgis.PyQt.QtWidgets import QSizePolicy, QTreeWidget, QTreeWidgetItem, QVBoxLayout, QWidget


class TreeWithSearchWidget(QWidget):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tää on tosiaan aika simppeli widget eikä niin väliä, mutta oliko joku syy miksi tätä ei tehty Designerilla ui-tiedostoksi?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eipä juuri. Taisin vaan ajatella, että kivempi laittaa yhteen tiedostoon kun mahtui hyvin / oli sen verran vähän alustuskoodia

self.regulations_tree_layout.insertWidget(1, self.regulations_selection_widget)
self.regulations_selection_widget.tree.itemDoubleClicked.connect(self.add_selected_regulation)
self.regulations_selection_widget.tree.itemClicked.connect(self.update_selected_regulation)
[self._initalize_regulation_from_config(config) for config in RegulationLibrary.get_regulations()]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mielestäni tässä ei hyötyä käyttä list comprehensionia.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Niin, aika pitkälti tyylikysymys ja oon itse 50-50 comprehensionin ja loopin välillä tälläsissä tapauksissa. Voin hyvin vaihtaa

@nmaarnio nmaarnio force-pushed the 107-suodatus-kaavamääräyksille-ja-kaavamääräysryhmille branch from daa4663 to c7f5fa3 Compare January 16, 2025 08:08
@nmaarnio nmaarnio force-pushed the 107-suodatus-kaavamääräyksille-ja-kaavamääräysryhmille branch from c7f5fa3 to 07a9db7 Compare January 16, 2025 13:41
@nmaarnio nmaarnio merged commit 874f4c3 into main Jan 16, 2025
7 checks passed
@nmaarnio nmaarnio deleted the 107-suodatus-kaavamääräyksille-ja-kaavamääräysryhmille branch January 16, 2025 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Suodatus kaavamääräyksille ja kaavamääräysryhmille
2 participants