summaryrefslogtreecommitdiffstats
path: root/kmymoney2/views/kmymoneyview.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
commit902ba103f2215bcefa22d62b1c9138aa4b88891c (patch)
tree63ef88424b9be33a31e5a8de61343fb8d7633937 /kmymoney2/views/kmymoneyview.cpp
parent7e51b6d5ddc01fc3bc69f30bc5d3933a7709dbf2 (diff)
downloadkmymoney-902ba103f2215bcefa22d62b1c9138aa4b88891c.tar.gz
kmymoney-902ba103f2215bcefa22d62b1c9138aa4b88891c.zip
rename the following methods:
tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmymoney@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmymoney2/views/kmymoneyview.cpp')
-rw-r--r--kmymoney2/views/kmymoneyview.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/kmymoney2/views/kmymoneyview.cpp b/kmymoney2/views/kmymoneyview.cpp
index 2c3a10d..ccdc5a7 100644
--- a/kmymoney2/views/kmymoneyview.cpp
+++ b/kmymoney2/views/kmymoneyview.cpp
@@ -120,15 +120,15 @@
#define RECOVER_KEY_ID "0xD2B08440"
-KMyMoneyView::KMyMoneyView(TQWidget *tqparent, const char *name)
- : KJanusWidget(tqparent, name, KJanusWidget::IconList),
+KMyMoneyView::KMyMoneyView(TQWidget *parent, const char *name)
+ : KJanusWidget(parent, name, KJanusWidget::IconList),
// m_bankRightClick(false),
m_inConstructor(true),
m_fileOpen(false),
m_fmode(0600)
{
// the global variable kmymoney2 is not yet assigned. So we construct it here
- TQObject* kmymoney2 = tqparent->tqparent();
+ TQObject* kmymoney2 = parent->parent();
const int iconSize = (KMyMoneyGlobalSettings::iconSize()+1)*16;
newStorage();
@@ -276,9 +276,9 @@ KMyMoneyView::~KMyMoneyView()
removeStorage();
}
-void KMyMoneyView::addTitleBar(TQWidget* tqparent, const TQString& title)
+void KMyMoneyView::addTitleBar(TQWidget* parent, const TQString& title)
{
- KMyMoneyTitleLabel* label = new KMyMoneyTitleLabel( tqparent, "titleLabel" );
+ KMyMoneyTitleLabel* label = new KMyMoneyTitleLabel( parent, "titleLabel" );
label->setMinimumSize( TQSize( 100, 30 ) );
label->setRightImageFile("pics/titlelabel_background.png" );
label->setText(title);
@@ -459,7 +459,7 @@ void KMyMoneyView::slotLedgerSelected(const TQString& _accId, const TQString& tr
switch(acc.accountType()) {
case MyMoneyAccount::Stock:
// if a stock account is selected, we show the
- // the corresponding tqparent (investment) account
+ // the corresponding parent (investment) account
acc = MyMoneyFile::instance()->account(acc.parentAccountId());
accId = acc.id();
// tricky fall through here
@@ -1007,7 +1007,7 @@ void KMyMoneyView::saveToLocalFile(TQFile* qfile, IMyMoneyStorageFormat* pWriter
}
}
- int tqmask = umask((~m_fmode) & 0777);
+ int mask = umask((~m_fmode) & 0777);
bool blocked = MyMoneyFile::instance()->signalsBlocked();
MyMoneyFile::instance()->blockSignals(true);
MyMoneyFileTransaction ft;
@@ -1050,7 +1050,7 @@ void KMyMoneyView::saveToLocalFile(TQFile* qfile, IMyMoneyStorageFormat* pWriter
statusDevice = base->device();
}
}
- umask(tqmask);
+ umask(mask);
ft.commit();
pWriter->setProgressCallback(&KMyMoneyView::progressCallback);
@@ -1135,9 +1135,9 @@ bool KMyMoneyView::saveFile(const KURL& url, const TQString& keyList)
// create a new basic block here, so that the object qfile gets
// deleted, before we reach the chown() call
{
- int tqmask = umask((~fmode) & 0777);
+ int mask = umask((~fmode) & 0777);
KSaveFile qfile(filename, fmode);
- umask(tqmask);
+ umask(mask);
if(qfile.status() == 0) {
try {
saveToLocalFile(qfile.file(), pWriter, plaintext, keyList);
@@ -1784,14 +1784,14 @@ void KMyMoneyView::fixFile_0(void)
}
// until early before 0.8 release, the equity account was not saved to
// the file. If we have an equity account with no sub-accounts but
- // find and equity account that has equity() as it's tqparent, we reparent
+ // find and equity account that has equity() as it's parent, we reparent
// this account. Need to move it to asset() first, because otherwise
// MyMoneyFile::reparent would act as NOP.
if(equityListEmpty && (*it_a).accountType() == MyMoneyAccount::Equity) {
if((*it_a).parentAccountId() == equity.id()) {
MyMoneyAccount acc = *it_a;
- // tricky, force tqparent account to be empty so that we really
- // can re-tqparent it
+ // tricky, force parent account to be empty so that we really
+ // can re-parent it
acc.setParentAccountId(TQString());
file->reparentAccount(acc, equity);
kdDebug(2) << __func__ << " fixed account " << acc.id() << " reparented to " << equity.id() << endl;
@@ -2207,8 +2207,8 @@ class KMyMoneyViewBase::Private {
TQVBoxLayout* m_viewLayout;
};
-KMyMoneyViewBase::KMyMoneyViewBase(TQWidget* tqparent, const char* name, const TQString& title) :
- TQWidget(tqparent, name),
+KMyMoneyViewBase::KMyMoneyViewBase(TQWidget* parent, const char* name, const TQString& title) :
+ TQWidget(parent, name),
d(new Private)
{
d->m_viewLayout = new TQVBoxLayout(this);