Skip to content
Open
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
10 changes: 5 additions & 5 deletions InstantPrintPlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,12 @@
# email : [email protected]

from qgis.core import Qgis
from PyQt5.QtCore import QObject, QSettings, QTranslator, QCoreApplication
from PyQt5.QtGui import QIcon
from PyQt5.QtWidgets import QToolButton
from qgis.PyQt.QtCore import QObject, QSettings, QTranslator, QCoreApplication
from qgis.PyQt.QtGui import QIcon
from qgis.PyQt.QtWidgets import QToolButton
from qgis.gui import QgisInterface
import os
from .InstantPrintTool import InstantPrintTool
from . import resources_rc


class InstantPrintPlugin(QObject):
Expand All @@ -40,7 +39,8 @@ def __init__(self, iface):

def initGui(self):
self.toolButton = QToolButton(self.iface.mapNavToolToolBar())
self.toolButton.setIcon(QIcon(":/plugins/instantprint/icons/icon.png"))
icon_path = os.path.join(self.pluginDir, "icons", "icon.png")
self.toolButton.setIcon(QIcon(icon_path))
self.toolButton.setText(self.tr("Instant Print"))
self.toolButton.setToolTip(self.tr("Instant Print"))
self.toolButton.setCheckable(True)
Expand Down
154 changes: 78 additions & 76 deletions InstantPrintTool.py

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion metadata.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
[general]
name=Instant Print
qgisMinimumVersion=3.0
qgisMaximumVersion=3.99
qgisMaximumVersion=4.99
supportsQt6=True
description=Instantly print map excerpts
about=The instant print plugin allows to quickly print map excerpts to a file, utilizing an existing composer as page layout.
version=3.0.1
Expand Down
13 changes: 0 additions & 13 deletions pyqgis.cmd

This file was deleted.

1 change: 0 additions & 1 deletion pyrcc5.txt

This file was deleted.

5 changes: 0 additions & 5 deletions resources.qrc

This file was deleted.

113 changes: 0 additions & 113 deletions resources_rc.py

This file was deleted.

84 changes: 0 additions & 84 deletions ui/ui_printdialog.py

This file was deleted.