diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-03-02 02:13:02 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-03-02 02:13:02 -0600 |
commit | 8bd291c0e8a9d8b6eec6f5217e4d5c2f1fd06b96 (patch) | |
tree | bf71d4bfa94d0561e80456400ae5fe2bb501fbd8 /konqueror | |
parent | e8a1cdc01d38125bea12d5494db977ae6429919a (diff) | |
download | tdebase-8bd291c0e8a9d8b6eec6f5217e4d5c2f1fd06b96.tar.gz tdebase-8bd291c0e8a9d8b6eec6f5217e4d5c2f1fd06b96.zip |
Rename additional global functions and variables for tqt3
Diffstat (limited to 'konqueror')
-rw-r--r-- | konqueror/KonquerorIface.cc | 2 | ||||
-rw-r--r-- | konqueror/client/kfmclient.cc | 8 | ||||
-rw-r--r-- | konqueror/konq_main.cc | 2 | ||||
-rw-r--r-- | konqueror/konq_mainwindow.cc | 20 |
4 files changed, 16 insertions, 16 deletions
diff --git a/konqueror/KonquerorIface.cc b/konqueror/KonquerorIface.cc index ce945d832..b726f759b 100644 --- a/konqueror/KonquerorIface.cc +++ b/konqueror/KonquerorIface.cc @@ -241,7 +241,7 @@ void KonquerorIface::comboCleared( TQCString objId ) bool KonquerorIface::processCanBeReused( int screen ) { - if( qt_xscreen() != screen ) + if( tqt_xscreen() != screen ) return false; // this instance run on different screen, and Qt apps can't migrate if( KonqMainWindow::isPreloaded()) return false; // will be handled by preloading related code instead diff --git a/konqueror/client/kfmclient.cc b/konqueror/client/kfmclient.cc index 99a4a82a1..e2d07c0dd 100644 --- a/konqueror/client/kfmclient.cc +++ b/konqueror/client/kfmclient.cc @@ -232,8 +232,8 @@ static bool startNewKonqueror( TQString url, TQString mimetype, const TQString& static int currentScreen() { - if( qt_xdisplay() != NULL ) - return qt_xscreen(); + if( tqt_xdisplay() != NULL ) + return tqt_xscreen(); // case when there's no KApplication instance const char* env = getenv( "DISPLAY" ); if( env == NULL ) @@ -286,12 +286,12 @@ void clientApp::sendASNChange() KStartupInfoData data; data.addPid( 0 ); // say there's another process for this ASN with unknown PID data.setHostname(); // ( no need to bother to get this konqy's PID ) - Display* dpy = qt_xdisplay(); + Display* dpy = tqt_xdisplay(); if( dpy == NULL ) // we may be running without TQApplication here dpy = XOpenDisplay( NULL ); if( dpy != NULL ) KStartupInfo::sendChangeX( dpy, id, data ); - if( dpy != NULL && dpy != qt_xdisplay()) + if( dpy != NULL && dpy != tqt_xdisplay()) XCloseDisplay( dpy ); } diff --git a/konqueror/konq_main.cc b/konqueror/konq_main.cc index 3f3e47bc3..6e98bf104 100644 --- a/konqueror/konq_main.cc +++ b/konqueror/konq_main.cc @@ -133,7 +133,7 @@ extern "C" KDE_EXPORT int kdemain( int argc, char **argv ) { DCOPRef ref( "kded", "konqy_preloader" ); if( !ref.callExt( "registerPreloadedKonqy", DCOPRef::NoEventLoop, 5000, - app.dcopClient()->appId(), qt_xscreen())) + app.dcopClient()->appId(), tqt_xscreen())) return 0; // too many preloaded or failed KonqMainWindow* win = new KonqMainWindow( KURL(), false ); // prepare an empty window too // KonqMainWindow ctor sets always the preloaded flag to false, so create the window before this diff --git a/konqueror/konq_mainwindow.cc b/konqueror/konq_mainwindow.cc index e0196ee06..f6f4759e9 100644 --- a/konqueror/konq_mainwindow.cc +++ b/konqueror/konq_mainwindow.cc @@ -1295,7 +1295,7 @@ void KonqMainWindow::slotCreateNewWindow( const KURL &url, const KParts::URLArgs Time saved_last_input_time = GET_QT_X_USER_TIME(); if ( windowArgs.lowerWindow ) { - NETRootInfo wm_info( qt_xdisplay(), NET::Supported ); + NETRootInfo wm_info( tqt_xdisplay(), NET::Supported ); wm_usertime_support = wm_info.isSupported( NET::WM2UserTime ); if( wm_usertime_support ) { @@ -5803,28 +5803,28 @@ void KonqMainWindow::resetWindow() char data[ 1 ]; // empty append to get current X timestamp TQWidget tmp_widget; - XChangeProperty( qt_xdisplay(), tmp_widget.winId(), XA_WM_CLASS, XA_STRING, 8, + XChangeProperty( tqt_xdisplay(), tmp_widget.winId(), XA_WM_CLASS, XA_STRING, 8, PropModeAppend, (unsigned char*) &data, 0 ); XEvent ev; - XWindowEvent( qt_xdisplay(), tmp_widget.winId(), PropertyChangeMask, &ev ); + XWindowEvent( tqt_xdisplay(), tmp_widget.winId(), PropertyChangeMask, &ev ); long x_time = ev.xproperty.time; // bad hack - without updating the _KDE_NET_WM_USER_CREATION_TIME property, // KWin will apply don't_steal_focus to this window, and will not make it active // (shows mainly with 'konqueror --preload') - static Atom atom = XInternAtom( qt_xdisplay(), "_KDE_NET_WM_USER_CREATION_TIME", False ); - XChangeProperty( qt_xdisplay(), winId(), atom, XA_CARDINAL, 32, + static Atom atom = XInternAtom( tqt_xdisplay(), "_KDE_NET_WM_USER_CREATION_TIME", False ); + XChangeProperty( tqt_xdisplay(), winId(), atom, XA_CARDINAL, 32, PropModeReplace, (unsigned char *) &x_time, 1); SET_QT_X_USER_TIME(CurrentTime); // won't have _NET_WM_USER_TIME set #if !KDE_IS_VERSION( 3, 2, 90 ) // _KDE_NET_USER_TIME is obsolete - static Atom atom2 = XInternAtom( qt_xdisplay(), "_KDE_NET_USER_TIME", False ); + static Atom atom2 = XInternAtom( tqt_xdisplay(), "_KDE_NET_USER_TIME", False ); timeval tv; gettimeofday( &tv, NULL ); unsigned long now = tv.tv_sec * 10 + tv.tv_usec / 100000; - XChangeProperty(qt_xdisplay(), winId(), atom2, XA_CARDINAL, + XChangeProperty(tqt_xdisplay(), winId(), atom2, XA_CARDINAL, 32, PropModeReplace, (unsigned char *)&now, 1); #endif - static Atom atom3 = XInternAtom( qt_xdisplay(), "_NET_WM_USER_TIME", False ); - XDeleteProperty( qt_xdisplay(), winId(), atom3 ); + static Atom atom3 = XInternAtom( tqt_xdisplay(), "_NET_WM_USER_TIME", False ); + XDeleteProperty( tqt_xdisplay(), winId(), atom3 ); // Qt remembers the iconic state if the window was withdrawn while on another virtual desktop clearWState( WState_Minimized ); ignoreInitialGeometry(); @@ -5866,7 +5866,7 @@ bool KonqMainWindow::stayPreloaded() return false; DCOPRef ref( "kded", "konqy_preloader" ); if( !ref.callExt( "registerPreloadedKonqy", DCOPRef::NoEventLoop, 5000, - kapp->dcopClient()->appId(), qt_xscreen())) + kapp->dcopClient()->appId(), tqt_xscreen())) { return false; } |