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/googlescholarfetcher.h | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) (limited to 'src/fetch/googlescholarfetcher.h') diff --git a/src/fetch/googlescholarfetcher.h b/src/fetch/googlescholarfetcher.h index 4e15475..9391d1f 100644 --- a/src/fetch/googlescholarfetcher.h +++ b/src/fetch/googlescholarfetcher.h @@ -18,8 +18,8 @@ #include "configwidget.h" #include "../datavectors.h" -#include -#include +#include +#include namespace KIO { class Job; @@ -35,20 +35,21 @@ namespace Tellico { */ class GoogleScholarFetcher : public Fetcher { Q_OBJECT + TQ_OBJECT public: /** */ - GoogleScholarFetcher(QObject* parent, const char* name = 0); + GoogleScholarFetcher(TQObject* tqparent, const char* name = 0); /** */ virtual ~GoogleScholarFetcher(); /** */ - 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 void continueSearch(); // amazon can search title or person virtual bool canSearch(FetchKey k) const { return k == Title || k == Person || k == Keyword; } @@ -63,20 +64,20 @@ public: /** * Returns a widget for modifying the fetcher's config. */ - virtual Fetch::ConfigWidget* configWidget(QWidget* parent) const; + virtual Fetch::ConfigWidget* configWidget(TQWidget* tqparent) const; class ConfigWidget : public Fetch::ConfigWidget { public: - ConfigWidget(QWidget* parent_, const GoogleScholarFetcher* fetcher = 0); + ConfigWidget(TQWidget* tqparent_, const GoogleScholarFetcher* fetcher = 0); virtual void saveConfig(KConfigGroup&) {} - 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: @@ -86,15 +87,15 @@ private: int m_start; int m_total; - 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; - QRegExp m_bibtexRx; + TQRegExp m_bibtexRx; bool m_cookieIsSet; }; -- cgit v1.2.1