Errors with description QSessionManager

Submitted by Polik on 2008-05-03

Kubuntu 7.10; Qt4.3.4
./configure well done
but for attemt make i get:

cd src/ && make -f Makefile
make[1]: Entering directory `/home/webissues-0.9.2/src'
g++ -c -pipe -O2 -D_REENTRANT -Wall -W -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Trolltech/Qt-4.3.4/mkspecs/linux-g++ -I. -I/usr/local/Trolltech/Qt-4.3.4/include/QtCore -I/usr/local/Trolltech/Qt-4.3.4/include/QtCore -I/usr/local/Trolltech/Qt-4.3.4/include/QtNetwork -I/usr/local/Trolltech/Qt-4.3.4/include/QtNetwork -I/usr/local/Trolltech/Qt-4.3.4/include/QtGui -I/usr/local/Trolltech/Qt-4.3.4/include/QtGui -I/usr/local/Trolltech/Qt-4.3.4/include/QtXml -I/usr/local/Trolltech/Qt-4.3.4/include/QtXml -I/usr/local/Trolltech/Qt-4.3.4/include -I. -Irelease -I. -o release/application.o application.cpp
application.cpp: In member function ‘void WebIssues::Application::commitData(QSessionManager&)’:
application.cpp:99: error: invalid use of undefined type ‘struct QSessionManager’
/usr/local/Trolltech/Qt-4.3.4/include/QtGui/qapplication.h:68: error: forward declaration of ‘struct QSessionManager’
application.cpp:101: error: invalid use of undefined type ‘struct QSessionManager’
/usr/local/Trolltech/Qt-4.3.4/include/QtGui/qapplication.h:68: error: forward declaration of ‘struct QSessionManager’
make[1]: *** [release/application.o] Error 1
make[1]: Leaving directory `/home/webissues-0.9.2/src'
make: *** [sub-src-make_default] Error 2

It's quite strange, because application.cpp includes the QSessionManager header. Perhaps your version of Qt is configured with session management disabled for some reason. If that's the case, the following modification would fix this:

void Application::commitData( QSessionManager& manager )
{
#ifndef QT_NO_SESSIONMANAGER
    if ( manager.allowsInteraction() ) {
        if ( viewManager && !viewManager->queryCloseViews() )
            manager.cancel();
    }
#endif
}

Regards,
Michał