Add type hinting to _onContextMenuRequested

This commit is contained in:
Arjen Hiemstra 2017-04-24 13:12:21 +02:00
parent 78603bed63
commit 8c4ec804e7

View file

@ -1334,7 +1334,7 @@ class CuraApplication(QtApplication):
Logger.log("e", "Could not check file %s: %s", file_url, e)
return False
def _onContextMenuRequested(self, x, y):
def _onContextMenuRequested(self, x: float, y: float) -> None:
# Ensure we select the object if we request a context menu over an object without having a selection.
if not Selection.hasSelection():
node = self.getController().getScene().findObject(self.getRenderer().getRenderPass("selection").getIdAtPosition(x, y))