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..."
// FIXME: this form should be used starting from KDE 3.2
unsigned long l = NET::CurrentDesktop;
NETRootInfo rinfo( qt_xdisplay(), &l ,1 ,-1,true);
NETRootInfo rinfo( tqt_xdisplay(), &l ,1 ,-1,true);
#else
NETRootInfo rinfo(qt_xdisplay(),NET::CurrentDesktop);
NETRootInfo rinfo(tqt_xdisplay(),NET::CurrentDesktop);
#endif
rinfo.activate();
@ -1289,7 +1289,7 @@ void KviApp::kdeRootPixmapChanged(int iDesktop)
#ifdef COMPILE_PSEUDO_TRANSPARENCY
#ifdef COMPILE_TDE_SUPPORT
if(!KVI_OPTION_BOOL(KviOption_boolUpdateKdeBackgroundOnChange))return;
NETRootInfo rinfo(qt_xdisplay(),NET::CurrentDesktop);
NETRootInfo rinfo(tqt_xdisplay(),NET::CurrentDesktop);
rinfo.activate();
if(iDesktop == rinfo.currentDesktop())
updatePseudoTransparency();

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

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

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

@ -101,7 +101,7 @@ int IdlePlatform::secondsIdle()
#ifdef COMPILE_USE_QT4
if(!XScreenSaverQueryInfo(TQT_TQPAINTDEVICE(TQApplication::desktop()->screen())->x11Display(), QX11Info::appRootWindow(), d->ss_info))
#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
return 0;
return d->ss_info->idle / 1000;

Loading…
Cancel
Save