mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
Don't re-fade in text in the overlay that is already visible
This commit is contained in:
@@ -68,7 +68,8 @@ DynamicView::onTrackCountChanged( unsigned int tracks )
|
|||||||
overlay()->setText( tr( "Add some filters above, and press Start to begin listening to this custom station!" ) );
|
overlay()->setText( tr( "Add some filters above, and press Start to begin listening to this custom station!" ) );
|
||||||
else
|
else
|
||||||
overlay()->setText( tr( "Add some filters above, and press Generate to get started!" ) );
|
overlay()->setText( tr( "Add some filters above, and press Generate to get started!" ) );
|
||||||
overlay()->show();
|
if( !overlay()->shown() )
|
||||||
|
overlay()->show();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
overlay()->hide();
|
overlay()->hide();
|
||||||
|
@@ -78,6 +78,13 @@ OverlayWidget::hide()
|
|||||||
animation->start();
|
animation->start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool
|
||||||
|
OverlayWidget::shown() const
|
||||||
|
{
|
||||||
|
return m_opacity == OPACITY;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
OverlayWidget::paintEvent( QPaintEvent* event )
|
OverlayWidget::paintEvent( QPaintEvent* event )
|
||||||
|
@@ -22,6 +22,7 @@ public:
|
|||||||
QString text() const { return m_text; }
|
QString text() const { return m_text; }
|
||||||
void setText( const QString& text );
|
void setText( const QString& text );
|
||||||
|
|
||||||
|
bool shown() const;
|
||||||
public slots:
|
public slots:
|
||||||
void show( int timeoutSecs = 0 );
|
void show( int timeoutSecs = 0 );
|
||||||
void hide();
|
void hide();
|
||||||
|
Reference in New Issue
Block a user