-
Notifications
You must be signed in to change notification settings - Fork 0
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
The head ref may contain hidden characters: "107-suodatus-kaavam\u00E4\u00E4r\u00E4yksille-ja-kaavam\u00E4\u00E4r\u00E4ysryhmille"
107 suodatus kaavamääräyksille ja kaavamääräysryhmille #108
Conversation
2b77f17
to
daa4663
Compare
from qgis.PyQt.QtWidgets import QSizePolicy, QTreeWidget, QTreeWidgetItem, QVBoxLayout, QWidget | ||
|
||
|
||
class TreeWithSearchWidget(QWidget): |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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()] |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
daa4663
to
c7f5fa3
Compare
…ature form and plan attribute form
c7f5fa3
to
07a9db7
Compare
No description provided.