Commit 5d9d98f4 authored by Martin Tobias Holmedahl Sandsmark's avatar Martin Tobias Holmedahl Sandsmark
Browse files

Fix MiniBar's adjusting to size changes

CCBUG: 357579
parent 3985577c
......@@ -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 );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment