diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-05 06:00:29 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-05 06:00:29 +0000 |
commit | fecb0e67b23e8b83ba7fc881bb57bc48c0852d62 (patch) | |
tree | 6b8614802f0d01b353bc9ba78aff2090846c198e /kmymoney2/wizards/wizardpages/currency.cpp | |
parent | dadc34655c3ab961b0b0b94a10eaaba710f0b5e8 (diff) | |
download | kmymoney-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/wizards/wizardpages/currency.cpp')
-rw-r--r-- | kmymoney2/wizards/wizardpages/currency.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kmymoney2/wizards/wizardpages/currency.cpp b/kmymoney2/wizards/wizardpages/currency.cpp index 8693089..d824f01 100644 --- a/kmymoney2/wizards/wizardpages/currency.cpp +++ b/kmymoney2/wizards/wizardpages/currency.cpp @@ -29,24 +29,24 @@ #include "currency.h" -Currency::Currency(QWidget* parent, const char* name) : - CurrencyDecl(parent, name) +Currency::Currency(TQWidget* tqparent, const char* name) : + CurrencyDecl(tqparent, name) { m_currencyList->setAllColumnsShowFocus(true); m_currencyList->setMultiSelection(false); } -QListViewItem* Currency::insertCurrency(const MyMoneySecurity& sec) +TQListViewItem* Currency::insertCurrency(const MyMoneySecurity& sec) { - return new KListViewItem(m_currencyList, sec.name(), QString(sec.id()), sec.tradingSymbol()); + return new KListViewItem(m_currencyList, sec.name(), TQString(sec.id()), sec.tradingSymbol()); } void Currency::selectCurrency(const MyMoneySecurity& sec) { - QListViewItem* it_v; - QListViewItemIterator it(m_currencyList); + TQListViewItem* it_v; + TQListViewItemIterator it(m_currencyList); while((it_v = it.current()) != 0) { - if(it_v->text(1) == QString(sec.id())) { + if(it_v->text(1) == TQString(sec.id())) { m_currencyList->setSelected(it_v, true); m_currencyList->ensureItemVisible(it_v); break; @@ -54,9 +54,9 @@ void Currency::selectCurrency(const MyMoneySecurity& sec) } } -QString Currency::selectedCurrency(void) const +TQString Currency::selectedCurrency(void) const { - QString id; + TQString id; if(m_currencyList->selectedItem()) { id = m_currencyList->selectedItem()->text(1); } |