[texworks] r447 breaks Qt 4.4 compatibility

Jonathan Kew jfkthame at googlemail.com
Wed Oct 7 10:32:49 CEST 2009


On 7 Oct 2009, at 06:43, Stefan Löffler wrote:
>
>
> I did rebuild the packages now. The scripttools indeed only produced a
> warning. However, on pre 4.5 versions (Ubuntu hardy and intrepid) the
> build failed with several errors similar to:
> src/TeXDocument.cpp:2173: error: invalid use of incomplete type  
> 'struct
> QHeaderView'
> /usr/include/qt4/QtGui/qtableview.h:51: error: forward declaration of
> 'struct QHeaderView'
> (see
> http://launchpadlibrarian.net/33201095/buildlog_ubuntu-intrepid-lpia.texworks_0.3.0 
> ~svn450~intrepid1_FAILEDTOBUILD.txt.gz)
>
> Curiously, the 4.5 builds (Ubuntu jaunty a karmic) succeeded without
> problem. Apparently, some Qt includes have changed in that version. I
> patched the build system now by simply explicitly #include'ing
> <QHeaderView>. I suggest you also do that in the repository. With  
> that,
> the builds succeeded (finally ;)).

Apparently with 4.5, QHeaderView must be included indirectly, probably  
via QTableView or something like that.

I've added the explicit #include, so it should go more smoothly now.  
Thanks for looking into this.

JK





More information about the texworks mailing list