summaryrefslogtreecommitdiffstats
path: root/kmymoney2
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-02-14 21:08:40 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-02-14 21:08:40 -0600
commit6253301bb0416ee072c359c595d7558b1ce65b4d (patch)
treecfea0626f0d0ed1985d4fbabe028ed0bb721a37b /kmymoney2
parentf5f2600959081159bf4ba430f73fb9f0019c2b42 (diff)
downloadkmymoney-6253301bb0416ee072c359c595d7558b1ce65b4d.tar.gz
kmymoney-6253301bb0416ee072c359c595d7558b1ce65b4d.zip
Update various qt function definitions and static methods for tqt3
Diffstat (limited to 'kmymoney2')
-rw-r--r--kmymoney2/converter/mymoneygncreader.cpp20
-rw-r--r--kmymoney2/mymoney/mymoneystatement.cpp2
-rw-r--r--kmymoney2/mymoney/storage/mymoneystoragexml.cpp12
-rw-r--r--kmymoney2/plugins/ofximport/dialogs/konlinebankingsetupwizard.cpp2
-rw-r--r--kmymoney2/plugins/ofximport/ofximporterplugin.cpp2
-rw-r--r--kmymoney2/reports/reportstestcommon.cpp4
-rw-r--r--kmymoney2/views/khomeview.cpp10
-rw-r--r--kmymoney2/widgets/kmymoneyselector.cpp4
8 files changed, 28 insertions, 28 deletions
diff --git a/kmymoney2/converter/mymoneygncreader.cpp b/kmymoney2/converter/mymoneygncreader.cpp
index 924bda2..553362a 100644
--- a/kmymoney2/converter/mymoneygncreader.cpp
+++ b/kmymoney2/converter/mymoneygncreader.cpp
@@ -1042,8 +1042,8 @@ MyMoneyGncReader::~MyMoneyGncReader() {}
#ifndef _GNCFILEANON
void MyMoneyGncReader::readFile(TQIODevice* pDevice, IMyMoneySerialize* storage) {
- Q_CHECK_PTR (pDevice);
- Q_CHECK_PTR (storage);
+ TQ_CHECK_PTR (pDevice);
+ TQ_CHECK_PTR (storage);
m_storage = dynamic_cast<IMyMoneyStorage *>(storage);
qDebug ("Entering gnucash importer");
@@ -1130,7 +1130,7 @@ void MyMoneyGncReader::setFileHideFactor () {
//********************************* convertCommodity *******************************************
void MyMoneyGncReader::convertCommodity (const GncCommodity *gcm) {
- Q_CHECK_PTR (gcm);
+ TQ_CHECK_PTR (gcm);
MyMoneySecurity equ;
if (m_commodityCount == 0) signalProgress (0, m_gncCommodityCount, i18n("Loading commodities..."));
if (!gcm->isCurrency()) { // currencies should not be present here but...
@@ -1155,7 +1155,7 @@ void MyMoneyGncReader::convertCommodity (const GncCommodity *gcm) {
//******************************* convertPrice ************************************************
void MyMoneyGncReader::convertPrice (const GncPrice *gpr) {
- Q_CHECK_PTR (gpr);
+ TQ_CHECK_PTR (gpr);
// add this to our price history
if (m_priceCount == 0) signalProgress (0, 1, i18n("Loading prices..."));
MyMoneyMoney rate = convBadValue (gpr->value());
@@ -1178,7 +1178,7 @@ void MyMoneyGncReader::convertPrice (const GncPrice *gpr) {
//*********************************convertAccount ****************************************
void MyMoneyGncReader::convertAccount (const GncAccount* gac) {
- Q_CHECK_PTR (gac);
+ TQ_CHECK_PTR (gac);
TRY
// we don't care about the GNC root account
if("ROOT" == gac->type()) {
@@ -1321,7 +1321,7 @@ void MyMoneyGncReader::convertAccount (const GncAccount* gac) {
//********************************************** convertTransaction *****************************
void MyMoneyGncReader::convertTransaction (const GncTransaction *gtx) {
- Q_CHECK_PTR (gtx);
+ TQ_CHECK_PTR (gtx);
MyMoneyTransaction tx;
MyMoneySplit split;
unsigned int i;
@@ -1385,7 +1385,7 @@ void MyMoneyGncReader::convertTransaction (const GncTransaction *gtx) {
}
//******************************************convertSplit********************************
void MyMoneyGncReader::convertSplit (const GncSplit *gsp) {
- Q_CHECK_PTR (gsp);
+ TQ_CHECK_PTR (gsp);
MyMoneySplit split;
MyMoneyAccount splitAccount;
// find the kmm account id coresponding to the gnc id
@@ -1512,7 +1512,7 @@ void MyMoneyGncReader::convertSplit (const GncSplit *gsp) {
//********************************* convertTemplateTransaction **********************************************
MyMoneyTransaction MyMoneyGncReader::convertTemplateTransaction (const TQString& schedName, const GncTransaction *gtx) {
- Q_CHECK_PTR (gtx);
+ TQ_CHECK_PTR (gtx);
MyMoneyTransaction tx;
MyMoneySplit split;
unsigned int i;
@@ -1584,7 +1584,7 @@ MyMoneyTransaction MyMoneyGncReader::convertTemplateTransaction (const TQString&
}
//********************************* convertTemplateSplit ****************************************************
void MyMoneyGncReader::convertTemplateSplit (const TQString& schedName, const GncTemplateSplit *gsp) {
- Q_CHECK_PTR (gsp);
+ TQ_CHECK_PTR (gsp);
// convertTemplateSplit
MyMoneySplit split;
MyMoneyAccount splitAccount;
@@ -1712,7 +1712,7 @@ void MyMoneyGncReader::convertTemplateSplit (const TQString& schedName, const Gn
//********************************* convertSchedule ********************************************************
void MyMoneyGncReader::convertSchedule (const GncSchedule *gsc) {
TRY
- Q_CHECK_PTR (gsc);
+ TQ_CHECK_PTR (gsc);
MyMoneySchedule sc;
MyMoneyTransaction tx;
m_suspectSchedule = false;
diff --git a/kmymoney2/mymoney/mymoneystatement.cpp b/kmymoney2/mymoney/mymoneystatement.cpp
index 2f8ea0e..80b2c48 100644
--- a/kmymoney2/mymoney/mymoneystatement.cpp
+++ b/kmymoney2/mymoney/mymoneystatement.cpp
@@ -250,7 +250,7 @@ void MyMoneyStatement::writeXMLFile( const MyMoneyStatement& _s, const TQString&
}
TQDomDocument* doc = new TQDomDocument("KMYMONEY-STATEMENT");
- Q_CHECK_PTR(doc);
+ TQ_CHECK_PTR(doc);
//writeStatementtoXMLDoc(_s,doc);
TQDomProcessingInstruction instruct = doc->createProcessingInstruction(TQString("xml"), TQString("version=\"1.0\" encoding=\"utf-8\""));
diff --git a/kmymoney2/mymoney/storage/mymoneystoragexml.cpp b/kmymoney2/mymoney/storage/mymoneystoragexml.cpp
index da3ca93..a95668f 100644
--- a/kmymoney2/mymoney/storage/mymoneystoragexml.cpp
+++ b/kmymoney2/mymoney/storage/mymoneystoragexml.cpp
@@ -375,15 +375,15 @@ MyMoneyStorageXML::~MyMoneyStorageXML()
// Function to read in the file, send to XML parser.
void MyMoneyStorageXML::readFile(TQIODevice* pDevice, IMyMoneySerialize* storage)
{
- Q_CHECK_PTR(storage);
- Q_CHECK_PTR(pDevice);
+ TQ_CHECK_PTR(storage);
+ TQ_CHECK_PTR(pDevice);
if(!storage)
return;
m_storage = storage;
m_doc = new TQDomDocument;
- Q_CHECK_PTR(m_doc);
+ TQ_CHECK_PTR(m_doc);
qDebug("reading file");
// creating the TQXmlInputSource object based on a TQIODevice object
@@ -423,8 +423,8 @@ void MyMoneyStorageXML::readFile(TQIODevice* pDevice, IMyMoneySerialize* storage
void MyMoneyStorageXML::writeFile(TQIODevice* qf, IMyMoneySerialize* storage)
{
- Q_CHECK_PTR(qf);
- Q_CHECK_PTR(storage);
+ TQ_CHECK_PTR(qf);
+ TQ_CHECK_PTR(storage);
if(!storage)
{
return;
@@ -433,7 +433,7 @@ void MyMoneyStorageXML::writeFile(TQIODevice* qf, IMyMoneySerialize* storage)
// qDebug("XMLWRITER: Starting file write");
m_doc = new TQDomDocument("KMYMONEY-FILE");
- Q_CHECK_PTR(m_doc);
+ TQ_CHECK_PTR(m_doc);
TQDomProcessingInstruction instruct = m_doc->createProcessingInstruction("xml", "version=\"1.0\" encoding=\"utf-8\"");
m_doc->appendChild(instruct);
diff --git a/kmymoney2/plugins/ofximport/dialogs/konlinebankingsetupwizard.cpp b/kmymoney2/plugins/ofximport/dialogs/konlinebankingsetupwizard.cpp
index bdb0b23..5ac0f89 100644
--- a/kmymoney2/plugins/ofximport/dialogs/konlinebankingsetupwizard.cpp
+++ b/kmymoney2/plugins/ofximport/dialogs/konlinebankingsetupwizard.cpp
@@ -255,7 +255,7 @@ bool KOnlineBankingSetupWizard::finishLoginPage(void)
req.resetRawData(request, strlen(request));
LibofxContextPtr ctx = libofx_get_new_context();
- Q_CHECK_PTR(ctx);
+ TQ_CHECK_PTR(ctx);
ofx_set_account_cb(ctx, ofxAccountCallback, this);
ofx_set_status_cb(ctx, ofxStatusCallback, this);
diff --git a/kmymoney2/plugins/ofximport/ofximporterplugin.cpp b/kmymoney2/plugins/ofximport/ofximporterplugin.cpp
index a155ccc..d4d6244 100644
--- a/kmymoney2/plugins/ofximport/ofximporterplugin.cpp
+++ b/kmymoney2/plugins/ofximport/ofximporterplugin.cpp
@@ -135,7 +135,7 @@ bool OfxImporterPlugin::import( const TQString& filename )
TQCString filename_deep( filename.utf8() );
LibofxContextPtr ctx = libofx_get_new_context();
- Q_CHECK_PTR(ctx);
+ TQ_CHECK_PTR(ctx);
ofx_set_transaction_cb(ctx, ofxTransactionCallback, this);
ofx_set_statement_cb(ctx, ofxStatementCallback, this);
diff --git a/kmymoney2/reports/reportstestcommon.cpp b/kmymoney2/reports/reportstestcommon.cpp
index 44f90df..a64f04e 100644
--- a/kmymoney2/reports/reportstestcommon.cpp
+++ b/kmymoney2/reports/reportstestcommon.cpp
@@ -390,7 +390,7 @@ void writeRCFtoXML( const MyMoneyReport& filter, const TQString& _filename )
}
TQDomDocument* doc = new TQDomDocument("KMYMONEY-FILE");
- Q_CHECK_PTR(doc);
+ TQ_CHECK_PTR(doc);
writeRCFtoXMLDoc(filter,doc);
@@ -466,7 +466,7 @@ void XMLandback( MyMoneyReport& filter )
// & write methods are working correctly.
TQDomDocument* doc = new TQDomDocument("KMYMONEY-FILE");
- Q_CHECK_PTR(doc);
+ TQ_CHECK_PTR(doc);
writeRCFtoXMLDoc(filter,doc);
TQValueList<MyMoneyReport> list;
diff --git a/kmymoney2/views/khomeview.cpp b/kmymoney2/views/khomeview.cpp
index 8745d64..bb13614 100644
--- a/kmymoney2/views/khomeview.cpp
+++ b/kmymoney2/views/khomeview.cpp
@@ -1131,19 +1131,19 @@ void KHomeView::slotOpenURL(const KURL &url, const KParts::URLArgs& /* args */)
if(mode == "enter") {
emit scheduleSelected(id);
KMainWindow* mw = dynamic_cast<KMainWindow*>(tqApp->mainWidget());
- Q_CHECK_PTR(mw);
+ TQ_CHECK_PTR(mw);
TQTimer::singleShot(0, mw->actionCollection()->action("schedule_enter"), TQT_SLOT(activate()));
} else if(mode == "edit") {
emit scheduleSelected(id);
KMainWindow* mw = dynamic_cast<KMainWindow*>(tqApp->mainWidget());
- Q_CHECK_PTR(mw);
+ TQ_CHECK_PTR(mw);
TQTimer::singleShot(0, mw->actionCollection()->action("schedule_edit"), TQT_SLOT(activate()));
} else if(mode == "skip") {
emit scheduleSelected(id);
KMainWindow* mw = dynamic_cast<KMainWindow*>(tqApp->mainWidget());
- Q_CHECK_PTR(mw);
+ TQ_CHECK_PTR(mw);
TQTimer::singleShot(0, mw->actionCollection()->action("schedule_skip"), TQT_SLOT(activate()));
} else if(mode == "full") {
@@ -1160,7 +1160,7 @@ void KHomeView::slotOpenURL(const KURL &url, const KParts::URLArgs& /* args */)
} else if(view == VIEW_WELCOME) {
KMainWindow* mw = dynamic_cast<KMainWindow*>(tqApp->mainWidget());
- Q_CHECK_PTR(mw);
+ TQ_CHECK_PTR(mw);
if ( mode == "whatsnew" )
{
TQString fname = KMyMoneyUtils::findResource("appdata",TQString("html/whats_new%1.html"));
@@ -1172,7 +1172,7 @@ void KHomeView::slotOpenURL(const KURL &url, const KParts::URLArgs& /* args */)
} else if(view == "action") {
KMainWindow* mw = dynamic_cast<KMainWindow*>(tqApp->mainWidget());
- Q_CHECK_PTR(mw);
+ TQ_CHECK_PTR(mw);
TQTimer::singleShot(0, mw->actionCollection()->action( id ), TQT_SLOT(activate()));
} else if(view == VIEW_HOME) {
diff --git a/kmymoney2/widgets/kmymoneyselector.cpp b/kmymoney2/widgets/kmymoneyselector.cpp
index 9b1d819..4f8af45 100644
--- a/kmymoney2/widgets/kmymoneyselector.cpp
+++ b/kmymoney2/widgets/kmymoneyselector.cpp
@@ -468,7 +468,7 @@ void KMyMoneySelector::setSelected(const TQString& id, const bool state)
while((it_v = it.current()) != 0) {
if(it_v->rtti() == 1) {
KMyMoneyCheckListItem* it_c = dynamic_cast<KMyMoneyCheckListItem*>(it_v);
- Q_CHECK_PTR(it_c);
+ TQ_CHECK_PTR(it_c);
if(it_c->type() == TQCheckListItem::CheckBox) {
if(it_c->id() == id) {
it_c->setOn(state);
@@ -479,7 +479,7 @@ void KMyMoneySelector::setSelected(const TQString& id, const bool state)
}
} else if(it_v->rtti() == 0) {
KMyMoneyListViewItem* it_c = dynamic_cast<KMyMoneyListViewItem*>(it_v);
- Q_CHECK_PTR(it_c);
+ TQ_CHECK_PTR(it_c);
if(it_c->id() == id) {
m_listView->setSelected(it_v, true);
if(!it_visible)