mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 19:30:21 +02:00
Attempt to stop eliding on osx and also keep things sane elsewhere
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user