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

Help button. #58

Merged
merged 1 commit into from
Jul 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions qgis_hub_plugin/gui/resource_browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,24 @@
import platform
import tempfile
import zipfile
from functools import partial
from pathlib import Path

from qgis.core import (
Qgis,
QgsApplication,
QgsProject,
QgsRasterLayer,
QgsStyle,
QgsVectorLayer,
)
from qgis.core import Qgis, QgsApplication, QgsProject, QgsStyle, QgsVectorLayer
from qgis.gui import QgsMessageBar
from qgis.PyQt import uic
from qgis.PyQt.QtCore import QItemSelectionModel, QRegExp, QSize, Qt, QUrl, pyqtSlot
from qgis.PyQt.QtGui import QDesktopServices, QPixmap, QStandardItem, QStandardItemModel
from qgis.PyQt.QtWidgets import (
QDialog,
QDialogButtonBox,
QFileDialog,
QGraphicsPixmapItem,
QGraphicsScene,
QSizePolicy,
)

from qgis_hub_plugin.__about__ import __uri_homepage__
from qgis_hub_plugin.core.api_client import get_all_resources
from qgis_hub_plugin.core.custom_filter_proxy import MultiRoleFilterProxyModel
from qgis_hub_plugin.gui.constants import (
Expand Down Expand Up @@ -107,6 +103,10 @@ def __init__(self, parent=None, iface=None):
self.listViewToolButton.toggled.connect(self.show_list_view)
self.iconViewToolButton.toggled.connect(self.show_icon_view)

self.buttonBox.button(QDialogButtonBox.Help).clicked.connect(
partial(QDesktopServices.openUrl, QUrl(__uri_homepage__))
)

# Match with the size of the thumbnail
self.iconSizeSlider.setMinimum(20)
self.iconSizeSlider.setMaximum(128)
Expand Down
8 changes: 4 additions & 4 deletions qgis_hub_plugin/metadata.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
[general]
name=QGIS Hub Plugin
about=A QGIS plugins to fetch resources from the QGIS Hub
about=A QGIS plugin to fetch resources from the QGIS Hub
category=Web
hasProcessingProvider=no
description=A QGIS plugins to fetch resources from the QGIS Hub
description=A QGIS plugin to fetch resources from the QGIS Hub
icon=resources/images/default_icon.png
tags=style, model, layer, resource, 3d model, project, hub

# credits and contact
author=Ismail Sunni
author=Ismail Sunni, Ronit Jadhav
[email protected]
homepage=https://github.com/qgis/QGIS-Hub-Plugin
homepage=https://qgis.github.io/QGIS-Hub-Plugin/
repository=https://github.com/qgis/QGIS-Hub-Plugin
tracker=https://github.com/qgis/QGIS-Hub-Plugin/issues

Expand Down