mirror of
https://github.com/fergalmoran/picard.git
synced 2026-02-22 15:44:59 +00:00
Disable the tooltips for sliders on Windows
The behavior is buggy on Windows. Disabled until we find a better solution
This commit is contained in:
committed by
Philipp Wolfer
parent
c7a0271582
commit
a4b2488a74
@@ -19,6 +19,7 @@
|
||||
|
||||
from locale import strxfrm
|
||||
from operator import itemgetter
|
||||
import sys
|
||||
|
||||
from PyQt5 import (
|
||||
QtCore,
|
||||
@@ -66,11 +67,13 @@ class TipSlider(QtWidgets.QSlider):
|
||||
|
||||
def showEvent(self, event):
|
||||
super().showEvent(event)
|
||||
self.valueChanged.connect(self.show_tip)
|
||||
if sys.platform != 'win32':
|
||||
self.valueChanged.connect(self.show_tip)
|
||||
|
||||
def hideEvent(self, event):
|
||||
super().hideEvent(event)
|
||||
self.valueChanged.disconnect(self.show_tip)
|
||||
if sys.platform != 'win32':
|
||||
self.valueChanged.disconnect(self.show_tip)
|
||||
|
||||
def show_tip(self, value):
|
||||
self.round_value(value)
|
||||
|
||||
Reference in New Issue
Block a user