mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
Fix recursive repaint. QSlider::setRange() didn't used to trigger valueChanged() signal before to Qt4.4.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24322 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
f8c19c365d
commit
108bac9798
@ -558,11 +558,11 @@ void GuiWorkArea::updateScrollbar()
|
||||
{
|
||||
ScrollbarParameters const & scroll_ = buffer_view_->scrollbarParameters();
|
||||
|
||||
// Block the scrollbar signal to prevent recursive signal/slot calling.
|
||||
verticalScrollBar()->blockSignals(true);
|
||||
verticalScrollBar()->setRange(scroll_.min, scroll_.max);
|
||||
verticalScrollBar()->setPageStep(scroll_.page_step);
|
||||
verticalScrollBar()->setSingleStep(scroll_.single_step);
|
||||
// Block the scrollbar signal to prevent recursive signal/slot calling.
|
||||
verticalScrollBar()->blockSignals(true);
|
||||
verticalScrollBar()->setValue(scroll_.position);
|
||||
verticalScrollBar()->setSliderPosition(scroll_.position);
|
||||
verticalScrollBar()->blockSignals(false);
|
||||
|
Loading…
Reference in New Issue
Block a user