1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-13 20:39:57 +01:00

* Fixed some margins.

This commit is contained in:
Christian Muehlhaeuser 2010-11-21 11:03:42 +01:00
parent adf05014fb
commit 757d2691c1
3 changed files with 8 additions and 11 deletions

View File

@ -26,7 +26,9 @@ AudioControls::AudioControls( QWidget* parent )
ui->trackLabelLayout->setSpacing( 3 );
QFont font( ui->artistTrackLabel->font() );
// font.setPixelSize( 12 );
font.setPixelSize( 12 );
ui->artistTrackLabel->setMinimumSize( ui->artistTrackLabel->minimumSizeHint() );
ui->albumLabel->setMinimumSize( ui->albumLabel->minimumSizeHint() );
ui->artistTrackLabel->setFont( font );
ui->artistTrackLabel->setElideMode( Qt::ElideMiddle );

View File

@ -138,13 +138,13 @@
<number>12</number>
</property>
<property name="topMargin">
<number>1</number>
<number>0</number>
</property>
<property name="rightMargin">
<number>8</number>
</property>
<property name="bottomMargin">
<number>1</number>
<number>0</number>
</property>
<item>
<widget class="QLabel" name="coverImage">
@ -189,10 +189,10 @@
<number>8</number>
</property>
<property name="topMargin">
<number>1</number>
<number>0</number>
</property>
<property name="bottomMargin">
<number>1</number>
<number>0</number>
</property>
<item>
<widget class="QWidget" name="widget_2" native="true">
@ -211,12 +211,6 @@
</property>
<item>
<layout class="QVBoxLayout" name="trackLabelLayout">
<property name="topMargin">
<number>1</number>
</property>
<property name="bottomMargin">
<number>1</number>
</property>
<item>
<widget class="ElidedLabel" name="artistTrackLabel">
<property name="cursor">

View File

@ -87,6 +87,7 @@ ElidedLabel::init( const QString& txt )
m_text = txt;
align = Qt::AlignLeft;
mode = Qt::ElideMiddle;
setContentsMargins( 0, 0, 0, 0 );
}