diff options
author | Blaine | 2020-06-17 15:21:34 +0530 |
---|---|---|
committer | Blaine | 2020-06-17 15:21:34 +0530 |
commit | 24ceacaf31b35ed472645a0d98415aae1db64594 (patch) | |
tree | 1885de9e6a30facd41915bac9aa096528d302ca4 /src/main/python/main.py | |
parent | fe42ad1a31426b58809d22d29131c6861723b1a3 (diff) | |
download | Chemical-PFD-24ceacaf31b35ed472645a0d98415aae1db64594.tar.gz Chemical-PFD-24ceacaf31b35ed472645a0d98415aae1db64594.tar.bz2 Chemical-PFD-24ceacaf31b35ed472645a0d98415aae1db64594.zip |
add shortcuts for rotation
Diffstat (limited to 'src/main/python/main.py')
-rw-r--r-- | src/main/python/main.py | 11 |
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 |