diff options
author | Blaine | 2020-05-15 11:56:00 +0530 |
---|---|---|
committer | Blaine | 2020-05-15 11:56:00 +0530 |
commit | e666d20c72138e1cb679b2877d90604c06130926 (patch) | |
tree | 3ae511ca3444bb74a76c190b2c5ab9eff5dc4303 /src/main/python/utils/toolbar.py | |
parent | aab2924c33eaa4de26203aee76a8e1f4a8ee559d (diff) | |
download | Chemical-PFD-e666d20c72138e1cb679b2877d90604c06130926.tar.gz Chemical-PFD-e666d20c72138e1cb679b2877d90604c06130926.tar.bz2 Chemical-PFD-e666d20c72138e1cb679b2877d90604c06130926.zip |
working fix
Diffstat (limited to 'src/main/python/utils/toolbar.py')
-rw-r--r-- | src/main/python/utils/toolbar.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/main/python/utils/toolbar.py b/src/main/python/utils/toolbar.py index 1c0a492..5abdbd4 100644 --- a/src/main/python/utils/toolbar.py +++ b/src/main/python/utils/toolbar.py @@ -106,12 +106,9 @@ class toolbarButton(QToolButton): self.setToolTip(item["name"]) def mousePressEvent(self, event): + super(toolbarButton, self).mousePressEvent(event) if event.button() == Qt.LeftButton: - # if event.wasHeld: self.dragStartPosition = event.pos() - # else: - # # super(toolbarButton, self).mousePressEvent(event) - # self.clicked.emit() def mouseMoveEvent(self, event): if not (event.buttons() and Qt.LeftButton): |