summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin T. H. Sandsmark <martin.sandsmark@kde.org>2016-07-13 01:10:15 (GMT)
committerMartin T. H. Sandsmark <martin.sandsmark@kde.org>2016-07-13 01:10:15 (GMT)
commit5d9d98f46f67a0eff62e13ef3147acc712ac045d (patch)
treefb2a2fecc8b37a085a58aa4f66e4b1fae999aca3
parent3985577c908cbb8d1d9646cb2b127036b76635de (diff)
Fix MiniBar's adjusting to size changes
CCBUG: 357579
-rw-r--r--ui/minibar.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/minibar.cpp b/ui/minibar.cpp
index bfbe0cc..b6a1c18 100644
--- a/ui/minibar.cpp
+++ b/ui/minibar.cpp
@@ -116,7 +116,7 @@ void MiniBarLogic::notifySetup( const QVector< Okular::Page * > & pageVector, in
miniBar->m_pageNumberLabel->setVisible( labelsDiffer );
miniBar->m_pageNumberEdit->setVisible( !labelsDiffer );
- miniBar->resize( miniBar->minimumSizeHint() );
+ miniBar->adjustSize();
miniBar->setEnabled( true );
}
@@ -209,7 +209,7 @@ MiniBar::MiniBar( QWidget * parent, MiniBarLogic * miniBarLogic )
connect( m_prevButton, &QAbstractButton::clicked, this, &MiniBar::prevPage );
connect( m_nextButton, &QAbstractButton::clicked, this, &MiniBar::nextPage );
- resize( minimumSizeHint() );
+ adjustSize();
// widget starts disabled (will be enabled after opening a document)
setEnabled( false );