1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-10 16:14:40 +02:00

* Call QWidget's hide() once the overlay's opacity is 0.00.

This commit is contained in:
Christian Muehlhaeuser
2011-01-24 03:13:00 +01:00
parent 92dd489640
commit b5b06a03fd

View File

@@ -31,6 +31,16 @@ void
OverlayWidget::setOpacity( qreal opacity )
{
m_opacity = opacity;
if ( m_opacity == 0.00 && !isHidden() )
{
QWidget::hide();
}
else if ( m_opacity > 0.00 && isHidden() )
{
QWidget::show();
}
repaint();
}