From 8bd291c0e8a9d8b6eec6f5217e4d5c2f1fd06b96 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 2 Mar 2012 02:13:02 -0600 Subject: Rename additional global functions and variables for tqt3 --- ksmserver/legacy.cpp | 24 ++++++++++++------------ ksmserver/main.cpp | 4 ++-- ksmserver/server.cpp | 2 +- ksmserver/shutdowndlg.cpp | 6 +++--- ksmserver/startup.cpp | 8 ++++---- 5 files changed, 22 insertions(+), 22 deletions(-) (limited to 'ksmserver') diff --git a/ksmserver/legacy.cpp b/ksmserver/legacy.cpp index ec0ace402..ecef6423b 100644 --- a/ksmserver/legacy.cpp +++ b/ksmserver/legacy.cpp @@ -92,7 +92,7 @@ void KSMServer::performLegacySessionSave() Atom atoms[ 3 ]; const char* const names[] = { "WM_SAVE_YOURSELF", "WM_PROTOCOLS", "WM_CLIENT_LEADER" }; - XInternAtoms( qt_xdisplay(), const_cast< char** >( names ), 3, + XInternAtoms( tqt_xdisplay(), const_cast< char** >( names ), 3, False, atoms ); wm_save_yourself = atoms[ 0 ]; wm_protocols = atoms[ 1 ]; @@ -105,7 +105,7 @@ void KSMServer::performLegacySessionSave() SMType wtype = SM_WMCOMMAND; int nprotocols = 0; Atom *protocols = 0; - if( XGetWMProtocols(qt_xdisplay(), leader, &protocols, &nprotocols)) { + if( XGetWMProtocols(tqt_xdisplay(), leader, &protocols, &nprotocols)) { for (int i=0; isetGroup( "General" ); - int realScreenCount = ScreenCount( qt_xdisplay() ); + int realScreenCount = ScreenCount( tqt_xdisplay() ); bool screenCountChanged = ( config->readNumEntry( "screenCount", realScreenCount ) != realScreenCount ); diff --git a/ksmserver/server.cpp b/ksmserver/server.cpp index cacaabdfa..da6af4943 100644 --- a/ksmserver/server.cpp +++ b/ksmserver/server.cpp @@ -885,7 +885,7 @@ void KSMServer::storeSession() config->writeEntry( "count", count ); config->setGroup("General"); - config->writeEntry( "screenCount", ScreenCount(qt_xdisplay())); + config->writeEntry( "screenCount", ScreenCount(tqt_xdisplay())); storeLegacySession( config ); config->sync(); diff --git a/ksmserver/shutdowndlg.cpp b/ksmserver/shutdowndlg.cpp index 9a7e4ef04..cf2985ade 100644 --- a/ksmserver/shutdowndlg.cpp +++ b/ksmserver/shutdowndlg.cpp @@ -95,7 +95,7 @@ KSMShutdownFeedback::KSMShutdownFeedback() else { // The hacks below aren't needed any more because Qt3 supports true transparency for the fading logout screen when composition is available DCOPRef("kicker", "KMenu").call("hideMenu"); // Make sure the K Menu is completely removed from the screen before taking a snapshot... - m_grayImage = TQPixmap(TQPixmap::grabWindow(qt_xrootwin(), 0, 0, TQApplication::desktop()->width(), TQApplication::desktop()->height())).convertToImage(); + m_grayImage = TQPixmap(TQPixmap::grabWindow(tqt_xrootwin(), 0, 0, TQApplication::desktop()->width(), TQApplication::desktop()->height())).convertToImage(); } m_unfadedImage = m_grayImage; resize(0, 0); @@ -500,13 +500,13 @@ void KSMShutdownFeedback::slotPaintEffect() if ( m_currentY == 0 ) { KPixmap pixmap; - pixmap = TQPixmap(TQPixmap::grabWindow( qt_xrootwin(), 0, 0, width(), height() )); + pixmap = TQPixmap(TQPixmap::grabWindow( tqt_xrootwin(), 0, 0, width(), height() )); bitBlt( this, 0, 0, &pixmap ); bitBlt( &m_root, 0, 0, &pixmap ); } KPixmap pixmap; - pixmap = TQPixmap(TQPixmap::grabWindow( qt_xrootwin(), 0, m_currentY, width(), 10 )); + pixmap = TQPixmap(TQPixmap::grabWindow( tqt_xrootwin(), 0, m_currentY, width(), 10 )); TQImage image = pixmap.convertToImage(); KImageEffect::blend( Qt::black, image, 0.4 ); KImageEffect::toGray( image, true ); diff --git a/ksmserver/startup.cpp b/ksmserver/startup.cpp index eaee5f20c..7ef0fcc5f 100644 --- a/ksmserver/startup.cpp +++ b/ksmserver/startup.cpp @@ -467,13 +467,13 @@ void KSMServer::upAndRunning( const TQString& msg ) DCOPRef( "ksplash" ).send( "upAndRunning", msg ); XEvent e; e.xclient.type = ClientMessage; - e.xclient.message_type = XInternAtom( qt_xdisplay(), "_KDE_SPLASH_PROGRESS", False ); - e.xclient.display = qt_xdisplay(); - e.xclient.window = qt_xrootwin(); + e.xclient.message_type = XInternAtom( tqt_xdisplay(), "_KDE_SPLASH_PROGRESS", False ); + e.xclient.display = tqt_xdisplay(); + e.xclient.window = tqt_xrootwin(); e.xclient.format = 8; assert( strlen( msg.latin1()) < 20 ); strcpy( e.xclient.data.b, msg.latin1()); - XSendEvent( qt_xdisplay(), qt_xrootwin(), False, SubstructureNotifyMask, &e ); + XSendEvent( tqt_xdisplay(), tqt_xrootwin(), False, SubstructureNotifyMask, &e ); } // these two are in the DCOP interface but I have no idea what uses them -- cgit v1.2.3