Qt3 compilation fix

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/dependencies/tqtinterface@1162848 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 14 years ago
parent 4e7d7fc5e8
commit 82d33e2724

@ -42,6 +42,8 @@ Boston, MA 02110-1301, USA.
#include <X11/Xos.h> #include <X11/Xos.h>
#include <X11/Xatom.h> #include <X11/Xatom.h>
#include <Qt/qcolormap.h>
/*! /*!
Returns the window system handle of the paint device for XRender Returns the window system handle of the paint device for XRender
support. Use of this function is not portable. This function will support. Use of this function is not portable. This function will
@ -75,8 +77,11 @@ static GC create_gc( int scrn, bool monochrome )
} else { } else {
Window w; Window w;
XSetWindowAttributes a; XSetWindowAttributes a;
a.background_pixel = Qt::black.pixel( scrn ); QColormap cmap_background = QColormap::instance( scrn );
a.border_pixel = Qt::black.pixel( scrn ); QColormap cmap_border = QColormap::instance( scrn );
a.background_pixel = cmap_background.pixel( Qt::black );
a.border_pixel = cmap_border.pixel( Qt::black );
a.colormap = QPaintDevice::x11AppColormap( scrn ); a.colormap = QPaintDevice::x11AppColormap( scrn );
w = XCreateWindow( appDpy, RootWindow( appDpy, scrn ), 0, 0, 100, 100, w = XCreateWindow( appDpy, RootWindow( appDpy, scrn ), 0, 0, 100, 100,
0, QPaintDevice::x11AppDepth( scrn ), InputOutput, 0, QPaintDevice::x11AppDepth( scrn ), InputOutput,

@ -65,7 +65,7 @@ Boston, MA 02110-1301, USA.
#define TQ_Key_Super_R Key_Super_R #define TQ_Key_Super_R Key_Super_R
#define TQ_Key_Hyper_L Key_Hyper_L #define TQ_Key_Hyper_L Key_Hyper_L
#define TQ_Key_Hyper_R Key_Hyper_R #define TQ_Key_Hyper_R Key_Hyper_R
#define TQ_ButtonState ButtonState #define TQ_ButtonState Qt::ButtonState
#define TQ_LeftButton LeftButton #define TQ_LeftButton LeftButton
#define TQ_MidButton MidButton #define TQ_MidButton MidButton
#define TQ_RightButton RightButton #define TQ_RightButton RightButton

Loading…
Cancel
Save