1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-13 09:34:53 +02:00

* Made the queue show/hide button stuck to the bottom of PlaylistManager.

This commit is contained in:
Christian Muehlhaeuser
2010-11-27 07:32:05 +01:00
parent 813fbb655d
commit db38346029
2 changed files with 6 additions and 6 deletions

View File

@@ -11,7 +11,7 @@ using namespace Tomahawk;
QueueView::QueueView( QWidget* parent ) QueueView::QueueView( QWidget* parent )
: QWidget( parent ) : QWidget( parent )
{ {
setMinimumHeight( 25 ); setMinimumHeight( 27 );
setLayout( new QVBoxLayout() ); setLayout( new QVBoxLayout() );
m_queue = new PlaylistView( this ); m_queue = new PlaylistView( this );
@@ -24,8 +24,8 @@ QueueView::QueueView( QWidget* parent )
connect( m_button, SIGNAL( clicked() ), SIGNAL( showWidget() ) ); connect( m_button, SIGNAL( clicked() ), SIGNAL( showWidget() ) );
layout()->setMargin( 0 ); layout()->setMargin( 0 );
layout()->addWidget( m_button );
layout()->addWidget( m_queue ); layout()->addWidget( m_queue );
layout()->addWidget( m_button );
} }

View File

@@ -60,7 +60,7 @@ AnimatedSplitter::hide( int index, bool animate )
m_animateIndex = index; m_animateIndex = index;
QWidget* w = widget( index ); QWidget* w = widget( index );
w->setMinimumHeight( 25 ); w->setMinimumHeight( 27 );
m_greedyHeight = widget( m_greedyIndex )->height(); m_greedyHeight = widget( m_greedyIndex )->height();
m_animateForward = false; m_animateForward = false;
@@ -68,7 +68,7 @@ AnimatedSplitter::hide( int index, bool animate )
{ {
QTimeLine *timeLine = new QTimeLine( ANIMATION_TIME, this ); QTimeLine *timeLine = new QTimeLine( ANIMATION_TIME, this );
timeLine->setFrameRange( 25, w->height() ); timeLine->setFrameRange( 27, w->height() );
timeLine->setUpdateInterval( 5 ); timeLine->setUpdateInterval( 5 );
timeLine->setDirection( QTimeLine::Backward ); timeLine->setDirection( QTimeLine::Backward );
timeLine->setEasingCurve( QEasingCurve::OutBack ); timeLine->setEasingCurve( QEasingCurve::OutBack );
@@ -79,7 +79,7 @@ AnimatedSplitter::hide( int index, bool animate )
} }
else else
{ {
onAnimationStep( 25 ); onAnimationStep( 27 );
onAnimationFinished(); onAnimationFinished();
} }
@@ -180,7 +180,7 @@ AnimatedSplitter::onAnimationFinished()
} }
else else
{ {
w->setMaximumHeight( 25 ); w->setMaximumHeight( 27 );
} }
m_animateIndex = -1; m_animateIndex = -1;