コード例 #1
0
    def unregisterFuncs():
        Log.debug("Un Registering Generic functions")
        if QgsExpression.isFunctionName("$is_connected"):
            QgsExpression.unregisterFunction("$is_connected")

        if QgsExpression.isFunctionName("$is_visible"):
            QgsExpression.unregisterFunction("$is_visible")

        if QgsExpression.isFunctionName("$is_changed"):
            QgsExpression.unregisterFunction("$is_changed")

        if QgsExpression.isFunctionName("$since_change"):
            QgsExpression.unregisterFunction("$since_change")

        if QgsExpression.isFunctionName("$is_silent"):
            QgsExpression.unregisterFunction("$is_silent")
コード例 #2
0
ファイル: timemanager.py プロジェクト: vickyrnd/TimeManager
 def unload(self):
     """Unload the plugin"""
     control.unload()
     QgsExpression.unregisterFunction("$animation_datetime")
     QgsExpression.unregisterFunction("animation_datetime")
コード例 #3
0
ファイル: timemanager.py プロジェクト: jeperez/TimeManager
 def unload(self):
     """Unload the plugin"""
     control.unload()
     QgsExpression.unregisterFunction("$animation_datetime")
     QgsExpression.unregisterFunction("animation_datetime")
コード例 #4
0
 def unregister():
     if QgsExpression.isFunctionName("$format_label"):
         QgsExpression.unregisterFunction("$format_label")