On Wed, Jun 10, 2015 at 07:45:46PM +0200, Enrico Forestieri wrote:
> commit 21e908b8c49f0b5a7df1eca9b36d2632e0838880
> Author: Enrico Forestieri <for...@lyx.org>
> Date:   Wed Jun 10 19:21:27 2015 +0200
> 
>     Delay regeneration of previews on zoom changes
>     
>     Until now the regeneration process was starting as soon as the zoom scale
>     factor was changed. This was causing some glitches, especially if the zoom
>     was changed by the mouse wheel, as on each change the process was started
>     again and again making zoom changes painful and causing races such that
>     one could end up with the text at some zoom factor and the previews at
>     another one. After this commit, the regeneration is started only after
>     the zoom factor has been stable for about 1 second. In this way, one can
>     use the mouse wheel for changing back and forth the zoom factor at own's
>     heart desire without any slow down due to the regeneration process running
>     in the background. For those using previews with numbered math equations,
>     a nice possibility for getting the equations correctly numbered in 
> sequence
>     (after removing or adding an equation) is using the shortcuts Alt+ and 
> Alt-
>     in rapid sequence (less than a second between the keystrokes). Previously,
>     this would have triggered twice the regeneration, but now only once.
> 
> diff --git a/src/Makefile.am b/src/Makefile.am
> index 9b863cd..a43f717 100644
> --- a/src/Makefile.am
> +++ b/src/Makefile.am
> @@ -343,7 +343,7 @@ endif
>  
>  #########################  Qt stuff  ##############################
>  
> -MOCHEADER = Compare.h
> +MOCHEADER = Compare.h PreviewLoader.h
>  
>  if INSTALL_WINDOWS
>  
> @@ -357,6 +357,9 @@ MOCEDFILES = $(MOCHEADER:%.h=moc_%.cpp)
>  BUILT_SOURCES += $(MOCEDFILES)
>  CLEANFILES += $(MOCEDFILES)
>  
> +moc_PreviewLoader.cpp: graphics/PreviewLoader.h
> +     $(AM_V_GEN)$(QT_MOC) $(MOCFLAG) -o $@ $<
> +
>  moc_%.cpp: %.h
>       $(AM_V_GEN)$(QT_MOC) $(MOCFLAG) -o $@ $<
>  

I don't know what are the corresponding changes for cmake here.

-- 
Enrico

Reply via email to