Skip to content
Browse files

add value changed signal for extent parameter widget wrapper

(cherry picked from commit 37f14f8)
  • Loading branch information
alexbruy committed Jan 1, 2019
1 parent 7db8910 commit 6c6b075ee9d6aab5b4e45f117dbe07f3fae43f5d
@@ -31,7 +31,7 @@
from qgis.PyQt import uic
from qgis.PyQt.QtWidgets import QMenu, QAction, QInputDialog
from qgis.PyQt.QtGui import QCursor
from qgis.PyQt.QtCore import QCoreApplication
from qgis.PyQt.QtCore import QCoreApplication, pyqtSignal

from qgis.gui import QgsMessageBar
from qgis.utils import iface
@@ -56,10 +56,14 @@

class ExtentSelectionPanel(BASE, WIDGET):

hasChanged = pyqtSignal()

def __init__(self, dialog, param):
super(ExtentSelectionPanel, self).__init__(None)

self.leText.textChanged.connect(lambda: self.hasChanged.emit())

self.dialog = dialog
self.param = param = QgsProject.instance().crs()
@@ -393,7 +393,9 @@ class ExtentWidgetWrapper(WidgetWrapper):

def createWidget(self):
if self.dialogType in (DIALOG_STANDARD, DIALOG_BATCH):
return ExtentSelectionPanel(self.dialog, self.parameterDefinition())
widget = ExtentSelectionPanel(self.dialog, self.parameterDefinition())
widget.hasChanged.connect(lambda: self.widgetValueHasChanged.emit(self))
return widget
widget = QComboBox()

0 comments on commit 6c6b075

Please sign in to comment.