summaryrefslogtreecommitdiffstats
path: root/kmymoney2/dialogs/kmymoneypricedlg.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/kmymoneypricedlg.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/kmymoneypricedlg.cpp')
-rw-r--r--kmymoney2/dialogs/kmymoneypricedlg.cpp52
1 files changed, 26 insertions, 26 deletions
diff --git a/kmymoney2/dialogs/kmymoneypricedlg.cpp b/kmymoney2/dialogs/kmymoneypricedlg.cpp
index cd8d66f..a64fd13 100644
--- a/kmymoney2/dialogs/kmymoneypricedlg.cpp
+++ b/kmymoney2/dialogs/kmymoneypricedlg.cpp
@@ -23,7 +23,7 @@
// ----------------------------------------------------------------------------
// QT Includes
-#include <qcheckbox.h>
+#include <tqcheckbox.h>
// ----------------------------------------------------------------------------
// KDE Includes
@@ -53,47 +53,47 @@
#define PRICE_COL 3
#define SOURCE_COL 4
-KMyMoneyPriceDlg::KMyMoneyPriceDlg(QWidget* parent, const char *name) :
- KMyMoneyPriceDlgDecl(parent, name)
+KMyMoneyPriceDlg::KMyMoneyPriceDlg(TQWidget* tqparent, const char *name) :
+ KMyMoneyPriceDlgDecl(tqparent, name)
{
KIconLoader *il = KGlobal::iconLoader();
KGuiItem removeButtenItem( i18n( "&Delete" ),
- QIconSet(il->loadIcon("delete", KIcon::Small, KIcon::SizeSmall)),
+ TQIconSet(il->loadIcon("delete", KIcon::Small, KIcon::SizeSmall)),
i18n("Delete this entry"),
i18n("Remove this price item from the file"));
m_deleteButton->setGuiItem(removeButtenItem);
KGuiItem newButtenItem( i18n( "&New" ),
- QIconSet(il->loadIcon("file_new", KIcon::Small, KIcon::SizeSmall)),
+ TQIconSet(il->loadIcon("file_new", KIcon::Small, KIcon::SizeSmall)),
i18n("Add a new entry"),
i18n("Create a new price entry."));
m_newButton->setGuiItem(newButtenItem);
KGuiItem editButtenItem( i18n( "&Edit" ),
- QIconSet(il->loadIcon("edit", KIcon::Small, KIcon::SizeSmall)),
+ TQIconSet(il->loadIcon("edit", KIcon::Small, KIcon::SizeSmall)),
i18n("Modify the selected entry"),
i18n("Change the details of selected price information."));
m_editButton->setGuiItem(editButtenItem);
KGuiItem okButtenItem( i18n("&Close" ),
- QIconSet(il->loadIcon("button_ok", KIcon::Small, KIcon::SizeSmall)),
+ TQIconSet(il->loadIcon("button_ok", KIcon::Small, KIcon::SizeSmall)),
i18n("Close the dialog"),
i18n("Use this to close the dialog and return to the application."));
m_closeButton->setGuiItem(okButtenItem);
- connect(m_closeButton, SIGNAL(clicked()), this, SLOT(accept()));
- connect(m_editButton, SIGNAL(clicked()), this, SLOT(slotEditPrice()));
- connect(m_priceList, SIGNAL(editPrice()), this, SLOT(slotEditPrice()));
- connect(m_deleteButton, SIGNAL(clicked()), this, SLOT(slotDeletePrice()));
- connect(m_priceList, SIGNAL(deletePrice()), this, SLOT(slotDeletePrice()));
- connect(m_newButton, SIGNAL(clicked()), this, SLOT(slotNewPrice()));
- connect(m_priceList, SIGNAL(newPrice()), this, SLOT(slotNewPrice()));
- connect(m_priceList, SIGNAL(selectionChanged(QListViewItem*)), this, SLOT(slotSelectPrice(QListViewItem*)));
- connect(m_onlineQuoteButton, SIGNAL(clicked()), this, SLOT(slotOnlinePriceUpdate()));
- connect(m_priceList, SIGNAL(onlinePriceUpdate()), this, SLOT(slotOnlinePriceUpdate()));
+ connect(m_closeButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(accept()));
+ connect(m_editButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotEditPrice()));
+ connect(m_priceList, TQT_SIGNAL(editPrice()), this, TQT_SLOT(slotEditPrice()));
+ connect(m_deleteButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotDeletePrice()));
+ connect(m_priceList, TQT_SIGNAL(deletePrice()), this, TQT_SLOT(slotDeletePrice()));
+ connect(m_newButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotNewPrice()));
+ connect(m_priceList, TQT_SIGNAL(newPrice()), this, TQT_SLOT(slotNewPrice()));
+ connect(m_priceList, TQT_SIGNAL(selectionChanged(TQListViewItem*)), this, TQT_SLOT(slotSelectPrice(TQListViewItem*)));
+ connect(m_onlineQuoteButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotOnlinePriceUpdate()));
+ connect(m_priceList, TQT_SIGNAL(onlinePriceUpdate()), this, TQT_SLOT(slotOnlinePriceUpdate()));
- connect(m_showAllPrices, SIGNAL(toggled(bool)), this, SLOT(slotLoadWidgets()));
- connect(MyMoneyFile::instance(), SIGNAL(dataChanged()), this, SLOT(slotLoadWidgets()));
+ connect(m_showAllPrices, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotLoadWidgets()));
+ connect(MyMoneyFile::instance(), TQT_SIGNAL(dataChanged()), this, TQT_SLOT(slotLoadWidgets()));
slotLoadWidgets();
slotSelectPrice(0);
@@ -128,7 +128,7 @@ void KMyMoneyPriceDlg::slotLoadWidgets(void)
}
}
-void KMyMoneyPriceDlg::slotSelectPrice(QListViewItem * item)
+void KMyMoneyPriceDlg::slotSelectPrice(TQListViewItem * item)
{
m_currentItem = item;
m_editButton->setEnabled(item != 0);
@@ -162,7 +162,7 @@ void KMyMoneyPriceDlg::slotNewPrice(void)
m_priceList->setSelected(p, true);
// If the user cancels the following operation, we delete the new item
// and re-select any previously selected one
- if(slotEditPrice() == QDialog::Rejected) {
+ if(slotEditPrice() == TQDialog::Rejected) {
delete p;
if(item)
m_priceList->setSelected(item, true);
@@ -172,7 +172,7 @@ void KMyMoneyPriceDlg::slotNewPrice(void)
int KMyMoneyPriceDlg::slotEditPrice(void)
{
- int rc = QDialog::Rejected;
+ int rc = TQDialog::Rejected;
KMyMoneyPriceItem* item = dynamic_cast<KMyMoneyPriceItem*>(m_priceList->selectedItem());
if(item) {
MyMoneySecurity from(MyMoneyFile::instance()->security(item->price().from()));
@@ -217,11 +217,11 @@ void KMyMoneyPriceDlg::slotOnlinePriceUpdate(void)
if(item)
{
KEquityPriceUpdateDlg dlg(this, (item->text(COMMODITY_COL)+" "+item->text(CURRENCY_COL)).utf8());
- if(dlg.exec() == QDialog::Accepted)
+ if(dlg.exec() == TQDialog::Accepted)
dlg.storePrices();
} else {
KEquityPriceUpdateDlg dlg(this);
- if(dlg.exec() == QDialog::Accepted)
+ if(dlg.exec() == TQDialog::Accepted)
dlg.storePrices();
}
}
@@ -234,9 +234,9 @@ void KMyMoneyPriceDlg::slotOnlinePriceUpdate(void)
// complains and if not, we get rid of this whole block one day. (2007-06-22 ipwizard)
//
// kmymoney2/widgets/kmymoneypriceview.cpp:179: undefined reference to
-// `KUpdateStockPriceDlg::KUpdateStockPriceDlg[in-charge](QWidget*, char const*)'
+// `KUpdateStockPriceDlg::KUpdateStockPriceDlg[in-charge](TQWidget*, char const*)'
// kmymoney2/widgets/kmymoneypriceview.cpp:204: undefined reference to
-// `KUpdateStockPriceDlg::KUpdateStockPriceDlg[in-charge](QDate const&, QString const&, QWidget*, char const*)'
+// `KUpdateStockPriceDlg::KUpdateStockPriceDlg[in-charge](TQDate const&, TQString const&, TQWidget*, char const*)'
void KEditEquityEntryDlg_useless(void)
{
delete new KUpdateStockPriceDlg();