summaryrefslogtreecommitdiff
path: root/src/main/python/utils/toolbar.py
diff options
context:
space:
mode:
authorBlaine2020-05-15 11:56:00 +0530
committerBlaine2020-05-15 11:56:00 +0530
commite666d20c72138e1cb679b2877d90604c06130926 (patch)
tree3ae511ca3444bb74a76c190b2c5ab9eff5dc4303 /src/main/python/utils/toolbar.py
parentaab2924c33eaa4de26203aee76a8e1f4a8ee559d (diff)
downloadChemical-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.py5
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):