[pulseaudio-commits] Branch 'next' - src/utils
Arun Raghavan
arun at kemper.freedesktop.org
Sun May 29 06:39:23 UTC 2016
src/utils/qpaeq | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 6b3e5e2075fc6f57753a2b8ecb4acf7780daf394
Author: Aidan Gauland <aidalgol at fastmail.net>
Date: Wed May 25 22:26:42 2016 +1200
qpaeq: Don't set font-size on widgets
Setting the font-size CSS property on a widget overrides the system
font-size, and since qpaeq provides no mechanism for setting the
application's font-size, we should not do this.
This commit also removes the font-size property from commented-out calls to
setStyleSheet() so that if these are ever reinstated, this behaviour is
not reintroduced.
Signed-off-by: Arun Raghavan <arun at arunraghavan.net>
diff --git a/src/utils/qpaeq b/src/utils/qpaeq
index 4b00e3a..ac4b9e4 100755
--- a/src/utils/qpaeq
+++ b/src/utils/qpaeq
@@ -299,7 +299,7 @@ class SliderArray(QtGui.QWidget):
def __init__(self,filter_state,parent=None):
super(SliderArray,self).__init__(parent)
#self.setStyleSheet('padding: 0px; border-width: 0px; margin: 0px;')
- #self.setStyleSheet('font-size: 7pt; font-family: monospace;'+outline%('blue'))
+ #self.setStyleSheet('font-family: monospace;'+outline%('blue'))
self.filter_state=filter_state
self.setLayout(QtGui.QHBoxLayout())
self.sub_array=None
@@ -367,7 +367,7 @@ class SliderArraySub(QtGui.QWidget):
self.slider=[None]*len(self.filter_state.frequencies)
self.label=[None]*len(self.slider)
#self.setStyleSheet('padding: 0px; border-width: 0px; margin: 0px;')
- #self.setStyleSheet('font-size: 7pt; font-family: monospace;'+outline%('blue'))
+ #self.setStyleSheet('font-family: monospace;'+outline%('blue'))
qt=QtCore.Qt
#self.layout().setHorizontalSpacing(1)
def add_slider(slider,label, c):
@@ -385,7 +385,7 @@ class SliderArraySub(QtGui.QWidget):
for i,hz in enumerate(self.filter_state.frequencies):
slider,label=create_slider(self.hz2label(hz))
self.slider[i]=slider
- #slider.setStyleSheet('font-size: 7pt; font-family: monospace;'+outline%('red',))
+ #slider.setStyleSheet('font-family: monospace;'+outline%('red',))
self.label[i]=label
c=i+1
add_slider(slider,label,i+1)
@@ -465,7 +465,7 @@ class SliderLabel(QtGui.QLabel):
clicked=QtCore.pyqtSignal()
def __init__(self,label_text,filter_state,parent=None):
super(SliderLabel,self).__init__(parent)
- self.setStyleSheet('font-size: 7pt; font-family: monospace;')
+ self.setStyleSheet('font-family: monospace;')
self.setText(label_text)
self.setMinimumSize(self.sizeHint())
def mouseDoubleClickEvent(self, event):
More information about the pulseaudio-commits
mailing list