Skip to content

Commit

Permalink
Merge pull request #587 from kartoza/timlinux/issue577
Browse files Browse the repository at this point in the history
Fixes for factor dialog and running multi point
  • Loading branch information
timlinux authored Nov 10, 2024
2 parents 845fbf4 + f0a2c59 commit fd9e788
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
15 changes: 8 additions & 7 deletions geest/gui/dialogs/factor_aggregation_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,14 +185,15 @@ def populate_table(self):
data_source_widget = DataSourceWidgetFactory.create_widget(
attributes["analysis_mode"], 1, attributes
)
data_source_widget.setSizePolicy(
QSizePolicy.Expanding, QSizePolicy.Preferred
)

data_source_widget.setMinimumWidth(150)
data_source_widget.setMinimumHeight(30)
data_source_widget.setParent(self.table) # Set the table as the parent
if data_source_widget:
data_source_widget.setSizePolicy(
QSizePolicy.Expanding, QSizePolicy.Preferred
)

data_source_widget.setMinimumWidth(150)
data_source_widget.setMinimumHeight(30)
data_source_widget.setParent(self.table) # Set the table as the parent

self.table.setCellWidget(
row, 0, data_source_widget
) # Set widget in leftmost column
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ def add_internal_widgets(self) -> None:
filter = None
if self.attributes.get("use_point_per_cell", 0):
filter = QgsMapLayerProxyModel.PointLayer
elif self.attributes.get("use_multi_buffer_point", 0):
filter = QgsMapLayerProxyModel.PointLayer
elif self.attributes.get("use_polyline_per_cell", 0):
filter = QgsMapLayerProxyModel.LineLayer
else:
Expand Down

0 comments on commit fd9e788

Please sign in to comment.