summaryrefslogtreecommitdiffstats
path: root/kmymoney2/dialogs/kcurrencyeditdlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/dialogs/kcurrencyeditdlg.cpp')
-rw-r--r--kmymoney2/dialogs/kcurrencyeditdlg.cpp82
1 files changed, 41 insertions, 41 deletions
diff --git a/kmymoney2/dialogs/kcurrencyeditdlg.cpp b/kmymoney2/dialogs/kcurrencyeditdlg.cpp
index 55bac30..aad8f20 100644
--- a/kmymoney2/dialogs/kcurrencyeditdlg.cpp
+++ b/kmymoney2/dialogs/kcurrencyeditdlg.cpp
@@ -25,13 +25,13 @@
// ----------------------------------------------------------------------------
// QT Includes
-#include <qheader.h>
-#include <qtimer.h>
+#include <tqheader.h>
+#include <tqtimer.h>
-#include <qpixmap.h>
-#include <qbitmap.h>
-#include <qlabel.h>
-#include <qgroupbox.h>
+#include <tqpixmap.h>
+#include <tqbitmap.h>
+#include <tqlabel.h>
+#include <tqgroupbox.h>
// ----------------------------------------------------------------------------
// KDE Includes
@@ -56,8 +56,8 @@
#include "../widgets/kmymoneypriceview.h"
-KCurrencyEditDlg::KCurrencyEditDlg(QWidget *parent, const char *name ) :
- KCurrencyEditDlgDecl(parent,name)
+KCurrencyEditDlg::KCurrencyEditDlg(TQWidget *tqparent, const char *name ) :
+ KCurrencyEditDlgDecl(tqparent,name)
{
m_currencyList->addColumn(i18n("Currency"));
m_currencyList->header()->hide();
@@ -65,18 +65,18 @@ KCurrencyEditDlg::KCurrencyEditDlg(QWidget *parent, const char *name ) :
// FIXME: the online source table currently has no functionality
m_onlineSourceTable->hide();
- connect(m_currencyList, SIGNAL(rightButtonPressed(QListViewItem* , const QPoint&, int)),
- this, SLOT(slotListClicked(QListViewItem*, const QPoint&, int)));
- connect(m_currencyList, SIGNAL(selectionChanged(QListViewItem*)), this, SLOT(slotSelectCurrency(QListViewItem*)));
+ connect(m_currencyList, TQT_SIGNAL(rightButtonPressed(TQListViewItem* , const TQPoint&, int)),
+ this, TQT_SLOT(slotListClicked(TQListViewItem*, const TQPoint&, int)));
+ connect(m_currencyList, TQT_SIGNAL(selectionChanged(TQListViewItem*)), this, TQT_SLOT(slotSelectCurrency(TQListViewItem*)));
- connect(m_currencyList, SIGNAL(itemRenamed(QListViewItem*,int,const QString&)), this, SIGNAL(renameCurrency(QListViewItem*,int,const QString&)));
- connect(MyMoneyFile::instance(), SIGNAL(dataChanged()), this, SLOT(slotLoadCurrencies()));
+ connect(m_currencyList, TQT_SIGNAL(itemRenamed(TQListViewItem*,int,const TQString&)), this, TQT_SIGNAL(renameCurrency(TQListViewItem*,int,const TQString&)));
+ connect(MyMoneyFile::instance(), TQT_SIGNAL(dataChanged()), this, TQT_SLOT(slotLoadCurrencies()));
slotLoadCurrencies();
- connect(m_baseCurrencyButton, SIGNAL(clicked()), this, SLOT(slotSelectBaseCurrency()));
- connect(buttonClose, SIGNAL(clicked()), this, SLOT(slotClose()));
+ connect(m_baseCurrencyButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotSelectBaseCurrency()));
+ connect(buttonClose, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotClose()));
// FIXME: currently, no online help available
buttonHelp->hide();
@@ -85,14 +85,14 @@ KCurrencyEditDlg::KCurrencyEditDlg(QWidget *parent, const char *name ) :
m_description->hide();
resize(width()-1, height()-1);
- QTimer::singleShot(10, this, SLOT(timerDone()));
+ TQTimer::singleShot(10, this, TQT_SLOT(timerDone()));
}
void KCurrencyEditDlg::timerDone(void)
{
if(!m_currency.id().isEmpty()) {
- QListViewItemIterator it(m_currencyList);
- QListViewItem* q;
+ TQListViewItemIterator it(m_currencyList);
+ TQListViewItem* q;
while((q = it.current()) != 0) {
KMyMoneyListViewItem* p = static_cast<KMyMoneyListViewItem *>(q);
if(p->id() == m_currency.id()) {
@@ -113,7 +113,7 @@ KCurrencyEditDlg::~KCurrencyEditDlg()
{
}
-void KCurrencyEditDlg::resizeEvent(QResizeEvent* /* e*/)
+void KCurrencyEditDlg::resizeEvent(TQResizeEvent* /* e*/)
{
int w = m_currencyList->visibleWidth();
@@ -122,25 +122,25 @@ void KCurrencyEditDlg::resizeEvent(QResizeEvent* /* e*/)
void KCurrencyEditDlg::slotLoadCurrencies(void)
{
- QValueList<MyMoneySecurity> list = MyMoneyFile::instance()->currencyList();
- QValueList<MyMoneySecurity>::ConstIterator it;
- QListViewItem *first = 0;
+ TQValueList<MyMoneySecurity> list = MyMoneyFile::instance()->currencyList();
+ TQValueList<MyMoneySecurity>::ConstIterator it;
+ TQListViewItem *first = 0;
- QString localCurrency(localeconv()->int_curr_symbol);
+ TQString localCurrency(localeconv()->int_curr_symbol);
localCurrency.truncate(3);
- QString baseCurrency = MyMoneyFile::instance()->baseCurrency().id();
+ TQString baseCurrency = MyMoneyFile::instance()->baseCurrency().id();
// 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));
m_currencyList->clear();
for(it = list.begin(); it != list.end(); ++it) {
- KMyMoneyListViewItem* p = new KMyMoneyListViewItem(m_currencyList, (*it).name(), QString(), (*it).id());
+ KMyMoneyListViewItem* p = new KMyMoneyListViewItem(m_currencyList, (*it).name(), TQString(), (*it).id());
p->setRenameEnabled(0, true);
if((*it).id() == baseCurrency) {
- p->setPixmap(0, QPixmap( locate("icon","hicolor/16x16/apps/kmymoney2.png")));
+ p->setPixmap(0, TQPixmap( locate("icon","hicolor/16x16/apps/kmymoney2.png")));
if(m_currency.id().isEmpty())
first = p;
} else {
@@ -182,9 +182,9 @@ void KCurrencyEditDlg::updateCurrency(void)
}
}
-void KCurrencyEditDlg::slotSelectCurrency(const QString& id)
+void KCurrencyEditDlg::slotSelectCurrency(const TQString& id)
{
- QListViewItemIterator it(m_currencyList);
+ TQListViewItemIterator it(m_currencyList);
while(it.current()) {
KMyMoneyListViewItem* p = static_cast<KMyMoneyListViewItem*>(it.current());
@@ -198,17 +198,17 @@ void KCurrencyEditDlg::slotSelectCurrency(const QString& id)
}
}
-void KCurrencyEditDlg::slotSelectCurrency(QListViewItem *item)
+void KCurrencyEditDlg::slotSelectCurrency(TQListViewItem *item)
{
- QMap<QDate, MyMoneyMoney> history;
+ TQMap<TQDate, MyMoneyMoney> history;
MyMoneyFile* file = MyMoneyFile::instance();
updateCurrency();
m_detailGroup->setEnabled(item != 0);
m_onlineSourceTable->clear();
- m_idLabel->setText(QString());
- m_symbolEdit->setText(QString());
+ m_idLabel->setText(TQString());
+ m_symbolEdit->setText(TQString());
if(item) {
try {
@@ -221,8 +221,8 @@ void KCurrencyEditDlg::slotSelectCurrency(QListViewItem *item)
delete e;
m_currency = MyMoneySecurity();
m_onlineSourceTable->clear();
- m_idLabel->setText(QString());
- m_symbolEdit->setText(QString());
+ m_idLabel->setText(TQString());
+ m_symbolEdit->setText(TQString());
}
m_baseCurrencyButton->setDisabled(m_currency.id() == file->baseCurrency().id());
emit selectObject(m_currency);
@@ -237,20 +237,20 @@ void KCurrencyEditDlg::slotClose(void)
void KCurrencyEditDlg::slotStartRename(void)
{
- QListViewItemIterator it_l(m_currencyList, QListViewItemIterator::Selected);
- QListViewItem* it_v;
+ TQListViewItemIterator it_l(m_currencyList, TQListViewItemIterator::Selected);
+ TQListViewItem* it_v;
if((it_v = it_l.current()) != 0) {
it_v->startRename(0);
}
}
-void KCurrencyEditDlg::slotListClicked(QListViewItem* item, const QPoint&, int)
+void KCurrencyEditDlg::slotListClicked(TQListViewItem* item, const TQPoint&, int)
{
slotSelectCurrency(item);
emit openContextMenu(m_currency);
}
-void KCurrencyEditDlg::slotRenameCurrency(QListViewItem* item, int /* col */, const QString& txt)
+void KCurrencyEditDlg::slotRenameCurrency(TQListViewItem* item, int /* col */, const TQString& txt)
{
MyMoneyFile* file = MyMoneyFile::instance();
KMyMoneyListViewItem* p = static_cast<KMyMoneyListViewItem *>(item);
@@ -279,7 +279,7 @@ void KCurrencyEditDlg::slotRenameCurrency(QListViewItem* item, int /* col */, co
void KCurrencyEditDlg::slotSelectBaseCurrency(void)
{
if(!m_currency.id().isEmpty()) {
- QListViewItem* p = m_currencyList->selectedItem();
+ TQListViewItem* p = m_currencyList->selectedItem();
emit selectBaseCurrency(m_currency);
// in case the dataChanged() signal was not sent out (nested FileTransaction)
// we update the list manually