1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-14 13:01:53 +02:00

Attempt to stop eliding on osx and also keep things sane elsewhere

This commit is contained in:
Leo Franchi 2011-07-25 11:57:58 -04:00
parent b7432c8b6c
commit cb75c10390
2 changed files with 12 additions and 2 deletions

View File

@ -93,6 +93,16 @@ void
InfoBar::setLongDescription( const QString& s )
{
ui->longDescriptionLabel->setText( s );
if ( s.isEmpty() )
{
ui->horizontalLayout->setStretchFactor( ui->verticalLayout, 1 );
ui->horizontalLayout->setStretchFactor( ui->verticalLayout_2, 0 );
} else
{
ui->horizontalLayout->setStretchFactor( ui->verticalLayout, 0 );
ui->horizontalLayout->setStretchFactor( ui->verticalLayout_2, 99 );
}
}

View File

@ -79,7 +79,7 @@
<item>
<widget class="ElidedLabel" name="captionLabel">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
@ -92,7 +92,7 @@
<item>
<widget class="ElidedLabel" name="descriptionLabel">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>