summaryrefslogtreecommitdiffstats
path: root/kmymoney2/dialogs/settings/ksettingsonlinequotes.cpp
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/dialogs/settings/ksettingsonlinequotes.cpp
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/dialogs/settings/ksettingsonlinequotes.cpp')
-rw-r--r--kmymoney2/dialogs/settings/ksettingsonlinequotes.cpp74
1 files changed, 37 insertions, 37 deletions
diff --git a/kmymoney2/dialogs/settings/ksettingsonlinequotes.cpp b/kmymoney2/dialogs/settings/ksettingsonlinequotes.cpp
index db4dc1e..a17fd6e 100644
--- a/kmymoney2/dialogs/settings/ksettingsonlinequotes.cpp
+++ b/kmymoney2/dialogs/settings/ksettingsonlinequotes.cpp
@@ -18,8 +18,8 @@
// ----------------------------------------------------------------------------
// QT Includes
-#include <qregexp.h>
-#include <qcheckbox.h>
+#include <tqregexp.h>
+#include <tqcheckbox.h>
// ----------------------------------------------------------------------------
// KDE Includes
@@ -39,10 +39,10 @@
#include "ksettingsonlinequotes.h"
#include "kmymoney2/converter/webpricequote.h"
-KSettingsOnlineQuotes::KSettingsOnlineQuotes(QWidget *parent, const char *name )
- : KSettingsOnlineQuotesDecl(parent, name)
+KSettingsOnlineQuotes::KSettingsOnlineQuotes(TQWidget *tqparent, const char *name )
+ : KSettingsOnlineQuotesDecl(tqparent, name)
{
- QStringList groups = WebPriceQuote::quoteSources();
+ TQStringList groups = WebPriceQuote::quoteSources();
loadList(true /*updateResetList*/);
@@ -50,36 +50,36 @@ KSettingsOnlineQuotes::KSettingsOnlineQuotes(QWidget *parent, const char *name )
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_skipStripping, SIGNAL(toggled(bool)), 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()));
+ connect(m_skipStripping, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotEntryChanged()));
// FIXME deleting a source is not yet implemented
m_deleteButton->setEnabled(false);
@@ -87,30 +87,30 @@ KSettingsOnlineQuotes::KSettingsOnlineQuotes(QWidget *parent, const char *name )
void KSettingsOnlineQuotes::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 KSettingsOnlineQuotes::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 KSettingsOnlineQuotes::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,7 +126,7 @@ void KSettingsOnlineQuotes::resetConfig(void)
loadList();
}
-void KSettingsOnlineQuotes::slotLoadWidgets(QListViewItem* item)
+void KSettingsOnlineQuotes::slotLoadWidgets(TQListViewItem* item)
{
m_editURL->setEnabled(true);
m_editSymbol->setEnabled(true);
@@ -134,11 +134,11 @@ void KSettingsOnlineQuotes::slotLoadWidgets(QListViewItem* item)
m_editDate->setEnabled(true);
m_editDateFormat->setEnabled(true);
m_skipStripping->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));
@@ -190,17 +190,17 @@ void KSettingsOnlineQuotes::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 KSettingsOnlineQuotes::slotEntryRenamed(QListViewItem* item, const QString& text, int /* col */)
+void KSettingsOnlineQuotes::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;
@@ -213,7 +213,7 @@ void KSettingsOnlineQuotes::slotEntryRenamed(QListViewItem* item, const QString&
} 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 "ksettingsonlinequotes.moc"