summaryrefslogtreecommitdiffstats
path: root/konqueror/preloader
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
commitc663b6440964f6ac48027143ac9e63298991f9d0 (patch)
tree6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /konqueror/preloader
parenta061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff)
downloadtdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz
tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'konqueror/preloader')
-rw-r--r--konqueror/preloader/preloader.cc26
-rw-r--r--konqueror/preloader/preloader.h20
2 files changed, 23 insertions, 23 deletions
diff --git a/konqueror/preloader/preloader.cc b/konqueror/preloader/preloader.cc
index a60604e86..23c1704d9 100644
--- a/konqueror/preloader/preloader.cc
+++ b/konqueror/preloader/preloader.cc
@@ -26,14 +26,14 @@
#include <dcopclient.h>
#include <kdebug.h>
-KonqyPreloader::KonqyPreloader( const QCString& obj )
+KonqyPreloader::KonqyPreloader( const TQCString& obj )
: KDEDModule( obj )
{
reconfigure();
- connect( kapp->dcopClient(), SIGNAL( applicationRemoved( const QCString& )),
- SLOT( appRemoved( const QCString& )));
- connect( &check_always_preloaded_timer, SIGNAL( timeout()),
- SLOT( checkAlwaysPreloaded()));
+ connect( kapp->dcopClient(), TQT_SIGNAL( applicationRemoved( const TQCString& )),
+ TQT_SLOT( appRemoved( const TQCString& )));
+ connect( &check_always_preloaded_timer, TQT_SIGNAL( timeout()),
+ TQT_SLOT( checkAlwaysPreloaded()));
}
KonqyPreloader::~KonqyPreloader()
@@ -41,7 +41,7 @@ KonqyPreloader::~KonqyPreloader()
updateCount();
}
-bool KonqyPreloader::registerPreloadedKonqy( QCString id, int screen )
+bool KonqyPreloader::registerPreloadedKonqy( TQCString id, int screen )
{
if( instances.count() >= (uint)KonqSettings::maxPreloadCount() )
return false;
@@ -49,7 +49,7 @@ bool KonqyPreloader::registerPreloadedKonqy( QCString id, int screen )
return true;
}
-QCString KonqyPreloader::getPreloadedKonqy( int screen )
+TQCString KonqyPreloader::getPreloadedKonqy( int screen )
{
if( instances.count() == 0 )
return "";
@@ -59,7 +59,7 @@ QCString KonqyPreloader::getPreloadedKonqy( int screen )
{
if( (*it).screen == screen )
{
- QCString ret = (*it).id;
+ TQCString ret = (*it).id;
instances.remove( it );
check_always_preloaded_timer.start( 5000, true );
return ret;
@@ -68,7 +68,7 @@ QCString KonqyPreloader::getPreloadedKonqy( int screen )
return "";
}
-void KonqyPreloader::unregisterPreloadedKonqy( QCString id_P )
+void KonqyPreloader::unregisterPreloadedKonqy( TQCString id_P )
{
for( InstancesList::Iterator it = instances.begin();
it != instances.end();
@@ -80,7 +80,7 @@ void KonqyPreloader::unregisterPreloadedKonqy( QCString id_P )
}
}
-void KonqyPreloader::appRemoved( const QCString& id )
+void KonqyPreloader::appRemoved( const TQCString& id )
{
unregisterPreloadedKonqy( id );
}
@@ -109,8 +109,8 @@ void KonqyPreloader::updateCount()
{
if( !check_always_preloaded_timer.isActive())
{
- if( kapp->kdeinitExec( QString::fromLatin1( "konqueror" ),
- QStringList() << QString::fromLatin1( "--preload" ), NULL, NULL, "0" ) == 0 )
+ if( kapp->kdeinitExec( TQString::fromLatin1( "konqueror" ),
+ TQStringList() << TQString::fromLatin1( "--preload" ), NULL, NULL, "0" ) == 0 )
{
kdDebug( 1202 ) << "Preloading Konqueror instance" << endl;
check_always_preloaded_timer.start( 5000, true );
@@ -143,7 +143,7 @@ void KonqyPreloader::unloadAllPreloaded()
}
extern "C"
-KDE_EXPORT KDEDModule *create_konqy_preloader( const QCString& obj )
+KDE_EXPORT KDEDModule *create_konqy_preloader( const TQCString& obj )
{
return new KonqyPreloader( obj );
}
diff --git a/konqueror/preloader/preloader.h b/konqueror/preloader/preloader.h
index 2a667e462..c2767522b 100644
--- a/konqueror/preloader/preloader.h
+++ b/konqueror/preloader/preloader.h
@@ -21,7 +21,7 @@
#define _KONQUEROR_PRELOADER_H
#include <kdedmodule.h>
-#include <qtimer.h>
+#include <tqtimer.h>
class KonqyPreloader
: public KDEDModule
@@ -29,30 +29,30 @@ class KonqyPreloader
Q_OBJECT
K_DCOP
public:
- KonqyPreloader( const QCString& obj );
+ KonqyPreloader( const TQCString& obj );
virtual ~KonqyPreloader();
k_dcop:
- bool registerPreloadedKonqy( QCString id, int screen );
- QCString getPreloadedKonqy( int screen );
- ASYNC unregisterPreloadedKonqy( QCString id );
+ bool registerPreloadedKonqy( TQCString id, int screen );
+ TQCString getPreloadedKonqy( int screen );
+ ASYNC unregisterPreloadedKonqy( TQCString id );
void reconfigure();
void unloadAllPreloaded();
private slots:
- void appRemoved( const QCString& id );
+ void appRemoved( const TQCString& id );
void checkAlwaysPreloaded();
private:
void updateCount();
struct KonqyData
{
KonqyData() {}; // for QValueList
- KonqyData( const QCString& id_P, int screen_P )
+ KonqyData( const TQCString& id_P, int screen_P )
: id( id_P ), screen( screen_P ) {}
- QCString id;
+ TQCString id;
int screen;
};
- typedef QValueList< KonqyData > InstancesList;
+ typedef TQValueList< KonqyData > InstancesList;
InstancesList instances;
- QTimer check_always_preloaded_timer;
+ TQTimer check_always_preloaded_timer;
};
#endif