summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBlaine2020-06-17 15:21:34 +0530
committerBlaine2020-06-17 15:21:34 +0530
commit24ceacaf31b35ed472645a0d98415aae1db64594 (patch)
tree1885de9e6a30facd41915bac9aa096528d302ca4 /src
parentfe42ad1a31426b58809d22d29131c6861723b1a3 (diff)
downloadChemical-PFD-24ceacaf31b35ed472645a0d98415aae1db64594.tar.gz
Chemical-PFD-24ceacaf31b35ed472645a0d98415aae1db64594.tar.bz2
Chemical-PFD-24ceacaf31b35ed472645a0d98415aae1db64594.zip
add shortcuts for rotation
Diffstat (limited to 'src')
-rw-r--r--src/main/python/main.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/main/python/main.py b/src/main/python/main.py
index 42b4e48..4cf1791 100644
--- a/src/main/python/main.py
+++ b/src/main/python/main.py
@@ -212,7 +212,16 @@ class appWindow(QMainWindow):
else:
return
event.accept()
-
+ elif event.key() == Qt.Key_Q:
+ if self.mdi.activeSubWindow() and self.mdi.activeSubWindow().tabber.currentWidget():
+ for item in self.mdi.activeSubWindow().tabber.currentWidget().painter.selectedItems():
+ item.rotation -= 1
+
+ elif event.key() == Qt.Key_E:
+ if self.mdi.activeSubWindow() and self.mdi.activeSubWindow().tabber.currentWidget():
+ for item in self.mdi.activeSubWindow().tabber.currentWidget().painter.selectedItems():
+ item.rotation += 1
+
if __name__ == '__main__': # 1. Instantiate ApplicationContext