summaryrefslogtreecommitdiffstats
path: root/kmymoney2/mymoney/mymoneysecurity.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-05 06:00:29 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-05 06:00:29 +0000
commitfecb0e67b23e8b83ba7fc881bb57bc48c0852d62 (patch)
tree6b8614802f0d01b353bc9ba78aff2090846c198e /kmymoney2/mymoney/mymoneysecurity.h
parentdadc34655c3ab961b0b0b94a10eaaba710f0b5e8 (diff)
downloadkmymoney-fecb0e67b23e8b83ba7fc881bb57bc48c0852d62.tar.gz
kmymoney-fecb0e67b23e8b83ba7fc881bb57bc48c0852d62.zip
TQt4 port kmymoney
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmymoney@1239855 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmymoney2/mymoney/mymoneysecurity.h')
-rw-r--r--kmymoney2/mymoney/mymoneysecurity.h38
1 files changed, 19 insertions, 19 deletions
diff --git a/kmymoney2/mymoney/mymoneysecurity.h b/kmymoney2/mymoney/mymoneysecurity.h
index 666398e..fa49cb8 100644
--- a/kmymoney2/mymoney/mymoneysecurity.h
+++ b/kmymoney2/mymoney/mymoneysecurity.h
@@ -30,8 +30,8 @@
// ----------------------------------------------------------------------------
// QT Includes
-#include <qdatetime.h>
-#include <qmap.h>
+#include <tqdatetime.h>
+#include <tqmap.h>
// ----------------------------------------------------------------------------
// KDE Includes
@@ -57,9 +57,9 @@ class KMYMONEY_EXPORT MyMoneySecurity : public MyMoneyObject, public MyMoneyKeyV
{
public:
MyMoneySecurity();
- MyMoneySecurity(const QString& id, const MyMoneySecurity& equity);
- MyMoneySecurity(const QString& id, const QString& name, const QString& symbol = QString(), const int partsPerUnit = 100, const int smallestCashFraction = 100, const int smallestAccountFraction = 0);
- MyMoneySecurity(const QDomElement& node);
+ MyMoneySecurity(const TQString& id, const MyMoneySecurity& equity);
+ MyMoneySecurity(const TQString& id, const TQString& name, const TQString& symbol = TQString(), const int partsPerUnit = 100, const int smallestCashFraction = 100, const int smallestAccountFraction = 0);
+ MyMoneySecurity(const TQDomElement& node);
virtual ~MyMoneySecurity();
bool operator < (const MyMoneySecurity&) const;
@@ -86,21 +86,21 @@ public:
SECURITY_NONE
} eSECURITYTYPE;
- const QString& name() const { return m_name; }
+ const TQString& name() const { return m_name; }
void setName(const String& str) { m_name = str; }
- const QString& tradingSymbol() const { return m_tradingSymbol; }
+ const TQString& tradingSymbol() const { return m_tradingSymbol; }
void setTradingSymbol(const String& str) { m_tradingSymbol = str; }
eSECURITYTYPE securityType() const { return m_securityType; }
void setSecurityType(const eSECURITYTYPE& s) { m_securityType = s; }
bool isCurrency(void) const { return m_securityType == SECURITY_CURRENCY; };
- const QString& tradingMarket() const { return m_tradingMarket; }
- void setTradingMarket(const QString& str) { m_tradingMarket = str; }
+ const TQString& tradingMarket() const { return m_tradingMarket; }
+ void setTradingMarket(const TQString& str) { m_tradingMarket = str; }
- const QString& tradingCurrency(void) const { return m_tradingCurrency; };
- void setTradingCurrency(const QString& str) { m_tradingCurrency = str; };
+ const TQString& tradingCurrency(void) const { return m_tradingCurrency; };
+ void setTradingCurrency(const TQString& str) { m_tradingCurrency = str; };
int smallestAccountFraction(void) const { return m_smallestAccountFraction; };
void setSmallestAccountFraction(const int sf) { m_smallestAccountFraction = sf; };
@@ -111,7 +111,7 @@ public:
void setPartsPerUnit(const int ppu) { m_partsPerUnit = ppu; };
void setSmallestCashFraction(const int sf) { m_smallestCashFraction = sf; };
- void writeXML(QDomDocument& document, QDomElement& parent) const;
+ void writeXML(TQDomDocument& document, TQDomElement& tqparent) const;
/**
* This method checks if a reference to the given object exists. It returns,
@@ -122,7 +122,7 @@ public:
* @retval true This object references object with id @p id.
* @retval false This object does not reference the object with id @p id.
*/
- bool hasReferenceTo(const QString& id) const;
+ bool hasReferenceTo(const TQString& id) const;
/**
* This method is used to convert the internal representation of
@@ -131,16 +131,16 @@ public:
* @param securityType enumerated representation of the security type.
* For possible values, see MyMoneySecurity::eSECURITYTYPE
*
- * @return QString representing the human readable form
+ * @return TQString representing the human readable form
*/
- static QString securityTypeToString(const MyMoneySecurity::eSECURITYTYPE securityType);
+ static TQString securityTypeToString(const MyMoneySecurity::eSECURITYTYPE securityType);
protected:
- QString m_name;
- QString m_tradingSymbol;
- QString m_tradingMarket;
- QString m_tradingCurrency;
+ TQString m_name;
+ TQString m_tradingSymbol;
+ TQString m_tradingMarket;
+ TQString m_tradingCurrency;
eSECURITYTYPE m_securityType;
int m_smallestAccountFraction;
int m_smallestCashFraction;