1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 14:16:32 +02:00

* Fixed QTimeLine warning and give the biography on the Artist-Page as much space as possible.

This commit is contained in:
Christian Muehlhaeuser
2011-07-25 03:44:05 +02:00
parent 87531a7ac9
commit d4ccbdfa56
2 changed files with 9 additions and 7 deletions

View File

@@ -52,7 +52,6 @@ LoadingSpinner::LoadingSpinner( QWidget* parent )
LoadingSpinner::~LoadingSpinner() LoadingSpinner::~LoadingSpinner()
{ {
} }
@@ -60,9 +59,12 @@ void
LoadingSpinner::fadeIn() LoadingSpinner::fadeIn()
{ {
show(); show();
m_anim->start(); m_anim->start();
m_showHide->setDirection( QTimeLine::Forward ); m_showHide->setDirection( QTimeLine::Forward );
m_showHide->start();
if ( m_showHide->state() != QTimeLine::Running )
m_showHide->start();
} }
@@ -70,17 +72,17 @@ void
LoadingSpinner::fadeOut() LoadingSpinner::fadeOut()
{ {
m_showHide->setDirection( QTimeLine::Backward ); m_showHide->setDirection( QTimeLine::Backward );
if( m_showHide->state() == QTimeLine::Running )
m_showHide->stop();
m_showHide->start(); if ( m_showHide->state() != QTimeLine::Running )
m_showHide->start();
} }
void void
LoadingSpinner::hideFinished() LoadingSpinner::hideFinished()
{ {
if( m_showHide->direction() == QTimeLine::Backward ) { if ( m_showHide->direction() == QTimeLine::Backward )
{
hide(); hide();
m_anim->stop(); m_anim->stop();
} }

View File

@@ -25,7 +25,7 @@
<property name="windowTitle"> <property name="windowTitle">
<string>InfoBar</string> <string>InfoBar</string>
</property> </property>
<layout class="QHBoxLayout" name="horizontalLayout" stretch="0,0,0,1,0,0,0"> <layout class="QHBoxLayout" name="horizontalLayout" stretch="0,0,0,1,0,99,0">
<item> <item>
<spacer name="horizontalSpacer_3"> <spacer name="horizontalSpacer_3">
<property name="orientation"> <property name="orientation">