summaryrefslogtreecommitdiffstats
path: root/src/newstuff/providerloader.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-02 06:40:27 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-02 06:40:27 +0000
commit2595a15ebeb6fc46b7cb241d01ec0c2460ec2111 (patch)
tree18a8f0f4ac5a86dacfa74c3537551ec39bc85e75 /src/newstuff/providerloader.h
parent1d90725a4001fab9d3922b2cbcceeee5e2d1686f (diff)
downloadtellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.tar.gz
tellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.zip
TQt4 port tellico
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/tellico@1239054 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/newstuff/providerloader.h')
-rw-r--r--src/newstuff/providerloader.h27
1 files changed, 14 insertions, 13 deletions
diff --git a/src/newstuff/providerloader.h b/src/newstuff/providerloader.h
index 3d2968c..a492dcc 100644
--- a/src/newstuff/providerloader.h
+++ b/src/newstuff/providerloader.h
@@ -21,8 +21,8 @@
#ifndef TELLICO_NEWSTUFF_PROVIDERLOADER_H
#define TELLICO_NEWSTUFF_PROVIDERLOADER_H
-#include <qobject.h>
-#include <qptrlist.h>
+#include <tqobject.h>
+#include <tqptrlist.h>
namespace KIO {
class Job;
@@ -34,15 +34,16 @@ namespace KNS {
namespace Tellico {
namespace NewStuff {
-class ProviderLoader : public QObject {
+class ProviderLoader : public TQObject {
Q_OBJECT
+ TQ_OBJECT
public:
/**
* Constructor.
*
- * @param parentWidget the parent widget
+ * @param tqparentWidget the tqparent widget
*/
- ProviderLoader( QWidget *parentWidget );
+ ProviderLoader( TQWidget *tqparentWidget );
/**
* Starts asynchronously loading the list of providers of the
@@ -53,29 +54,29 @@ public:
* we first try the ProvidersUrl from KGlobal::config, then we
* fall back to a hardcoded value.
*/
- void load( const QString &type, const QString &providerList = QString::null );
+ void load( const TQString &type, const TQString &providerList = TQString() );
- void setAlternativeProvider(const QString& alt) { mAltProvider = alt; }
+ void setAlternativeProvider(const TQString& alt) { mAltProvider = alt; }
signals:
/**
* Indicates that the list of providers has been successfully loaded.
*/
- void providersLoaded( QPtrList<KNS::Provider>* );
+ void providersLoaded( TQPtrList<KNS::Provider>* );
void percent(KIO::Job *job, unsigned long percent);
void error();
protected slots:
- void slotJobData( KIO::Job *, const QByteArray & );
+ void slotJobData( KIO::Job *, const TQByteArray & );
void slotJobResult( KIO::Job * );
private:
- QWidget *mParentWidget;
+ TQWidget *mParentWidget;
- QString mJobData;
+ TQString mJobData;
- QPtrList<KNS::Provider> mProviders;
- QString mAltProvider;
+ TQPtrList<KNS::Provider> mProviders;
+ TQString mAltProvider;
bool mTryAlt;
};