mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +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 )
|
InfoBar::setLongDescription( const QString& s )
|
||||||
{
|
{
|
||||||
ui->longDescriptionLabel->setText( 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>
|
<item>
|
||||||
<widget class="ElidedLabel" name="captionLabel">
|
<widget class="ElidedLabel" name="captionLabel">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
|
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
@@ -92,7 +92,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="ElidedLabel" name="descriptionLabel">
|
<widget class="ElidedLabel" name="descriptionLabel">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
|
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
|
Reference in New Issue
Block a user