Changeset 1887

Show
Ignore:
Timestamp:
09/10/10 09:51:49 (11 years ago)
Author:
arnonym
Message:

Fix #303 and #298: Using tool-buttons saves space. The normal QPushButton has more space left and right of the text...

Files:

Legend:

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

    r1885 r1887  
    2424from PyQt4.QtGui import QWidget, QHBoxLayout, QVBoxLayout, \ 
    2525                        QGroupBox, QTabWidget, QLabel, \ 
    26                         QPushButton, QSpacerItem, QSizePolicy 
     26                        QPushButton, QToolButton, QSpacerItem, QSizePolicy 
    2727from ffado.config import * 
    2828import logging 
     
    182182                grpMonitorLayout.addWidget( strip, 1 ) 
    183183                input_id = inpair*2 
    184                 strip.lblName.setText("IN %d/%d" % (input_id+1, input_id+2)) 
     184                strip.lblName.setText("In %d/%d" % (input_id+1, input_id+2)) 
    185185 
    186186                # add the elements to the control structure 
     
    234234 
    235235            # add the tab 
    236             outputtabs.addTab( tab, "OUT %d/%d" % (output_id+1, output_id+2)) 
     236            outputtabs.addTab( tab, "Out %d/%d" % (output_id+1, output_id+2)) 
    237237 
    238238        # add an input config tab 
     
    245245            grpInput = QGroupBox(tab) 
    246246            tablayout.addWidget(grpInput) 
    247             grpInput.setTitle("IN %d" % (inpair+1)) 
     247            grpInput.setTitle("In %d" % (inpair+1)) 
    248248 
    249249            grpInputLayout = QVBoxLayout() 
     
    264264            grpInputLayout.addItem(spacer) 
    265265 
    266         outputtabs.addTab( tab, "INPUT") 
     266        outputtabs.addTab( tab, "Input") 
    267267 
    268268        # add an settings tab 
    269269        tab = QWidget( outputtabs ) 
    270270        tablayout = QHBoxLayout( tab ) 
    271         outputtabs.addTab( tab, "SETTINGS") 
     271        outputtabs.addTab( tab, "Settings") 
    272272        settings = AfSettingsWidget( tab ) 
    273273