mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
Modeler: Set default action to Export as Script Algorithm
otherwise the button tooltip is not shown
This commit is contained in:
parent
86c83537f9
commit
7903889f54
@ -281,6 +281,7 @@ class ModelerDialog(BASE, WIDGET):
|
||||
self.toolbutton_export_to_script.setPopupMode(QToolButton.InstantPopup)
|
||||
self.export_to_script_algorithm_action = QAction(QCoreApplication.translate('ModelerDialog', 'Export as Script Algorithm…'))
|
||||
self.toolbutton_export_to_script.addActions([self.export_to_script_algorithm_action])
|
||||
self.toolbutton_export_to_script.setDefaultAction(self.export_to_script_algorithm_action)
|
||||
self.mToolbar.insertWidget(self.mActionExportImage, self.toolbutton_export_to_script)
|
||||
self.export_to_script_algorithm_action.triggered.connect(self.export_as_script_algorithm)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user