mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-22 21:54:00 +02:00
* Initially hide the queue.
This commit is contained in:
@@ -44,8 +44,7 @@ PlaylistManager::PlaylistManager( QObject* parent )
|
||||
|
||||
m_splitter->addWidget( m_stack );
|
||||
m_splitter->addWidget( m_queueView );
|
||||
m_splitter->setStretchFactor( 0, 3 );
|
||||
m_splitter->setStretchFactor( 1, 1 );
|
||||
m_splitter->hide( 1 );
|
||||
|
||||
m_widget->layout()->setMargin( 0 );
|
||||
m_widget->layout()->addWidget( m_splitter );
|
||||
|
@@ -29,7 +29,7 @@ AnimatedSplitter::show( int index )
|
||||
|
||||
QTimeLine *timeLine = new QTimeLine( 300, this );
|
||||
timeLine->setFrameRange( w->height(), size.height() );
|
||||
timeLine->setUpdateInterval( 20 );
|
||||
timeLine->setUpdateInterval( 10 );
|
||||
timeLine->setCurveShape( QTimeLine::EaseOutCurve );
|
||||
|
||||
connect( timeLine, SIGNAL( frameChanged( int ) ), SLOT( onAnimationStep( int ) ) );
|
||||
@@ -55,7 +55,7 @@ AnimatedSplitter::hide( int index )
|
||||
|
||||
QTimeLine *timeLine = new QTimeLine( 300, this );
|
||||
timeLine->setFrameRange( 25, w->height() );
|
||||
timeLine->setUpdateInterval( 20 );
|
||||
timeLine->setUpdateInterval( 10 );
|
||||
timeLine->setDirection( QTimeLine::Backward );
|
||||
timeLine->setCurveShape( QTimeLine::EaseOutCurve );
|
||||
|
||||
|
Reference in New Issue
Block a user