mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
disable scrollbar when it is not needed, especially for the empty start up window
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15677 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
b937ae39f9
commit
5c92641c4d
@ -245,6 +245,7 @@ void GuiWorkArea::setScrollbarParams(int h, int scroll_pos, int scroll_line_step
|
|||||||
h += height() / 4;
|
h += height() / 4;
|
||||||
int scroll_max_ = std::max(0, h - height());
|
int scroll_max_ = std::max(0, h - height());
|
||||||
|
|
||||||
|
setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
|
||||||
verticalScrollBar()->setRange(0, scroll_max_);
|
verticalScrollBar()->setRange(0, scroll_max_);
|
||||||
verticalScrollBar()->setSliderPosition(scroll_pos);
|
verticalScrollBar()->setSliderPosition(scroll_pos);
|
||||||
verticalScrollBar()->setSingleStep(scroll_line_step);
|
verticalScrollBar()->setSingleStep(scroll_line_step);
|
||||||
|
Loading…
Reference in New Issue
Block a user