Changeset 2063

Show
Ignore:
Timestamp:
03/05/12 04:01:51 (9 years ago)
Author:
jwoithe
Message:

rme: don't make the output matrix mixer take up the full vertical extent of the window - that just looks silly. The solution's a bit of a hack, but I can't see any other way which works at present. Note too that the fix in r2062 works - sending works to all channels now.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/support/mixer-qt4/ffado/mixer/rme.py

    r2054 r2063  
    230230        layout = QtGui.QVBoxLayout() 
    231231        scrollarea = QtGui.QScrollArea() 
     232        scrollarea.setWidget(self.outputmatrix) 
    232233        scrollarea.setWidgetResizable(True) 
    233         scrollarea.setWidget(self.outputmatrix) 
    234         layout.addWidget(scrollarea) 
     234 
     235        # This is a bit of a hack, but it works to ensure this single-row 
     236        # matrix mixer doesn't fill the entire screen but also doesn't end 
     237        # up with a pointless scrollbar.  The matrix mixer's minimum height 
     238        # is 0 according to minimumHeight(), which is probably the 
     239        # fundamental issue here; however, I've already wasted too much time 
     240        # trying to get this to work so if the hack is effective we'll run 
     241        # with it. 
     242        scrollarea.setMinimumHeight(150) 
     243        layout.addWidget(scrollarea, 0, Qt.AlignTop) 
    235244        self.outputmixer.setLayout(layout) 
    236245