summaryrefslogtreecommitdiff
path: root/src/ui/alsa
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/alsa')
-rw-r--r--src/ui/alsa/alsadevicewidget.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/alsa/alsadevicewidget.cpp b/src/ui/alsa/alsadevicewidget.cpp
index 214d931..6297640 100644
--- a/src/ui/alsa/alsadevicewidget.cpp
+++ b/src/ui/alsa/alsadevicewidget.cpp
@@ -99,7 +99,10 @@ AlsaDeviceWidget::AlsaDeviceWidget( AlsaDevice *dev, TQWidget *parent )
TQPixmap px = iconForDevice(dev);
if ( !px.isNull() ) icon->setPixmap(px);
topRow->addWidget(icon, 0, TQt::AlignVCenter);
- m_volLabel = new TQLabel(TQString("%1%").arg(dev->volume()), this);
+ m_volLabel = new TQLabel("100%", this);
+ m_volLabel->setFixedWidth( m_volLabel->sizeHint().width() + 2 );
+ m_volLabel->setAlignment( TQt::AlignRight | TQt::AlignVCenter );
+ m_volLabel->setText( TQString("%1%").arg(dev->volume()) );
topRow->addWidget(m_volLabel, 0, TQt::AlignVCenter);
col->addLayout(topRow);