File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
python/plugins/processing/gui Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 31
31
from qgis .PyQt import uic
32
32
from qgis .PyQt .QtWidgets import QMenu , QAction , QInputDialog
33
33
from qgis .PyQt .QtGui import QCursor
34
- from qgis .PyQt .QtCore import QCoreApplication
34
+ from qgis .PyQt .QtCore import QCoreApplication , pyqtSignal
35
35
36
36
from qgis .gui import QgsMessageBar
37
37
from qgis .utils import iface
56
56
57
57
class ExtentSelectionPanel (BASE , WIDGET ):
58
58
59
+ hasChanged = pyqtSignal ()
60
+
59
61
def __init__ (self , dialog , param ):
60
62
super (ExtentSelectionPanel , self ).__init__ (None )
61
63
self .setupUi (self )
62
64
65
+ self .leText .textChanged .connect (lambda : self .hasChanged .emit ())
66
+
63
67
self .dialog = dialog
64
68
self .param = param
65
69
self .crs = QgsProject .instance ().crs ()
Original file line number Diff line number Diff line change @@ -395,7 +395,9 @@ class ExtentWidgetWrapper(WidgetWrapper):
395
395
396
396
def createWidget (self ):
397
397
if self .dialogType in (DIALOG_STANDARD , DIALOG_BATCH ):
398
- return ExtentSelectionPanel (self .dialog , self .parameterDefinition ())
398
+ widget = ExtentSelectionPanel (self .dialog , self .parameterDefinition ())
399
+ widget .hasChanged .connect (lambda : self .widgetValueHasChanged .emit (self ))
400
+ return widget
399
401
else :
400
402
widget = QComboBox ()
401
403
widget .setEditable (True )
You can’t perform that action at this time.
0 commit comments