summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAidan Gauland <aidalgol@fastmail.net>2016-05-25 22:26:42 +1200
committerArun Raghavan <arun@arunraghavan.net>2016-06-22 12:55:55 +0530
commitbe4619e3f7b98a0595418bd7d13b7504ffb5136f (patch)
tree9d44f8f1e6ddeba7e8f9fcca077f30aaff25d8fc
parent81c8d380846ffb26d8529abb7a34db6428a2e8ef (diff)
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@arunraghavan.net>
-rwxr-xr-xsrc/utils/qpaeq8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/utils/qpaeq b/src/utils/qpaeq
index 4b00e3a68..ac4b9e4a3 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):