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:
parent
b7432c8b6c
commit
cb75c10390
@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user