mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
* Fixed showing a focus frame around DynamicView.
This commit is contained in:
@@ -45,6 +45,7 @@ DynamicView::DynamicView( QWidget* parent )
|
|||||||
{
|
{
|
||||||
setContentsMargins( 0, 0, 0, 0 );
|
setContentsMargins( 0, 0, 0, 0 );
|
||||||
setFrameShape( QFrame::NoFrame );
|
setFrameShape( QFrame::NoFrame );
|
||||||
|
setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
||||||
|
|
||||||
m_fadeOutAnim.setDuration( FADE_LENGTH );
|
m_fadeOutAnim.setDuration( FADE_LENGTH );
|
||||||
m_fadeOutAnim.setCurveShape( QTimeLine::LinearCurve );
|
m_fadeOutAnim.setCurveShape( QTimeLine::LinearCurve );
|
||||||
@@ -57,7 +58,6 @@ DynamicView::DynamicView( QWidget* parent )
|
|||||||
m_slideAnim.setDirection( QTimeLine::Forward );
|
m_slideAnim.setDirection( QTimeLine::Forward );
|
||||||
m_fadeOutAnim.setUpdateInterval( 5 );
|
m_fadeOutAnim.setUpdateInterval( 5 );
|
||||||
|
|
||||||
|
|
||||||
connect( &m_fadeOutAnim, SIGNAL( frameChanged( int ) ), viewport(), SLOT( update() ) );
|
connect( &m_fadeOutAnim, SIGNAL( frameChanged( int ) ), viewport(), SLOT( update() ) );
|
||||||
connect( &m_fadeOutAnim, SIGNAL( finished() ), this, SLOT( animFinished() ) );
|
connect( &m_fadeOutAnim, SIGNAL( finished() ), this, SLOT( animFinished() ) );
|
||||||
}
|
}
|
||||||
|
@@ -82,16 +82,14 @@ DynamicWidget::DynamicWidget( const Tomahawk::dynplaylist_ptr& playlist, QWidget
|
|||||||
m_layout->setSpacing( 0 );
|
m_layout->setSpacing( 0 );
|
||||||
setLayout( m_layout );
|
setLayout( m_layout );
|
||||||
|
|
||||||
|
|
||||||
connect( m_setup, SIGNAL( generatePressed( int ) ), this, SLOT( generate( int ) ) );
|
connect( m_setup, SIGNAL( generatePressed( int ) ), this, SLOT( generate( int ) ) );
|
||||||
connect( m_setup, SIGNAL( typeChanged( QString ) ), this, SLOT( playlistTypeChanged( QString ) ) );
|
connect( m_setup, SIGNAL( typeChanged( QString ) ), this, SLOT( playlistTypeChanged( QString ) ) );
|
||||||
|
|
||||||
layoutFloatingWidgets();
|
layoutFloatingWidgets();
|
||||||
|
|
||||||
connect( m_controls, SIGNAL( controlChanged( Tomahawk::dyncontrol_ptr ) ), this, SLOT( controlChanged( Tomahawk::dyncontrol_ptr ) ), Qt::QueuedConnection );
|
connect( m_controls, SIGNAL( controlChanged( Tomahawk::dyncontrol_ptr ) ), this, SLOT( controlChanged( Tomahawk::dyncontrol_ptr ) ), Qt::QueuedConnection );
|
||||||
connect( m_controls, SIGNAL( controlsChanged() ), this, SLOT( controlsChanged() ), Qt::QueuedConnection );
|
connect( m_controls, SIGNAL( controlsChanged() ), this, SLOT( controlsChanged() ), Qt::QueuedConnection );
|
||||||
|
|
||||||
|
|
||||||
connect( PlaylistManager::instance(), SIGNAL( playClicked() ), this, SLOT( playPressed() ) );
|
connect( PlaylistManager::instance(), SIGNAL( playClicked() ), this, SLOT( playPressed() ) );
|
||||||
connect( PlaylistManager::instance(), SIGNAL( pauseClicked() ), this, SLOT( pausePressed() ) );
|
connect( PlaylistManager::instance(), SIGNAL( pauseClicked() ), this, SLOT( pausePressed() ) );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user