From 2595a15ebeb6fc46b7cb241d01ec0c2460ec2111 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 2 Jul 2011 06:40:27 +0000 Subject: 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 --- src/fetch/citebasefetcher.h | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) (limited to 'src/fetch/citebasefetcher.h') diff --git a/src/fetch/citebasefetcher.h b/src/fetch/citebasefetcher.h index a292107..b91433b 100644 --- a/src/fetch/citebasefetcher.h +++ b/src/fetch/citebasefetcher.h @@ -20,8 +20,8 @@ #include -#include // for QByteArray -#include +#include // for TQByteArray +#include namespace Tellico { namespace Fetch { @@ -31,14 +31,15 @@ namespace Tellico { */ class CitebaseFetcher : public Fetcher { Q_OBJECT + TQ_OBJECT public: - CitebaseFetcher(QObject* parent); + CitebaseFetcher(TQObject* tqparent); ~CitebaseFetcher(); - virtual QString source() const; + virtual TQString source() const; virtual bool isSearching() const { return m_started; } - virtual void search(FetchKey key, const QString& value); + virtual void search(FetchKey key, const TQString& value); virtual bool canSearch(FetchKey k) const { return k == ArxivID; } virtual void stop(); @@ -50,31 +51,31 @@ public: virtual void updateEntry(Data::EntryPtr entry); virtual void updateEntrySynchronous(Data::EntryPtr entry); - virtual Fetch::ConfigWidget* configWidget(QWidget* parent) const; + virtual Fetch::ConfigWidget* configWidget(TQWidget* tqparent) const; class ConfigWidget : public Fetch::ConfigWidget { public: - ConfigWidget(QWidget* parent_, const CitebaseFetcher* fetcher = 0); + ConfigWidget(TQWidget* tqparent_, const CitebaseFetcher* fetcher = 0); virtual void saveConfig(KConfigGroup& config); - virtual QString preferredName() const; + virtual TQString preferredName() const; }; friend class ConfigWidget; - static QString defaultName(); + static TQString defaultName(); private slots: - void slotData(KIO::Job* job, const QByteArray& data); + void slotData(KIO::Job* job, const TQByteArray& data); void slotComplete(KIO::Job* job); private: - KURL searchURL(FetchKey key, const QString& value) const; + KURL searchURL(FetchKey key, const TQString& value) const; - QByteArray m_data; - QMap m_entries; - QGuardedPtr m_job; + TQByteArray m_data; + TQMap m_entries; + TQGuardedPtr m_job; FetchKey m_key; - QString m_value; + TQString m_value; bool m_started; }; -- cgit v1.2.1