Rename additional global functions and variables for tqt3

pull/1/head
Timothy Pearson 13 years ago
parent e5b670cbac
commit 73f9b6918e

@ -1111,9 +1111,9 @@ void KviApp::fileDownloadTerminated(bool bSuccess,const TQString &szRemoteUrl,co
#warning "The following warning will disappear soon..." #warning "The following warning will disappear soon..."
// FIXME: this form should be used starting from KDE 3.2 // FIXME: this form should be used starting from KDE 3.2
unsigned long l = NET::CurrentDesktop; unsigned long l = NET::CurrentDesktop;
NETRootInfo rinfo( qt_xdisplay(), &l ,1 ,-1,true); NETRootInfo rinfo( tqt_xdisplay(), &l ,1 ,-1,true);
#else #else
NETRootInfo rinfo(qt_xdisplay(),NET::CurrentDesktop); NETRootInfo rinfo(tqt_xdisplay(),NET::CurrentDesktop);
#endif #endif
rinfo.activate(); rinfo.activate();
@ -1289,7 +1289,7 @@ void KviApp::kdeRootPixmapChanged(int iDesktop)
#ifdef COMPILE_PSEUDO_TRANSPARENCY #ifdef COMPILE_PSEUDO_TRANSPARENCY
#ifdef COMPILE_TDE_SUPPORT #ifdef COMPILE_TDE_SUPPORT
if(!KVI_OPTION_BOOL(KviOption_boolUpdateKdeBackgroundOnChange))return; if(!KVI_OPTION_BOOL(KviOption_boolUpdateKdeBackgroundOnChange))return;
NETRootInfo rinfo(qt_xdisplay(),NET::CurrentDesktop); NETRootInfo rinfo(tqt_xdisplay(),NET::CurrentDesktop);
rinfo.activate(); rinfo.activate();
if(iDesktop == rinfo.currentDesktop()) if(iDesktop == rinfo.currentDesktop())
updatePseudoTransparency(); updatePseudoTransparency();

@ -59,8 +59,8 @@
#define kvi_ipc_get_xdisplay QX11Info::display #define kvi_ipc_get_xdisplay QX11Info::display
#define kvi_ipc_get_xrootwin QX11Info::appRootWindow #define kvi_ipc_get_xrootwin QX11Info::appRootWindow
#else #else
#define kvi_ipc_get_xdisplay qt_xdisplay #define kvi_ipc_get_xdisplay tqt_xdisplay
#define kvi_ipc_get_xrootwin qt_xrootwin #define kvi_ipc_get_xrootwin tqt_xrootwin
#endif #endif
static Atom kvi_atom_ipc_sentinel_window; static Atom kvi_atom_ipc_sentinel_window;

@ -51,7 +51,7 @@
#include <tqx11info_x11.h> #include <tqx11info_x11.h>
#define get_xdisplay QX11Info::display #define get_xdisplay QX11Info::display
#else #else
#define get_xdisplay qt_xdisplay #define get_xdisplay tqt_xdisplay
#endif #endif
#endif #endif

@ -302,7 +302,7 @@ static const char * idlemsgs[NIDLEMSGS]=
}; };
#ifdef COMPILE_TDE_SUPPORT #ifdef COMPILE_TDE_SUPPORT
extern Time qt_x_time; extern Time tqt_x_time;
#endif #endif
void KviDockWidget::enterEvent( TQEvent* ) void KviDockWidget::enterEvent( TQEvent* )
@ -312,15 +312,15 @@ void KviDockWidget::enterEvent( TQEvent* )
{ {
XEvent ev; XEvent ev;
kvi_memset(&ev, 0, sizeof(ev)); kvi_memset(&ev, 0, sizeof(ev));
ev.xfocus.display = qt_xdisplay(); ev.xfocus.display = tqt_xdisplay();
ev.xfocus.type = XFocusIn; ev.xfocus.type = XFocusIn;
ev.xfocus.window = winId(); ev.xfocus.window = winId();
ev.xfocus.mode = NotifyNormal; ev.xfocus.mode = NotifyNormal;
ev.xfocus.detail = NotifyAncestor; ev.xfocus.detail = NotifyAncestor;
Time time = qt_x_time; Time time = tqt_x_time;
qt_x_time = 1; tqt_x_time = 1;
g_pApp->x11ProcessEvent( &ev ); g_pApp->x11ProcessEvent( &ev );
qt_x_time = time; tqt_x_time = time;
} }
#endif #endif
} }

@ -101,7 +101,7 @@ int IdlePlatform::secondsIdle()
#ifdef COMPILE_USE_QT4 #ifdef COMPILE_USE_QT4
if(!XScreenSaverQueryInfo(TQT_TQPAINTDEVICE(TQApplication::desktop()->screen())->x11Display(), QX11Info::appRootWindow(), d->ss_info)) if(!XScreenSaverQueryInfo(TQT_TQPAINTDEVICE(TQApplication::desktop()->screen())->x11Display(), QX11Info::appRootWindow(), d->ss_info))
#else #else
if(!XScreenSaverQueryInfo(TQT_TQPAINTDEVICE(TQApplication::desktop()->screen())->x11Display(), qt_xrootwin(), d->ss_info)) if(!XScreenSaverQueryInfo(TQT_TQPAINTDEVICE(TQApplication::desktop()->screen())->x11Display(), tqt_xrootwin(), d->ss_info))
#endif #endif
return 0; return 0;
return d->ss_info->idle / 1000; return d->ss_info->idle / 1000;

Loading…
Cancel
Save