summaryrefslogtreecommitdiffstats
path: root/kmymoney2/dialogs/keditequityentrydlg.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/keditequityentrydlg.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/keditequityentrydlg.cpp')
-rw-r--r--kmymoney2/dialogs/keditequityentrydlg.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/kmymoney2/dialogs/keditequityentrydlg.cpp b/kmymoney2/dialogs/keditequityentrydlg.cpp
index 854ce9a..ef9ed84 100644
--- a/kmymoney2/dialogs/keditequityentrydlg.cpp
+++ b/kmymoney2/dialogs/keditequityentrydlg.cpp
@@ -22,7 +22,7 @@
// ----------------------------------------------------------------------------
// QT Includes
-#include <qtimer.h>
+#include <tqtimer.h>
// ----------------------------------------------------------------------------
// KDE Includes
@@ -40,27 +40,27 @@
#include "kupdatestockpricedlg.h"
#include "../widgets/kmymoneypriceview.h"
-KEditEquityEntryDlg::KEditEquityEntryDlg(const MyMoneySecurity& selectedSecurity, QWidget *parent, const char *name)
- : KEditEquityEntryDecl(parent, name, true)
+KEditEquityEntryDlg::KEditEquityEntryDlg(const MyMoneySecurity& selectedSecurity, TQWidget *tqparent, const char *name)
+ : KEditEquityEntryDecl(tqparent, name, true)
{
m_selectedSecurity = selectedSecurity;
- connect(btnOK, SIGNAL(clicked()), this, SLOT(slotOKClicked()));
- connect(btnCancel, SIGNAL(clicked()), this, SLOT(reject()));
- connect(edtEquityName, SIGNAL(textChanged(const QString &)), this, SLOT(slotDataChanged()));
- connect(edtMarketSymbol, SIGNAL(textChanged(const QString &)), this, SLOT(slotDataChanged()));
- connect(edtFraction, SIGNAL(textChanged(const QString&)), this, SLOT(slotDataChanged()));
- connect(btnAddEntry, SIGNAL(clicked()), kpvPriceHistory, SLOT(slotAddPrice()));
- connect(btnEditEntry, SIGNAL(clicked()), kpvPriceHistory, SLOT(slotEditPrice()));
- connect(btnRemoveEntry, SIGNAL(clicked()), kpvPriceHistory, SLOT(slotDeletePrice()));
- connect(kpvPriceHistory, SIGNAL(selectionChanged(QListViewItem*)), this, SLOT(slotSelectionChanged(QListViewItem*)));
+ connect(btnOK, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotOKClicked()));
+ connect(btnCancel, TQT_SIGNAL(clicked()), this, TQT_SLOT(reject()));
+ connect(edtEquityName, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(slotDataChanged()));
+ connect(edtMarketSymbol, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(slotDataChanged()));
+ connect(edtFraction, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotDataChanged()));
+ connect(btnAddEntry, TQT_SIGNAL(clicked()), kpvPriceHistory, TQT_SLOT(slotAddPrice()));
+ connect(btnEditEntry, TQT_SIGNAL(clicked()), kpvPriceHistory, TQT_SLOT(slotEditPrice()));
+ connect(btnRemoveEntry, TQT_SIGNAL(clicked()), kpvPriceHistory, TQT_SLOT(slotDeletePrice()));
+ connect(kpvPriceHistory, TQT_SIGNAL(selectionChanged(TQListViewItem*)), this, TQT_SLOT(slotSelectionChanged(TQListViewItem*)));
//fill in the fields with what we know.
edtEquityName->setText(m_selectedSecurity.name());
edtMarketSymbol->setText(m_selectedSecurity.tradingSymbol());
edtFraction->setPrecision(0);
edtFraction->setCalculatorButtonVisible(false);
- edtFraction->loadText(QString::number(m_selectedSecurity.smallestAccountFraction()));
+ edtFraction->loadText(TQString::number(m_selectedSecurity.smallestAccountFraction()));
cmbInvestmentType->setCurrentItem((int)m_selectedSecurity.securityType());
// FIXME PRICE
// kpvPriceHistory->setHistory(m_selectedSecurity.priceHistory());
@@ -73,7 +73,7 @@ KEditEquityEntryDlg::KEditEquityEntryDlg(const MyMoneySecurity& selectedSecurity
btnAddEntry->setGuiItem(KStdGuiItem::add());
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 price information of the selected entry."));
btnEditEntry->setGuiItem(editButtenItem);
@@ -82,9 +82,9 @@ KEditEquityEntryDlg::KEditEquityEntryDlg(const MyMoneySecurity& selectedSecurity
slotDataChanged();
m_changes = false;
- // force a resize to optimize the layout of all widgets
+ // force a resize to optimize the tqlayout of all widgets
resize(width()-1, height()-1);
- QTimer::singleShot(10, this, SLOT(slotTimerDone()));
+ TQTimer::singleShot(10, this, TQT_SLOT(slotTimerDone()));
}
KEditEquityEntryDlg::~KEditEquityEntryDlg()
@@ -115,7 +115,7 @@ void KEditEquityEntryDlg::slotOKClicked()
accept();
}
-void KEditEquityEntryDlg::slotSelectionChanged(QListViewItem* item)
+void KEditEquityEntryDlg::slotSelectionChanged(TQListViewItem* item)
{
btnEditEntry->setEnabled(item != 0);
btnRemoveEntry->setEnabled(item != 0);