summaryrefslogtreecommitdiffstats
path: root/src/collections/bibtexcollection.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/collections/bibtexcollection.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/collections/bibtexcollection.h')
-rw-r--r--src/collections/bibtexcollection.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/collections/bibtexcollection.h b/src/collections/bibtexcollection.h
index 628cc37..2752063 100644
--- a/src/collections/bibtexcollection.h
+++ b/src/collections/bibtexcollection.h
@@ -29,6 +29,7 @@ namespace Tellico {
*/
class BibtexCollection : public Collection {
Q_OBJECT
+ TQ_OBJECT
public:
/**
@@ -37,7 +38,7 @@ public:
* @param addFields A boolean indicating whether the default attributes should be added
* @param title The title of the collection
*/
- BibtexCollection(bool addFields, const QString& title = QString::null);
+ BibtexCollection(bool addFields, const TQString& title = TQString());
/**
*/
virtual ~BibtexCollection() {}
@@ -47,12 +48,12 @@ public:
virtual bool modifyField(FieldPtr field);
virtual bool deleteField(FieldPtr field, bool force=false);
- FieldPtr fieldByBibtexName(const QString& name) const;
- const QString& preamble() const { return m_preamble; }
- void setPreamble(const QString& preamble) { m_preamble = preamble; }
+ FieldPtr fieldByBibtexName(const TQString& name) const;
+ const TQString& preamble() const { return m_preamble; }
+ void setPreamble(const TQString& preamble) { m_preamble = preamble; }
const StringMap& macroList() const { return m_macros; }
void setMacroList(StringMap map) { m_macros = map; }
- void addMacro(const QString& key, const QString& value) { m_macros.insert(key, value); }
+ void addMacro(const TQString& key, const TQString& value) { m_macros.insert(key, value); }
virtual int sameEntry(Data::EntryPtr entry1, Data::EntryPtr entry2) const;
@@ -60,8 +61,8 @@ public:
static CollPtr convertBookCollection(CollPtr coll);
private:
- QDict<Field> m_bibtexFieldDict;
- QString m_preamble;
+ TQDict<Field> m_bibtexFieldDict;
+ TQString m_preamble;
StringMap m_macros;
};