Don't use special tooltip style on linux. Draw yellow color on splitter handle in background

This commit is contained in:
Kovid Goyal 2010-09-21 22:04:01 -06:00
parent f12f69ef5e
commit 5cab12e26f
2 changed files with 1 additions and 13 deletions

View File

@ -603,18 +603,6 @@ class Application(QApplication):
self._file_open_paths = []
self._file_open_lock = RLock()
if islinux:
self.setStyleSheet('''
QToolTip {
border: 2px solid black;
padding: 5px;
border-radius: 10px;
opacity: 200;
background-color: #e1e1ff;
color: black;
}
''')
def _send_file_open_events(self):
with self._file_open_lock:
if self._file_open_paths:

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)