Skip to content

Commit

Permalink
prototyping for mockups for default filter
Browse files Browse the repository at this point in the history
  • Loading branch information
signedav committed Jul 4, 2024
1 parent ba29415 commit b346d11
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
4 changes: 3 additions & 1 deletion linking_relation_editor/gui/linking_child_manager_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,15 @@
QgsHighlight,
QgsIdentifyMenu,
QgsMessageBar,
QgsAttributeForm,
)
from qgis.PyQt.QtCore import QModelIndex, Qt, QTimer
from qgis.PyQt.QtWidgets import QAction, QDialog, QMessageBox
from qgis.PyQt.uic import loadUiType
from qgis.utils import iface

from linking_relation_editor.core.model.attribute_form_delegate import (
AttributeFormDelegate,
AttributeFormDelegate
)
from linking_relation_editor.core.model.features_model import FeaturesModel
from linking_relation_editor.core.model.features_model_filter import FeaturesModelFilter
Expand Down Expand Up @@ -187,6 +188,7 @@ def __init__(
)
self._feature_filter_widget.filterShowAll()

self._feature_filter_widget.setFilterExpression("relevant_progrtyp_alr = True AND relevant_subregion_1_2 = True",QgsAttributeForm.ReplaceFilter, True)
# Signal slots
self.accepted.connect(self._accepting)
self.rejected.connect(self._rejecting)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QgsFieldExpressionWidget" name="mFieldExpressoinWidget">
</widget>
</item>
</layout>
</widget>
</item>
Expand All @@ -61,6 +65,12 @@
<header>qgscollapsiblegroupbox.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>QgsFieldExpressionWidget</class>
<extends></extends>
<header>qgsfieldexpressionwidget.h</header>
<container>1</container>
</customwidget>
</customwidgets>
<resources/>
<connections/>
Expand Down

0 comments on commit b346d11

Please sign in to comment.