Skip to content

Commit

Permalink
[gui] Show logo
Browse files Browse the repository at this point in the history
  • Loading branch information
gacarrillor committed Apr 15, 2024
1 parent e28006d commit 22fc973
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pg_service_parser/metadata.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ tags=postgresql,connection,db,database,service
homepage=https://github.com/opengisch/qgis-pg-service-parser-plugin
tracker=https://github.com/opengisch/qgis-pg-service-parser-plugin/issues
repository=https://github.com/opengisch/qgis-pg-service-parser-plugin
icon=images/icon.png
icon=images/logo.png
experimental=False
deprecated=False
9 changes: 8 additions & 1 deletion pg_service_parser/pg_service_parser_plugin.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
from pathlib import Path

from qgis.PyQt.QtGui import QIcon
from qgis.PyQt.QtWidgets import QAction

from pg_service_parser.gui.dlg_pg_service import PgServiceDialog
Expand All @@ -9,7 +12,11 @@ def __init__(self, iface):
self.action = None

def initGui(self):
self.action = QAction("Go!", self.iface.mainWindow())
self.action = QAction(
QIcon(str(Path(__file__).parent / "images" / "logo.png")),
"PG service parser",
self.iface.mainWindow(),
)
self.action.triggered.connect(self.run)
self.iface.addToolBarIcon(self.action)

Expand Down

0 comments on commit 22fc973

Please sign in to comment.