This commit is contained in:
Kovid Goyal 2010-09-22 09:09:55 -06:00
parent 5cab12e26f
commit edb26bcfa8

View File

@ -863,11 +863,11 @@ class SplitterHandle(QSplitterHandle):
self.update()
def paintEvent(self, ev):
QSplitterHandle.paintEvent(self, ev)
if self.highlight:
painter = QPainter(self)
painter.setClipRect(ev.rect())
painter.fillRect(self.rect(), Qt.yellow)
QSplitterHandle.paintEvent(self, ev)
def mouseDoubleClickEvent(self, ev):
self.double_clicked.emit(self)