From c88cf049cc72fffa2d972ce9c659d7f53d7a3246 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Wed, 28 Nov 2007 23:40:39 +0000 Subject: [PATCH] show/hide the antiwidget when we show/hide ourselves svn path=/trunk/KDE/kdegraphics/okular/; revision=742819 --- ui/pagesizelabel.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ui/pagesizelabel.cpp b/ui/pagesizelabel.cpp index 6f427568e..4a8077924 100644 --- a/ui/pagesizelabel.cpp +++ b/ui/pagesizelabel.cpp @@ -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*/ )