On Mon, Feb 01, 2010 at 07:00:48AM +0100, kor...@lyx.org wrote: > Author: kornel > Date: Mon Feb 1 07:00:46 2010 > New Revision: 33308 > URL: http://www.lyx.org/trac/changeset/33308 > > Log: > Make it compilable for QT4.3. (/usr/include/QtGui/qtreeview.h:51: error: > forward declaration of ‘struct QHeaderView’)
So, why not simply including QHeaderView instead of QtGui (which brings in an awful lot of other includes)? > Modified: > lyx-devel/trunk/src/frontends/qt4/GuiRef.cpp > > Modified: lyx-devel/trunk/src/frontends/qt4/GuiRef.cpp > ============================================================================== > --- lyx-devel/trunk/src/frontends/qt4/GuiRef.cpp Mon Feb 1 02:14:00 > 2010 (r33307) > +++ lyx-devel/trunk/src/frontends/qt4/GuiRef.cpp Mon Feb 1 07:00:46 > 2010 (r33308) > @@ -32,6 +32,7 @@ > #include <QPushButton> > #include <QToolTip> > #include <QCloseEvent> > +#include <QtGui> > > using namespace std; > using namespace lyx::support; -- Enrico