diff options
Diffstat (limited to 'kbugbuster/kresources')
-rw-r--r-- | kbugbuster/kresources/kcalresource.cpp | 30 | ||||
-rw-r--r-- | kbugbuster/kresources/kcalresource.h | 10 | ||||
-rw-r--r-- | kbugbuster/kresources/kcalresourceconfig.cpp | 14 | ||||
-rw-r--r-- | kbugbuster/kresources/kcalresourceconfig.h | 2 |
4 files changed, 28 insertions, 28 deletions
diff --git a/kbugbuster/kresources/kcalresource.cpp b/kbugbuster/kresources/kcalresource.cpp index c27e8e51..5af8b8be 100644 --- a/kbugbuster/kresources/kcalresource.cpp +++ b/kbugbuster/kresources/kcalresource.cpp @@ -22,9 +22,9 @@ #include <typeinfo> #include <stdlib.h> -#include <qdatetime.h> -#include <qstring.h> -#include <qptrlist.h> +#include <tqdatetime.h> +#include <tqstring.h> +#include <tqptrlist.h> #include <kdebug.h> #include <kurl.h> @@ -117,9 +117,9 @@ void KCalResource::writeConfig( KConfig *config ) mPrefs->writeConfig(); } -QString KCalResource::cacheFile() +TQString KCalResource::cacheFile() { - QString file = locateLocal( "cache", "kcal/kresources/" + identifier() ); + TQString file = locateLocal( "cache", "kcal/kresources/" + identifier() ); kdDebug() << "KCalResource::cacheFile(): " << file << endl; return file; } @@ -157,8 +157,8 @@ bool KCalResource::doLoad() BugSystem *kbb = BugSystem::self(); kdDebug() << "KNOWN SERVERS:" << endl; - QValueList<BugServer *> servers = kbb->serverList(); - QValueList<BugServer *>::ConstIterator it; + TQValueList<BugServer *> servers = kbb->serverList(); + TQValueList<BugServer *>::ConstIterator it; for( it = servers.begin(); it != servers.end(); ++it ) { kdDebug() << " " << (*it)->identifier() << endl; } @@ -175,9 +175,9 @@ bool KCalResource::doLoad() Package package = kbb->package( mPrefs->product() ); - connect( kbb, SIGNAL( bugListAvailable( const Package &, const QString &, + connect( kbb, TQT_SIGNAL( bugListAvailable( const Package &, const TQString &, const Bug::List & ) ), - SLOT( slotBugListAvailable( const Package &, const QString &, + TQT_SLOT( slotBugListAvailable( const Package &, const TQString &, const Bug::List & ) ) ); kbb->retrieveBugList( package, mPrefs->component() ); @@ -185,14 +185,14 @@ bool KCalResource::doLoad() return true; } -void KCalResource::slotBugListAvailable( const Package &, const QString &, +void KCalResource::slotBugListAvailable( const Package &, const TQString &, const Bug::List &bugs ) { kdDebug() << "KCalResource::slotBugListAvailable()" << endl; if ( bugs.isEmpty() ) return; - QString masterUid = "kbb_" + BugSystem::self()->server()->identifier(); + TQString masterUid = "kbb_" + BugSystem::self()->server()->identifier(); KCal::Todo *masterTodo = mCalendar.todo( masterUid ); if ( !masterTodo ) { masterTodo = new KCal::Todo; @@ -205,13 +205,13 @@ void KCalResource::slotBugListAvailable( const Package &, const QString &, for( it = bugs.begin(); it != bugs.end(); ++it ) { Bug bug = *it; kdDebug() << " Bug " << bug.number() << ": " << bug.title() << endl; - QString uid = "KBugBuster_" + bug.number(); + TQString uid = "KBugBuster_" + bug.number(); KCal::Todo *newTodo = 0; KCal::Todo *todo = mCalendar.todo( uid ); if ( !todo ) { newTodo = new KCal::Todo; newTodo->setUid( uid ); - QString uri = "http://bugs.kde.org/show_bug.cgi?id=%1"; + TQString uri = "http://bugs.kde.org/show_bug.cgi?id=%1"; newTodo->addAttachment( new KCal::Attachment( uri.arg( bug.number() ) ) ); todo = newTodo; } @@ -268,8 +268,8 @@ bool KCalResource::doSave() mCalendar.save( cacheFile() ); mUploadJob = KIO::file_copy( KURL( cacheFile() ), mUploadUrl, -1, true ); - connect( mUploadJob, SIGNAL( result( KIO::Job * ) ), - SLOT( slotSaveJobResult( KIO::Job * ) ) ); + connect( mUploadJob, TQT_SIGNAL( result( KIO::Job * ) ), + TQT_SLOT( slotSaveJobResult( KIO::Job * ) ) ); return true; } diff --git a/kbugbuster/kresources/kcalresource.h b/kbugbuster/kresources/kcalresource.h index 19270a74..b9683d7e 100644 --- a/kbugbuster/kresources/kcalresource.h +++ b/kbugbuster/kresources/kcalresource.h @@ -21,9 +21,9 @@ #ifndef KCALRESOURCE_H #define KCALRESOURCE_H -#include <qptrlist.h> -#include <qstring.h> -#include <qdatetime.h> +#include <tqptrlist.h> +#include <tqstring.h> +#include <tqdatetime.h> #include <kurl.h> #include <kconfig.h> @@ -76,7 +76,7 @@ class KCalResource : public KCal::ResourceCached /** Return name of file used as cache for remote file. */ - QString cacheFile(); + TQString cacheFile(); KABC::Lock *lock(); @@ -85,7 +85,7 @@ class KCalResource : public KCal::ResourceCached void dump() const; protected slots: - void slotBugListAvailable( const Package &, const QString &, + void slotBugListAvailable( const Package &, const TQString &, const Bug::List &bugs ); void slotLoadJobResult( KIO::Job * ); diff --git a/kbugbuster/kresources/kcalresourceconfig.cpp b/kbugbuster/kresources/kcalresourceconfig.cpp index 008aa8c9..58466642 100644 --- a/kbugbuster/kresources/kcalresourceconfig.cpp +++ b/kbugbuster/kresources/kcalresourceconfig.cpp @@ -21,8 +21,8 @@ #include <typeinfo> -#include <qlabel.h> -#include <qlayout.h> +#include <tqlabel.h> +#include <tqlayout.h> #include <klineedit.h> #include <klocale.h> @@ -34,29 +34,29 @@ #include "resourceprefs.h" #include "kcalresourceconfig.h" -KCalResourceConfig::KCalResourceConfig( QWidget* parent, const char* name ) +KCalResourceConfig::KCalResourceConfig( TQWidget* parent, const char* name ) : KRES::ConfigWidget( parent, name ) { resize( 245, 115 ); - QGridLayout *mainLayout = new QGridLayout( this, 2, 2 ); + TQGridLayout *mainLayout = new TQGridLayout( this, 2, 2 ); mainLayout->setSpacing( KDialog::spacingHint() ); - QLabel *label = new QLabel( i18n("Server:"), this ); + TQLabel *label = new TQLabel( i18n("Server:"), this ); mainLayout->addWidget( label, 0, 0 ); mServerEdit = new KLineEdit( this ); mainLayout->addWidget( mServerEdit, 0, 1 ); - label = new QLabel( i18n("Product:"), this ); + label = new TQLabel( i18n("Product:"), this ); mainLayout->addWidget( label, 1, 0 ); mProductEdit = new KLineEdit( this ); mainLayout->addWidget( mProductEdit, 1, 1 ); - label = new QLabel( i18n("Component:"), this ); + label = new TQLabel( i18n("Component:"), this ); mainLayout->addWidget( label, 2, 0 ); mComponentEdit = new KLineEdit( this ); diff --git a/kbugbuster/kresources/kcalresourceconfig.h b/kbugbuster/kresources/kcalresourceconfig.h index 1381f9d9..6a83ad67 100644 --- a/kbugbuster/kresources/kcalresourceconfig.h +++ b/kbugbuster/kresources/kcalresourceconfig.h @@ -35,7 +35,7 @@ class KCalResourceConfig : public KRES::ConfigWidget { Q_OBJECT public: - KCalResourceConfig( QWidget *parent = 0, const char *name = 0 ); + KCalResourceConfig( TQWidget *parent = 0, const char *name = 0 ); public slots: virtual void loadSettings( KRES::Resource *resource ); |