summaryrefslogtreecommitdiffstats
path: root/kmymoney2/dialogs
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/dialogs')
-rw-r--r--kmymoney2/dialogs/kbalancechartdlg.cpp6
-rw-r--r--kmymoney2/dialogs/kendingbalancedlg.cpp8
-rw-r--r--kmymoney2/dialogs/kequitypriceupdatedlg.cpp14
-rw-r--r--kmymoney2/dialogs/kmymoneyfileinfodlg.cpp4
-rw-r--r--kmymoney2/dialogs/kmymoneysplittable.cpp4
-rw-r--r--kmymoney2/dialogs/kmymoneysplittable.h2
-rw-r--r--kmymoney2/dialogs/transactionmatcher.cpp4
7 files changed, 21 insertions, 21 deletions
diff --git a/kmymoney2/dialogs/kbalancechartdlg.cpp b/kmymoney2/dialogs/kbalancechartdlg.cpp
index ef86bee..64ee282 100644
--- a/kmymoney2/dialogs/kbalancechartdlg.cpp
+++ b/kmymoney2/dialogs/kbalancechartdlg.cpp
@@ -98,7 +98,7 @@ KBalanceChartDlg::KBalanceChartDlg(const MyMoneyAccount& account, TQWidget* pare
// draw future values in a different line style
KDChartPropertySet propSetFutureValue("future value", KMM_KDCHART_PROPSET_NORMAL_DATA);
- propSetFutureValue.setLineStyle(KDChartPropertySet::OwnID, Qt::DotLine);
+ propSetFutureValue.setLineStyle(KDChartPropertySet::OwnID, TQt::DotLine);
int m_idPropFutureValue = chartWidget->params()->registerProperties(propSetFutureValue);
KDChartPropertySet propSetLastValue("last value", m_idPropFutureValue);
@@ -109,13 +109,13 @@ KBalanceChartDlg::KBalanceChartDlg(const MyMoneyAccount& account, TQWidget* pare
int m_idPropLastValue = chartWidget->params()->registerProperties(propSetLastValue);
KDChartPropertySet propSetMinBalance("min balance", m_idPropFutureValue);
- propSetMinBalance.setLineStyle(KDChartPropertySet::OwnID, Qt::NoPen);
+ propSetMinBalance.setLineStyle(KDChartPropertySet::OwnID, TQt::NoPen);
propSetMinBalance.setExtraLinesAlign(KDChartPropertySet::OwnID, TQt::AlignLeft | TQt::AlignRight);
int m_idPropMinBalance = chartWidget->params()->registerProperties(propSetMinBalance);
KDChartPropertySet propSetMaxCredit("max credit", m_idPropMinBalance);
propSetMaxCredit.setExtraLinesColor(KDChartPropertySet::OwnID, KMyMoneyGlobalSettings::listNegativeValueColor());
- propSetMaxCredit.setExtraLinesStyle(KDChartPropertySet::OwnID, Qt::DotLine);
+ propSetMaxCredit.setExtraLinesStyle(KDChartPropertySet::OwnID, TQt::DotLine);
int m_idPropMaxCredit = chartWidget->params()->registerProperties(propSetMaxCredit);
KBalanceChartDlgLayout->addWidget(chartWidget, 10);
diff --git a/kmymoney2/dialogs/kendingbalancedlg.cpp b/kmymoney2/dialogs/kendingbalancedlg.cpp
index 71e497d..f84c254 100644
--- a/kmymoney2/dialogs/kendingbalancedlg.cpp
+++ b/kmymoney2/dialogs/kendingbalancedlg.cpp
@@ -121,7 +121,7 @@ KEndingBalanceDlg::KEndingBalanceDlg(const MyMoneyAccount& account, TQWidget *pa
value = account.value("statementDate");
if(!value.isEmpty())
- m_statementDate->setDate(TQDate::fromString(value, Qt::ISODate));
+ m_statementDate->setDate(TQDate::fromString(value, TQt::ISODate));
m_lastStatementDate->setText(TQString());
if(account.lastReconciliationDate().isValid()) {
@@ -205,18 +205,18 @@ void KEndingBalanceDlg::slotUpdateBalances(void)
const MyMoneySplit& split = (*it).second;
balance -= split.shares() * factor;
if((*it).first.postDate() > m_statementDate->date()) {
- tracer.printf("Reducing balances by %s because postdate of %s/%s(%s) is past statement date", (split.shares() * factor).formatMoney("", 2).local8Bit().data(), (*it).first.id().local8Bit().data(),split.id().local8Bit().data(), (*it).first.postDate().toString(Qt::ISODate).local8Bit().data());
+ tracer.printf("Reducing balances by %s because postdate of %s/%s(%s) is past statement date", (split.shares() * factor).formatMoney("", 2).local8Bit().data(), (*it).first.id().local8Bit().data(),split.id().local8Bit().data(), (*it).first.postDate().toString(TQt::ISODate).local8Bit().data());
endBalance -= split.shares() * factor;
startBalance -= split.shares() * factor;
} else {
switch(split.reconcileFlag()) {
case MyMoneySplit::NotReconciled:
- tracer.printf("Reducing balances by %s because %s/%s(%s) is not reconciled", (split.shares() * factor).formatMoney("", 2).local8Bit().data(), (*it).first.id().local8Bit().data(), split.id().local8Bit().data(), (*it).first.postDate().toString(Qt::ISODate).local8Bit().data());
+ tracer.printf("Reducing balances by %s because %s/%s(%s) is not reconciled", (split.shares() * factor).formatMoney("", 2).local8Bit().data(), (*it).first.id().local8Bit().data(), split.id().local8Bit().data(), (*it).first.postDate().toString(TQt::ISODate).local8Bit().data());
endBalance -= split.shares() * factor;
startBalance -= split.shares() * factor;
break;
case MyMoneySplit::Cleared:
- tracer.printf("Reducing start balance by %s because %s/%s(%s) is cleared", (split.shares() * factor).formatMoney("", 2).local8Bit().data(), (*it).first.id().local8Bit().data(), split.id().local8Bit().data(), (*it).first.postDate().toString(Qt::ISODate).local8Bit().data());
+ tracer.printf("Reducing start balance by %s because %s/%s(%s) is cleared", (split.shares() * factor).formatMoney("", 2).local8Bit().data(), (*it).first.id().local8Bit().data(), split.id().local8Bit().data(), (*it).first.postDate().toString(TQt::ISODate).local8Bit().data());
startBalance -= split.shares() * factor;
break;
default:
diff --git a/kmymoney2/dialogs/kequitypriceupdatedlg.cpp b/kmymoney2/dialogs/kequitypriceupdatedlg.cpp
index c32e500..adbe044 100644
--- a/kmymoney2/dialogs/kequitypriceupdatedlg.cpp
+++ b/kmymoney2/dialogs/kequitypriceupdatedlg.cpp
@@ -226,7 +226,7 @@ void KEquityPriceUpdateDlg::addPricePair(const MyMoneySecurityPair& pair, bool d
i18n("%1 units in %2").arg(pair.first,pair.second));
if(pr.isValid()) {
item->setText(PRICE_COL, pr.rate(pair.second).formatMoney(file->currency(pair.second).tradingSymbol(), KMyMoneyGlobalSettings::pricePrecision()));
- item->setText(DATE_COL, pr.date().toString(Qt::ISODate));
+ item->setText(DATE_COL, pr.date().toString(TQt::ISODate));
}
item->setText(ID_COL,id);
item->setText(SOURCE_COL, "Yahoo Currency"); // This string value should not be localized
@@ -260,7 +260,7 @@ void KEquityPriceUpdateDlg::addInvestment(const MyMoneySecurity& inv)
MyMoneyPrice pr = file->price(id.utf8(), inv.tradingCurrency());
if(pr.isValid()) {
item->setText(PRICE_COL, pr.rate(currency.id()).formatMoney(currency.tradingSymbol(), KMyMoneyGlobalSettings::pricePrecision()));
- item->setText(DATE_COL, pr.date().toString(Qt::ISODate));
+ item->setText(DATE_COL, pr.date().toString(TQt::ISODate));
}
item->setText(ID_COL,id);
if (inv.value("kmm-online-quote-system") == "Finance::Quote")
@@ -306,13 +306,13 @@ MyMoneyPrice KEquityPriceUpdateDlg::price(const TQString& id) const
TQStringList ids = TQStringList::split(" ",TQString(id));
TQString fromid = ids[0].utf8();
TQString toid = ids[1].utf8();
- price = MyMoneyPrice(fromid,toid,TQDate().fromString(item->text(DATE_COL), Qt::ISODate),rate,item->text(SOURCE_COL));
+ price = MyMoneyPrice(fromid,toid,TQDate().fromString(item->text(DATE_COL), TQt::ISODate),rate,item->text(SOURCE_COL));
}
else
// otherwise, it's a security quote
{
MyMoneySecurity security = MyMoneyFile::instance()->security(id);
- price = MyMoneyPrice(id, security.tradingCurrency(), TQDate().fromString(item->text(DATE_COL), Qt::ISODate), rate, item->text(SOURCE_COL));
+ price = MyMoneyPrice(id, security.tradingCurrency(), TQDate().fromString(item->text(DATE_COL), TQt::ISODate), rate, item->text(SOURCE_COL));
}
}
}
@@ -347,7 +347,7 @@ void KEquityPriceUpdateDlg::storePrices(void)
TQString fromid = ids[0].utf8();
TQString toid = ids[1].utf8();
name = TQString("%1 --> %2").arg(fromid).arg(toid);
- MyMoneyPrice price(fromid,toid,TQDate().fromString(item->text(DATE_COL), Qt::ISODate),rate,item->text(SOURCE_COL));
+ MyMoneyPrice price(fromid,toid,TQDate().fromString(item->text(DATE_COL), TQt::ISODate),rate,item->text(SOURCE_COL));
file->addPrice(price);
}
else
@@ -355,7 +355,7 @@ void KEquityPriceUpdateDlg::storePrices(void)
{
MyMoneySecurity security = MyMoneyFile::instance()->security(id);
name = security.name();
- MyMoneyPrice price(id, security.tradingCurrency(), TQDate().fromString(item->text(DATE_COL), Qt::ISODate), rate, item->text(SOURCE_COL));
+ MyMoneyPrice price(id, security.tradingCurrency(), TQDate().fromString(item->text(DATE_COL), TQt::ISODate), rate, item->text(SOURCE_COL));
// TODO (Ace) Better handling of the case where there is already a price
// for this date. Currently, it just overrides the old value. Really it
@@ -528,7 +528,7 @@ void KEquityPriceUpdateDlg::slotReceivedQuote(const TQString& _id, const TQStrin
}
}
item->setText(PRICE_COL, TDEGlobal::locale()->formatMoney(price, sec.tradingSymbol(), KMyMoneyGlobalSettings::pricePrecision()));
- item->setText(DATE_COL, date.toString(Qt::ISODate));
+ item->setText(DATE_COL, date.toString(TQt::ISODate));
logStatusMessage(i18n("Price for %1 updated (id %2)").arg(_symbol,_id));
// make sure to make OK button available
btnOK->setEnabled(true);
diff --git a/kmymoney2/dialogs/kmymoneyfileinfodlg.cpp b/kmymoney2/dialogs/kmymoneyfileinfodlg.cpp
index da23184..89a4635 100644
--- a/kmymoney2/dialogs/kmymoneyfileinfodlg.cpp
+++ b/kmymoney2/dialogs/kmymoneyfileinfodlg.cpp
@@ -48,8 +48,8 @@ KMyMoneyFileInfoDlg::KMyMoneyFileInfoDlg(TQWidget *parent, const char *name )
// Now fill the fields with data
IMyMoneyStorage* storage = MyMoneyFile::instance()->storage();
- m_creationDate->setText(storage->creationDate().toString(Qt::ISODate));
- m_lastModificationDate->setText(storage->lastModificationDate().toString(Qt::ISODate));
+ m_creationDate->setText(storage->creationDate().toString(TQt::ISODate));
+ m_lastModificationDate->setText(storage->lastModificationDate().toString(TQt::ISODate));
m_baseCurrency->setText(storage->value("kmm-baseCurrency"));
m_payeeCount->setText(TQString("%1").arg(storage->payeeList().count()));
diff --git a/kmymoney2/dialogs/kmymoneysplittable.cpp b/kmymoney2/dialogs/kmymoneysplittable.cpp
index 5a93427..3d3b0c1 100644
--- a/kmymoney2/dialogs/kmymoneysplittable.cpp
+++ b/kmymoney2/dialogs/kmymoneysplittable.cpp
@@ -397,7 +397,7 @@ void kMyMoneySplitTable::slotSetFocus(int realrow, int /* col */, int button, co
// make sure the row will be on the screen
ensureCellVisible(row, 0);
- if(button == Qt::LeftButton) { // left mouse button
+ if(button == TQt::LeftButton) { // left mouse button
if(isEditMode()) { // in edit mode?
if(KMyMoneyGlobalSettings::focusChangeIsEnter())
slotEndEdit();
@@ -409,7 +409,7 @@ void kMyMoneySplitTable::slotSetFocus(int realrow, int /* col */, int button, co
setCurrentCell(row, 0);
slotUpdateData(m_transaction);
}
- } else if(button == Qt::RightButton) {
+ } else if(button == TQt::RightButton) {
// context menu is only available when cursor is on
// an existing transaction or the first line after this area
if(row == realrow) {
diff --git a/kmymoney2/dialogs/kmymoneysplittable.h b/kmymoney2/dialogs/kmymoneysplittable.h
index 1aa2e76..15b40b2 100644
--- a/kmymoney2/dialogs/kmymoneysplittable.h
+++ b/kmymoney2/dialogs/kmymoneysplittable.h
@@ -152,7 +152,7 @@ protected slots:
virtual void columnWidthChanged(int col);
/// move the focus to the selected @p row.
- void slotSetFocus(int row, int col = 0, int button = Qt::LeftButton, const TQPoint & mousePos = TQPoint(0, 0));
+ void slotSetFocus(int row, int col = 0, int button = TQt::LeftButton, const TQPoint & mousePos = TQPoint(0, 0));
/**
* Calling this slot refills the widget with the data
diff --git a/kmymoney2/dialogs/transactionmatcher.cpp b/kmymoney2/dialogs/transactionmatcher.cpp
index ecf54eb..ad3262b 100644
--- a/kmymoney2/dialogs/transactionmatcher.cpp
+++ b/kmymoney2/dialogs/transactionmatcher.cpp
@@ -178,7 +178,7 @@ void TransactionMatcher::match(MyMoneyTransaction tm, MyMoneySplit sm, MyMoneyTr
// We use the imported postdate and keep the previous one for unmatch
if(tm.postDate() != ti.postDate()) {
- sm.setValue("kmm-orig-postdate", tm.postDate().toString(Qt::ISODate));
+ sm.setValue("kmm-orig-postdate", tm.postDate().toString(TQt::ISODate));
tm.setPostDate(ti.postDate());
}
@@ -221,7 +221,7 @@ void TransactionMatcher::unmatch(const MyMoneyTransaction& _t, const MyMoneySpli
// restore the postdate if modified
if(!sm.value("kmm-orig-postdate").isEmpty()) {
- tm.setPostDate(TQDate::fromString(sm.value("kmm-orig-postdate"), Qt::ISODate));
+ tm.setPostDate(TQDate::fromString(sm.value("kmm-orig-postdate"), TQt::ISODate));
}
// restore payee if modified