mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-12 17:14:00 +02:00
* Made the queue show/hide button stuck to the bottom of PlaylistManager.
This commit is contained in:
@@ -11,7 +11,7 @@ using namespace Tomahawk;
|
||||
QueueView::QueueView( QWidget* parent )
|
||||
: QWidget( parent )
|
||||
{
|
||||
setMinimumHeight( 25 );
|
||||
setMinimumHeight( 27 );
|
||||
setLayout( new QVBoxLayout() );
|
||||
|
||||
m_queue = new PlaylistView( this );
|
||||
@@ -24,8 +24,8 @@ QueueView::QueueView( QWidget* parent )
|
||||
connect( m_button, SIGNAL( clicked() ), SIGNAL( showWidget() ) );
|
||||
|
||||
layout()->setMargin( 0 );
|
||||
layout()->addWidget( m_button );
|
||||
layout()->addWidget( m_queue );
|
||||
layout()->addWidget( m_button );
|
||||
}
|
||||
|
||||
|
||||
|
@@ -60,7 +60,7 @@ AnimatedSplitter::hide( int index, bool animate )
|
||||
m_animateIndex = index;
|
||||
|
||||
QWidget* w = widget( index );
|
||||
w->setMinimumHeight( 25 );
|
||||
w->setMinimumHeight( 27 );
|
||||
m_greedyHeight = widget( m_greedyIndex )->height();
|
||||
|
||||
m_animateForward = false;
|
||||
@@ -68,7 +68,7 @@ AnimatedSplitter::hide( int index, bool animate )
|
||||
{
|
||||
|
||||
QTimeLine *timeLine = new QTimeLine( ANIMATION_TIME, this );
|
||||
timeLine->setFrameRange( 25, w->height() );
|
||||
timeLine->setFrameRange( 27, w->height() );
|
||||
timeLine->setUpdateInterval( 5 );
|
||||
timeLine->setDirection( QTimeLine::Backward );
|
||||
timeLine->setEasingCurve( QEasingCurve::OutBack );
|
||||
@@ -79,7 +79,7 @@ AnimatedSplitter::hide( int index, bool animate )
|
||||
}
|
||||
else
|
||||
{
|
||||
onAnimationStep( 25 );
|
||||
onAnimationStep( 27 );
|
||||
onAnimationFinished();
|
||||
}
|
||||
|
||||
@@ -180,7 +180,7 @@ AnimatedSplitter::onAnimationFinished()
|
||||
}
|
||||
else
|
||||
{
|
||||
w->setMaximumHeight( 25 );
|
||||
w->setMaximumHeight( 27 );
|
||||
}
|
||||
|
||||
m_animateIndex = -1;
|
||||
|
Reference in New Issue
Block a user