Compile fix - qxcbconnection.cpp (‘Display’ was not declared)

To avoid getting
qxcbconnection.cpp:89:29: error: ‘Display’ was not declared in this scope

Platform linux - configured with
./configure -nokia-developer -nomake examples -nomake demos -nomake tests -no-gtkstyle -no-v8

Change-Id: Ief7315bb8aa67c6454cdeddb1c02e60ea79801b5
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
bb10
Thorbjørn Lund Martsum 2011-12-08 07:47:40 +01:00 committed by Qt by Nokia
parent a3b3cfe3b8
commit 4465fdd166
1 changed files with 2 additions and 0 deletions

View File

@ -86,10 +86,12 @@ extern "C" {
QT_BEGIN_NAMESPACE
#ifdef XCB_USE_XLIB
static int nullErrorHandler(Display *, XErrorEvent *)
{
return 0;
}
#endif
QXcbConnection::QXcbConnection(const char *displayName)
: m_displayName(displayName ? QByteArray(displayName) : qgetenv("DISPLAY"))