Exemple #1
0
 def resetMenusToDefaults(self):
     for provider in QgsApplication.processingRegistry().providers():
         for alg in provider.algorithms():
             d = defaultMenuEntries.get(alg.id(), "")
             setting = ProcessingConfig.settings["MENU_" + alg.id()]
             item = self.items[setting]
             item.setData(d, Qt.EditRole)
     self.saveMenus = True
Exemple #2
0
 def resetMenusToDefaults(self):
     for provider in QgsApplication.processingRegistry().providers():
         for alg in provider.algorithms():
             d = defaultMenuEntries.get(alg.id(), "")
             setting = ProcessingConfig.settings["MENU_" + alg.id()]
             item = self.items[setting]
             item.setData(d, Qt.EditRole)
     self.saveMenus = True
Exemple #3
0
 def resetMenusToDefaults(self):
     providers = Processing.providers
     for provider in providers:
         for alg in provider.algs:
             d = defaultMenuEntries.get(alg.commandLineName(), "")
             setting = ProcessingConfig.settings["MENU_" + alg.commandLineName()]
             item = self.items[setting]
             item.setData(d, Qt.EditRole)
Exemple #4
0
 def resetMenusToDefaults(self):
     providers = Processing.providers
     for provider in providers:
         for alg in provider.algs:
             d = defaultMenuEntries.get(alg.commandLineName(), "")
             setting = ProcessingConfig.settings["MENU_" + alg.commandLineName()]
             item = self.items[setting]
             item.setData(d, Qt.EditRole)