diff options
Diffstat (limited to 'kmymoney2/widgets/kmymoneycurrencyselector.cpp')
-rw-r--r-- | kmymoney2/widgets/kmymoneycurrencyselector.cpp | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/kmymoney2/widgets/kmymoneycurrencyselector.cpp b/kmymoney2/widgets/kmymoneycurrencyselector.cpp index 009dc2b..4b50e4d 100644 --- a/kmymoney2/widgets/kmymoneycurrencyselector.cpp +++ b/kmymoney2/widgets/kmymoneycurrencyselector.cpp @@ -23,8 +23,8 @@ // ---------------------------------------------------------------------------- // QT Includes -#include <qpixmap.h> -#include <qbitmap.h> +#include <tqpixmap.h> +#include <tqbitmap.h> // ---------------------------------------------------------------------------- // KDE Includes @@ -36,22 +36,22 @@ #include "kmymoneycurrencyselector.h" -KMyMoneySecuritySelector::KMyMoneySecuritySelector(QWidget *parent, const char *name ) : - KComboBox(parent, name), +KMyMoneySecuritySelector::KMyMoneySecuritySelector(TQWidget *tqparent, const char *name ) : + KComboBox(tqparent, name), m_displayItem(FullName), m_displayOnly(false), m_displayType(TypeAll) { - // update(QString()); + // update(TQString()); } -KMyMoneySecuritySelector::KMyMoneySecuritySelector(displayTypeE type, QWidget *parent, const char *name ) : - KComboBox(parent,name), +KMyMoneySecuritySelector::KMyMoneySecuritySelector(displayTypeE type, TQWidget *tqparent, const char *name ) : + KComboBox(tqparent,name), m_displayItem(FullName), m_displayOnly(false), m_displayType(type) { - // update(QString()); + // update(TQString()); } KMyMoneySecuritySelector::~KMyMoneySecuritySelector() @@ -61,13 +61,13 @@ KMyMoneySecuritySelector::~KMyMoneySecuritySelector() void KMyMoneySecuritySelector::selectDisplayItem(KMyMoneySecuritySelector::displayItemE item) { m_displayItem = item; - update(QString()); + update(TQString()); } -void KMyMoneySecuritySelector::update(const QString& id) +void KMyMoneySecuritySelector::update(const TQString& id) { MyMoneySecurity curr = MyMoneyFile::instance()->baseCurrency(); - QString baseCurrency = curr.id(); + TQString baseCurrency = curr.id(); if(!id.isEmpty()) curr = m_currency; @@ -82,23 +82,23 @@ void KMyMoneySecuritySelector::update(const QString& id) // sort qHeapSort(m_list); - QValueList<MyMoneySecurity>::ConstIterator it; + TQValueList<MyMoneySecurity>::ConstIterator it; // construct a transparent 16x16 pixmap - QPixmap empty(16, 16); - empty.setMask(QBitmap(16, 16, true)); + TQPixmap empty(16, 16); + empty.setMask(TQBitmap(16, 16, true)); int itemId = 0; int m_selectedItemId = 0; for(it = m_list.begin(); it != m_list.end(); ++it) { - QString display; + TQString display; switch(m_displayItem) { default: case FullName: if((*it).isCurrency()) { - display = QString("%2 (%1)").arg((*it).id()).arg((*it).name()); + display = TQString("%2 (%1)").tqarg((*it).id()).tqarg((*it).name()); } else - display = QString("%2 (%1)").arg((*it).tradingSymbol()).arg((*it).name()); + display = TQString("%2 (%1)").tqarg((*it).tradingSymbol()).tqarg((*it).name()); break; break; @@ -110,7 +110,7 @@ void KMyMoneySecuritySelector::update(const QString& id) break; } if((*it).id() == baseCurrency) { - insertItem(QPixmap( locate("icon","hicolor/16x16/apps/kmymoney2.png")), + insertItem(TQPixmap( locate("icon","hicolor/16x16/apps/kmymoney2.png")), display, itemId); } else { insertItem(empty, display, itemId); @@ -133,10 +133,10 @@ void KMyMoneySecuritySelector::setDisplayOnly(const bool disp) switch(disp) { case true: - connect(this, SIGNAL(activated(int)), this, SLOT(slotSetInitialCurrency())); + connect(this, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotSetInitialCurrency())); break; case false: - disconnect(this, SIGNAL(activated(int)), this, SLOT(slotSetInitialCurrency())); + disconnect(this, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotSetInitialCurrency())); break; } m_displayOnly = disp; @@ -155,11 +155,11 @@ const MyMoneySecurity& KMyMoneySecuritySelector::security(void) const void KMyMoneySecuritySelector::setSecurity(const MyMoneySecurity& currency) { m_currency = currency; - update(QString("x")); + update(TQString("x")); } -KMyMoneyCurrencySelector::KMyMoneyCurrencySelector(QWidget *parent, const char *name ) : - KMyMoneySecuritySelector(TypeCurrencies, parent, name) +KMyMoneyCurrencySelector::KMyMoneyCurrencySelector(TQWidget *tqparent, const char *name ) : + KMyMoneySecuritySelector(TypeCurrencies, tqparent, name) { } |