summaryrefslogtreecommitdiffstats
path: root/kmymoney2/widgets/kmymoneyonlinequoteconfig.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/widgets/kmymoneyonlinequoteconfig.cpp')
-rw-r--r--kmymoney2/widgets/kmymoneyonlinequoteconfig.cpp70
1 files changed, 35 insertions, 35 deletions
diff --git a/kmymoney2/widgets/kmymoneyonlinequoteconfig.cpp b/kmymoney2/widgets/kmymoneyonlinequoteconfig.cpp
index 125cc13..6704c9c 100644
--- a/kmymoney2/widgets/kmymoneyonlinequoteconfig.cpp
+++ b/kmymoney2/widgets/kmymoneyonlinequoteconfig.cpp
@@ -18,7 +18,7 @@
// ----------------------------------------------------------------------------
// QT Includes
-#include <qregexp.h>
+#include <tqregexp.h>
// ----------------------------------------------------------------------------
// KDE Includes
@@ -38,11 +38,11 @@
#include "kmymoneyonlinequoteconfig.h"
#include "../converter/webpricequote.h"
-kMyMoneyOnlineQuoteConfig::kMyMoneyOnlineQuoteConfig(QWidget *parent, const char *name )
- : kMyMoneyOnlineQuoteConfigDecl(parent, name)
+kMyMoneyOnlineQuoteConfig::kMyMoneyOnlineQuoteConfig(TQWidget *tqparent, const char *name )
+ : kMyMoneyOnlineQuoteConfigDecl(tqparent, name)
{
#if 1
- QStringList groups = WebPriceQuote::quoteSources();
+ TQStringList groups = WebPriceQuote::quoteSources();
loadList(true /*updateResetList*/);
@@ -50,35 +50,35 @@ kMyMoneyOnlineQuoteConfig::kMyMoneyOnlineQuoteConfig(QWidget *parent, const char
KIconLoader* il = KGlobal::iconLoader();
KGuiItem updateButtenItem( i18n("&Update" ),
- QIconSet(il->loadIcon("button_ok", KIcon::Small, KIcon::SizeSmall)),
+ TQIconSet(il->loadIcon("button_ok", KIcon::Small, KIcon::SizeSmall)),
i18n("Accepts the entered data and stores it"),
i18n("Use this to accept the modified data."));
m_updateButton->setGuiItem(updateButtenItem);
KGuiItem deleteButtenItem( i18n( "&Delete" ),
- QIconSet(il->loadIcon("editdelete", KIcon::Small, KIcon::SizeSmall)),
+ TQIconSet(il->loadIcon("editdelete", KIcon::Small, KIcon::SizeSmall)),
i18n("Delete the selected source entry"),
i18n("Use this to delete the selected online source entry"));
m_deleteButton->setGuiItem(deleteButtenItem);
KGuiItem newButtenItem( i18n( "&New..." ),
- QIconSet(il->loadIcon("filenew", KIcon::Small, KIcon::SizeSmall)),
+ TQIconSet(il->loadIcon("filenew", KIcon::Small, KIcon::SizeSmall)),
i18n("Create a new source entry for online quotes"),
i18n("Use this to create a new entry for online quotes"));
m_newButton->setGuiItem(newButtenItem);
- connect(m_updateButton, SIGNAL(clicked()), this, SLOT(slotUpdateEntry()));
- connect(m_newButton, SIGNAL(clicked()), this, SLOT(slotNewEntry()));
+ connect(m_updateButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotUpdateEntry()));
+ connect(m_newButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotNewEntry()));
- connect(m_quoteSourceList, SIGNAL(selectionChanged(QListViewItem*)), this, SLOT(slotLoadWidgets(QListViewItem*)));
- connect(m_quoteSourceList, SIGNAL(clicked(QListViewItem*)), this, SLOT(slotLoadWidgets(QListViewItem*)));
- connect(m_quoteSourceList, SIGNAL(itemRenamed(QListViewItem*,const QString&,int)), this, SLOT(slotEntryRenamed(QListViewItem*,const QString&,int)));
+ connect(m_quoteSourceList, TQT_SIGNAL(selectionChanged(TQListViewItem*)), this, TQT_SLOT(slotLoadWidgets(TQListViewItem*)));
+ connect(m_quoteSourceList, TQT_SIGNAL(clicked(TQListViewItem*)), this, TQT_SLOT(slotLoadWidgets(TQListViewItem*)));
+ connect(m_quoteSourceList, TQT_SIGNAL(itemRenamed(TQListViewItem*,const TQString&,int)), this, TQT_SLOT(slotEntryRenamed(TQListViewItem*,const TQString&,int)));
- connect(m_editURL, SIGNAL(textChanged(const QString&)), this, SLOT(slotEntryChanged()));
- connect(m_editSymbol, SIGNAL(textChanged(const QString&)), this, SLOT(slotEntryChanged()));
- connect(m_editDate, SIGNAL(textChanged(const QString&)), this, SLOT(slotEntryChanged()));
- connect(m_editDateFormat, SIGNAL(textChanged(const QString&)), this, SLOT(slotEntryChanged()));
- connect(m_editPrice, SIGNAL(textChanged(const QString&)), this, SLOT(slotEntryChanged()));
+ connect(m_editURL, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotEntryChanged()));
+ connect(m_editSymbol, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotEntryChanged()));
+ connect(m_editDate, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotEntryChanged()));
+ connect(m_editDateFormat, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotEntryChanged()));
+ connect(m_editPrice, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotEntryChanged()));
// FIXME deleting a source is not yet implemented
m_deleteButton->setEnabled(false);
@@ -87,30 +87,30 @@ kMyMoneyOnlineQuoteConfig::kMyMoneyOnlineQuoteConfig(QWidget *parent, const char
void kMyMoneyOnlineQuoteConfig::loadList(const bool updateResetList)
{
- QStringList groups = WebPriceQuote::quoteSources();
+ TQStringList groups = WebPriceQuote::quoteSources();
if(updateResetList)
m_resetList.clear();
m_quoteSourceList->clear();
- QStringList::Iterator it;
+ TQStringList::Iterator it;
for(it = groups.begin(); it != groups.end(); ++it) {
- new QListViewItem(m_quoteSourceList, *it);
+ new TQListViewItem(m_quoteSourceList, *it);
if(updateResetList)
m_resetList += WebPriceQuoteSource(*it);
}
- QListViewItem* first = m_quoteSourceList->firstChild();
+ TQListViewItem* first = m_quoteSourceList->firstChild();
if(first)
m_quoteSourceList->setSelected(first, true);
slotLoadWidgets(first);
- m_newButton->setEnabled(m_quoteSourceList->findItem(i18n("New Quote Source"), 0) == 0);
+ m_newButton->setEnabled(m_quoteSourceList->tqfindItem(i18n("New Quote Source"), 0) == 0);
}
void kMyMoneyOnlineQuoteConfig::resetConfig(void)
{
- QStringList::ConstIterator it;
- QStringList groups = WebPriceQuote::quoteSources();
+ TQStringList::ConstIterator it;
+ TQStringList groups = WebPriceQuote::quoteSources();
// delete all currently defined entries
for(it = groups.begin(); it != groups.end(); ++it) {
@@ -118,7 +118,7 @@ void kMyMoneyOnlineQuoteConfig::resetConfig(void)
}
// and write back the one's from the reset list
- QValueList<WebPriceQuoteSource>::ConstIterator itr;
+ TQValueList<WebPriceQuoteSource>::ConstIterator itr;
for(itr = m_resetList.begin(); itr != m_resetList.end(); ++itr) {
(*itr).write();
}
@@ -126,17 +126,17 @@ void kMyMoneyOnlineQuoteConfig::resetConfig(void)
loadList();
}
-void kMyMoneyOnlineQuoteConfig::slotLoadWidgets(QListViewItem* item)
+void kMyMoneyOnlineQuoteConfig::slotLoadWidgets(TQListViewItem* item)
{
m_editURL->setEnabled(true);
m_editSymbol->setEnabled(true);
m_editPrice->setEnabled(true);
m_editDate->setEnabled(true);
- m_editURL->setText(QString());
- m_editSymbol->setText(QString());
- m_editPrice->setText(QString());
- m_editDate->setText(QString());
- m_editDateFormat->setText(QString());
+ m_editURL->setText(TQString());
+ m_editSymbol->setText(TQString());
+ m_editPrice->setText(TQString());
+ m_editDate->setText(TQString());
+ m_editDateFormat->setText(TQString());
if(item) {
m_currentItem = WebPriceQuoteSource(item->text(0));
@@ -185,17 +185,17 @@ void kMyMoneyOnlineQuoteConfig::slotNewEntry(void)
WebPriceQuoteSource newSource(i18n("New Quote Source"));
newSource.write();
loadList();
- QListViewItem* item = m_quoteSourceList->findItem(i18n("New Quote Source"), 0);
+ TQListViewItem* item = m_quoteSourceList->tqfindItem(i18n("New Quote Source"), 0);
if(item) {
m_quoteSourceList->setSelected(item, true);
slotLoadWidgets(item);
}
}
-void kMyMoneyOnlineQuoteConfig::slotEntryRenamed(QListViewItem* item, const QString& text, int /* col */)
+void kMyMoneyOnlineQuoteConfig::slotEntryRenamed(TQListViewItem* item, const TQString& text, int /* col */)
{
int nameCount = 0;
- QListViewItemIterator it(m_quoteSourceList);
+ TQListViewItemIterator it(m_quoteSourceList);
while(it.current()) {
if(it.current()->text(0) == text)
++nameCount;
@@ -208,7 +208,7 @@ void kMyMoneyOnlineQuoteConfig::slotEntryRenamed(QListViewItem* item, const QStr
} else {
item->setText(0, m_currentItem.m_name);
}
- m_newButton->setEnabled(m_quoteSourceList->findItem(i18n("New Quote Source"), 0) == 0);
+ m_newButton->setEnabled(m_quoteSourceList->tqfindItem(i18n("New Quote Source"), 0) == 0);
}
#include "kmymoneyonlinequoteconfig.moc"