Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Graphics
Okular
Commits
5d9d98f4
Commit
5d9d98f4
authored
Jul 13, 2016
by
Martin Tobias Holmedahl Sandsmark
Browse files
Fix MiniBar's adjusting to size changes
CCBUG: 357579
parent
3985577c
Changes
1
Hide whitespace changes
Inline
Side-by-side
ui/minibar.cpp
View file @
5d9d98f4
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment