- subclassed the QMessageBox and created a new type of MessageBox that is frameless; started to use it throughout the app

This commit is contained in:
Marius Stanciu
2022-01-12 02:27:12 +02:00
committed by Marius
parent d7be3c3c3b
commit 1d1613d2d6
5 changed files with 103 additions and 66 deletions

View File

@@ -88,7 +88,7 @@ class TitleBar(QtWidgets.QDialog):
def mousePressEvent(self, event):
if event.button() == Qt.MouseButton.LeftButton:
box.moving = True
box.offset = event.pos()
box.offset = event.position()
if event.type() == QtCore.QEvent.Type.MouseButtonDblClick:
self.showMaxRestore()