mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 14:29:21 +00:00
Fix zoom slider with mouse wheel
This commit is contained in:
parent
9aad98836d
commit
128346d03d
@ -644,6 +644,7 @@ GuiView::GuiView(int id)
|
||||
statusBar()->addPermanentWidget(zoomslider);
|
||||
|
||||
connect(zoomslider, SIGNAL(sliderMoved(int)), this, SLOT(zoomSliderMoved(int)));
|
||||
connect(zoomslider, SIGNAL(valueChanged(int)), this, SLOT(zoomValueChanged(int)));
|
||||
connect(this, SIGNAL(currentZoomChanged(int)), zoomslider, SLOT(setValue(int)));
|
||||
|
||||
int const iconheight = max(int(d.normalIconSize), fm.height());
|
||||
@ -756,6 +757,13 @@ void GuiView::zoomSliderMoved(int value)
|
||||
}
|
||||
|
||||
|
||||
void GuiView::zoomValueChanged(int value)
|
||||
{
|
||||
if (value != lyxrc.currentZoom)
|
||||
zoomSliderMoved(value);
|
||||
}
|
||||
|
||||
|
||||
QVector<GuiWorkArea*> GuiView::GuiViewPrivate::guiWorkAreas()
|
||||
{
|
||||
QVector<GuiWorkArea*> areas;
|
||||
|
@ -245,6 +245,8 @@ private Q_SLOTS:
|
||||
///
|
||||
void zoomSliderMoved(int);
|
||||
///
|
||||
void zoomValueChanged(int);
|
||||
///
|
||||
void on_currentWorkAreaChanged(GuiWorkArea *);
|
||||
///
|
||||
void onBufferViewChanged();
|
||||
|
Loading…
Reference in New Issue
Block a user