[Gambas-user] gb.qt4 compilation time

Benoît Minisini gambas at ...1...
Sat Jun 2 19:31:25 CEST 2012


Le 02/06/2012 19:08, Adrien Prokopowicz a écrit :
> Hi all,
>
> Since a few weeks I found that the gb.qt4 component takes a lot of time to
> compile. I was wondering why and I found that there were a lot of #includes in
> CWindow.h (as in many other .h files) :
>
> #include<QMoveEvent>
> #include<QCloseEvent>
> #include<QShowEvent>
> #include<QResizeEvent>
> #include<QKeyEvent>
> #include<QMainWindow>
> #include<QHash>
> #include<QList>
> #include<QMenuBar>
> #include<QEvent>
> #include<QPushButton>
> #include<QSizeGrip>
> #include<QPoint>
>
> ... but in the whole CWindow.h file I haven't found any reference to
> QMoveEvent, QCloseEvent, QMainWindow, QMenuBar, QPushButton ... and others.
>
> So my question is : why include all these files ? Is there some hidden stuff or
> other things that I don't know ? :-)
>
> Regards,
> Adrien.
>

You can try to remove some of them and see if it compiles. I never 
checked that.

Many of these includes were added by the Qt3 -> Qt4 converter when gb.qt 
was transformed into gb.qt4.

Regards,

-- 
Benoît Minisini




More information about the User mailing list