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/translators/bibteximporter.h | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) (limited to 'src/translators/bibteximporter.h') diff --git a/src/translators/bibteximporter.h b/src/translators/bibteximporter.h index c17195b..e0d248c 100644 --- a/src/translators/bibteximporter.h +++ b/src/translators/bibteximporter.h @@ -26,10 +26,10 @@ extern "C" { } #endif -#include -#include +#include +#include -class QRadioButton; +class TQRadioButton; namespace Tellico { namespace Import { @@ -42,6 +42,7 @@ namespace Tellico { */ class BibtexImporter : public Importer { Q_OBJECT + TQ_OBJECT public: /** @@ -50,7 +51,7 @@ public: * @param url The url of the bibtex file */ BibtexImporter(const KURL::List& urls); - BibtexImporter(const QString& text); + BibtexImporter(const TQString& text); /* * Some cleanup is done for the btparse library */ @@ -63,25 +64,25 @@ public: * @return A pointer to a @ref BibtexCollection, or 0 if none can be created. */ virtual Data::CollPtr collection(); - virtual QWidget* widget(QWidget* parent, const char* name=0); + virtual TQWidget* widget(TQWidget* tqparent, const char* name=0); virtual bool canImport(int type) const; public slots: void slotCancel(); private: - Data::CollPtr readCollection(const QString& text, int n); - void parseText(const QString& text); + Data::CollPtr readCollection(const TQString& text, int n); + void parseText(const TQString& text); - typedef QPtrList ASTList; - typedef QPtrListIterator ASTListIterator; + typedef TQPtrList ASTList; + typedef TQPtrListIterator ASTListIterator; ASTList m_nodes; - QMap m_macros; + TQMap m_macros; Data::CollPtr m_coll; - QWidget* m_widget; - QRadioButton* m_readUTF8; - QRadioButton* m_readLocale; + TQWidget* m_widget; + TQRadioButton* m_readUTF8; + TQRadioButton* m_readLocale; bool m_cancelled : 1; }; -- cgit v1.2.1