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 @@ -393,7 +393,9 @@ class ExtentWidgetWrapper(WidgetWrapper):
393
393
394
394
def createWidget (self ):
395
395
if self .dialogType in (DIALOG_STANDARD , DIALOG_BATCH ):
396
- return ExtentSelectionPanel (self .dialog , self .parameterDefinition ())
396
+ widget = ExtentSelectionPanel (self .dialog , self .parameterDefinition ())
397
+ widget .hasChanged .connect (lambda : self .widgetValueHasChanged .emit (self ))
398
+ return widget
397
399
else :
398
400
widget = QComboBox ()
399
401
widget .setEditable (True )
You can’t perform that action at this time.
0 commit comments