Accept events properly

This commit is contained in:
Florian Bruhin 2014-06-23 18:21:12 +02:00
parent 81990f792f
commit fa95c24d7d
2 changed files with 2 additions and 0 deletions

View File

@ -87,6 +87,7 @@ class TextBase(QLabel):
if self._elidemode == Qt.ElideNone:
super().paintEvent(e)
else:
e.accept()
painter = QPainter(self)
geom = self.geometry()
qt_ensure_valid(geom)

View File

@ -136,6 +136,7 @@ class TabBar(QTabBar):
if idx == -1:
super().mousePressEvent(e)
return
e.accept()
self.tabCloseRequested.emit(idx)
def tabSizeHint(self, index):