Skip to content

Commit

Permalink
adding a clickable link to the help button
Browse files Browse the repository at this point in the history
  • Loading branch information
Gpetrak committed Nov 13, 2024
1 parent 251e6c4 commit 7b76fa1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/qgis_geonode/gui/connection_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,13 @@ def __init__(self, connection_settings: typing.Optional[ConnectionSettings] = No
self.name_le.setValidator(
QtGui.QRegExpValidator(QtCore.QRegExp("[^\\/]+"), self.name_le)
)

# Plugin's docs open through the help button
self.buttonBox.button(QtWidgets.QDialogButtonBox.Help).clicked.connect(
lambda: QtGui.QDesktopServices.openUrl(
QtCore.QUrl("https://geonode.org/QGISGeoNodePlugin/")
)
)
self.update_ok_buttons()

def validate_geonode_url(self):
Expand Down
7 changes: 7 additions & 0 deletions src/qgis_geonode/gui/geonode_data_source_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,13 @@ def __init__(self, parent, fl, widgetMode):
self.title_le.returnPressed.connect(self.search_geonode)
self._hide_core_geonode_provider()

# Plugin's docs open through the help button
self.buttonBox.button(QtWidgets.QDialogButtonBox.Help).clicked.connect(
lambda: QtGui.QDesktopServices.openUrl(
QtCore.QUrl("https://geonode.org/QGISGeoNodePlugin/")
)
)

def _initialize_spatial_extent_box(self):
# ATTENTION: the order of initialization of the self.spatial_extent_box widget
# is crucial here. Only call self.spatial_extent_box.setMapCanvas() after
Expand Down

0 comments on commit 7b76fa1

Please sign in to comment.