Accept events properly
This commit is contained in:
parent
81990f792f
commit
fa95c24d7d
@ -87,6 +87,7 @@ class TextBase(QLabel):
|
|||||||
if self._elidemode == Qt.ElideNone:
|
if self._elidemode == Qt.ElideNone:
|
||||||
super().paintEvent(e)
|
super().paintEvent(e)
|
||||||
else:
|
else:
|
||||||
|
e.accept()
|
||||||
painter = QPainter(self)
|
painter = QPainter(self)
|
||||||
geom = self.geometry()
|
geom = self.geometry()
|
||||||
qt_ensure_valid(geom)
|
qt_ensure_valid(geom)
|
||||||
|
@ -136,6 +136,7 @@ class TabBar(QTabBar):
|
|||||||
if idx == -1:
|
if idx == -1:
|
||||||
super().mousePressEvent(e)
|
super().mousePressEvent(e)
|
||||||
return
|
return
|
||||||
|
e.accept()
|
||||||
self.tabCloseRequested.emit(idx)
|
self.tabCloseRequested.emit(idx)
|
||||||
|
|
||||||
def tabSizeHint(self, index):
|
def tabSizeHint(self, index):
|
||||||
|
Loading…
Reference in New Issue
Block a user