From f87a53d4a5ea5aa098f940ab9d2ca040a5e6d483 Mon Sep 17 00:00:00 2001 From: Talley Lambert Date: Sat, 14 Dec 2024 10:06:16 -0500 Subject: [PATCH] Revert "remove stylesheet on sliderLabel (#254)" This reverts commit 7e92b8171138438d12d8310d2fc19ce7c943394d. --- src/superqt/sliders/_labeled.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/superqt/sliders/_labeled.py b/src/superqt/sliders/_labeled.py index 61375401..9d827093 100644 --- a/src/superqt/sliders/_labeled.py +++ b/src/superqt/sliders/_labeled.py @@ -657,14 +657,7 @@ def __init__( slider.rangeChanged.connect(self._update_size) self.setAlignment(alignment) self.setButtonSymbols(QSpinBox.ButtonSymbols.NoButtons) - - le = self.lineEdit() - # make the lineedit transparent - palette = le.palette() - palette.setColor(palette.ColorRole.Base, Qt.GlobalColor.transparent) - le.setPalette(palette) - le.setFrame(False) # no border - + self.setStyleSheet("background:transparent; border: 0;") if connect is not None: self.editingFinished.connect(lambda: connect(self.value())) self.editingFinished.connect(self._silent_clear_focus)