diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-19 01:42:14 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-19 01:42:14 +0000 |
commit | 8155225c9be993acc0512956416d195edfef4eb9 (patch) | |
tree | de4f3cd17614fc67e47eefabcdbe2fbe170c9be7 /kcontrol/input/kapplymousetheme.cpp | |
parent | 364641b8e0279758d236af39abd138d379328a19 (diff) | |
download | tdebase-8155225c9be993acc0512956416d195edfef4eb9.tar.gz tdebase-8155225c9be993acc0512956416d195edfef4eb9.zip |
Enable compilation with TQt for Qt4 3.4.0 TP2
This should not break compatibility with TQt for Qt3; if it does please fix it ASAP!
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1215552 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kcontrol/input/kapplymousetheme.cpp')
-rw-r--r-- | kcontrol/input/kapplymousetheme.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/kcontrol/input/kapplymousetheme.cpp b/kcontrol/input/kapplymousetheme.cpp index 99d6d1077..4cc1a8b4f 100644 --- a/kcontrol/input/kapplymousetheme.cpp +++ b/kcontrol/input/kapplymousetheme.cpp @@ -35,8 +35,8 @@ #endif static Display* dpy; -static Display* qt_xdisplay() { return dpy; }\ -static Window qt_xrootwin() { return DefaultRootWindow( dpy ); } +static Display* trinity_qt_xdisplay() { return dpy; }\ +static Window trinity_qt_xrootwin() { return DefaultRootWindow( dpy ); } bool isEmpty( const char* str ) { @@ -63,8 +63,8 @@ int main( int argc, char* argv[] ) // use a default value for theme only if it's not configured at all, not even in X resources if( isEmpty( theme ) - && isEmpty( XGetDefault( qt_xdisplay(), "Xcursor", "theme" )) - && isEmpty( XcursorGetTheme( qt_xdisplay()))) + && isEmpty( XGetDefault( trinity_qt_xdisplay(), "Xcursor", "theme" )) + && isEmpty( XcursorGetTheme( trinity_qt_xdisplay()))) { theme = "default"; ret = 10; // means to switch to default @@ -72,19 +72,19 @@ int main( int argc, char* argv[] ) // Apply the KDE cursor theme to ourselves if( !isEmpty( theme )) - XcursorSetTheme(qt_xdisplay(), theme ); + XcursorSetTheme(trinity_qt_xdisplay(), theme ); if (!isEmpty( size )) - XcursorSetDefaultSize(qt_xdisplay(), atoi( size )); + XcursorSetDefaultSize(trinity_qt_xdisplay(), atoi( size )); // Load the default cursor from the theme and apply it to the root window. - Cursor handle = XcursorLibraryLoadCursor(qt_xdisplay(), "left_ptr"); - XDefineCursor(qt_xdisplay(), qt_xrootwin(), handle); - XFreeCursor(qt_xdisplay(), handle); // Don't leak the cursor + Cursor handle = XcursorLibraryLoadCursor(trinity_qt_xdisplay(), "left_ptr"); + XDefineCursor(trinity_qt_xdisplay(), trinity_qt_xrootwin(), handle); + XFreeCursor(trinity_qt_xdisplay(), handle); // Don't leak the cursor #else - ( void ) qt_xdisplay(); - ( void ) qt_xrootwin(); + ( void ) trinity_qt_xdisplay(); + ( void ) trinity_qt_xrootwin(); ( void ) argv; #endif XCloseDisplay( dpy ); |