show/hide the antiwidget when we show/hide ourselves

svn path=/trunk/KDE/kdegraphics/okular/; revision=742819
This commit is contained in:
Pino Toscano 2007-11-28 23:40:39 +00:00
parent 2f39925acb
commit c88cf049cc

View file

@ -43,9 +43,16 @@ void PageSizeLabel::notifySetup( const QVector< Okular::Page * > & pageVector, i
if ( pages < 1 || m_document->allPagesSize().isValid() )
{
hide();
if ( m_antiWidget )
m_antiWidget->hide();
return;
}
else show();
else
{
show();
if ( m_antiWidget )
m_antiWidget->show();
}
}
void PageSizeLabel::notifyViewportChanged( bool /*smoothMove*/ )