From 902ba103f2215bcefa22d62b1c9138aa4b88891c Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 22:19:39 +0000 Subject: 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 --- kmymoney2/widgets/kaccounttemplateselector.cpp | 30 +++++++++++++------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'kmymoney2/widgets/kaccounttemplateselector.cpp') diff --git a/kmymoney2/widgets/kaccounttemplateselector.cpp b/kmymoney2/widgets/kaccounttemplateselector.cpp index 2fd689b..6e96b78 100644 --- a/kmymoney2/widgets/kaccounttemplateselector.cpp +++ b/kmymoney2/widgets/kaccounttemplateselector.cpp @@ -41,14 +41,14 @@ class KTemplateListItem : public KListViewItem { public: - KTemplateListItem(TQListViewItem* tqparent, const TQString& text); + KTemplateListItem(TQListViewItem* parent, const TQString& text); void setAvailable(void); public: bool m_isAvailable; }; -KTemplateListItem::KTemplateListItem(TQListViewItem* tqparent, const TQString& text) : - KListViewItem(tqparent, text), +KTemplateListItem::KTemplateListItem(TQListViewItem* parent, const TQString& text) : + KListViewItem(parent, text), m_isAvailable(false) { } @@ -64,7 +64,7 @@ class KAccountTemplateSelector::Private Private(KAccountTemplateSelector* p) { m_parent = p; } #ifndef KMM_DESIGNER TQValueList selectedTemplates(void) const; - TQListViewItem* hierarchyItem(const TQString& tqparent, const TQString& name); + TQListViewItem* hierarchyItem(const TQString& parent, const TQString& name); void loadHierarchy(void); #endif @@ -82,15 +82,15 @@ class KAccountTemplateSelector::Private #ifndef KMM_DESIGNER -TQListViewItem* KAccountTemplateSelector::Private::hierarchyItem(const TQString& tqparent, const TQString& name) +TQListViewItem* KAccountTemplateSelector::Private::hierarchyItem(const TQString& parent, const TQString& name) { - if(!m_templateHierarchy.contains(tqparent) - || m_templateHierarchy[tqparent] == 0) { + if(!m_templateHierarchy.contains(parent) + || m_templateHierarchy[parent] == 0) { TQRegExp exp("(.*):(.*)"); - if(exp.search(tqparent) != -1) - m_templateHierarchy[tqparent] = hierarchyItem(exp.cap(1), exp.cap(2)); + if(exp.search(parent) != -1) + m_templateHierarchy[parent] = hierarchyItem(exp.cap(1), exp.cap(2)); } - return new KTemplateListItem(m_templateHierarchy[tqparent], name); + return new KTemplateListItem(m_templateHierarchy[parent], name); } void KAccountTemplateSelector::Private::loadHierarchy(void) @@ -159,8 +159,8 @@ TQValueList KAccountTemplateSelector::Private::selectedTemplate #endif -KAccountTemplateSelector::KAccountTemplateSelector(TQWidget* tqparent, const char* name) : - KAccountTemplateSelectorDecl(tqparent, name), +KAccountTemplateSelector::KAccountTemplateSelector(TQWidget* parent, const char* name) : + KAccountTemplateSelectorDecl(parent, name), d(new Private(this)) { m_accountList->header()->hide(); @@ -233,8 +233,8 @@ void KAccountTemplateSelector::slotLoadCountry(void) { #ifndef KMM_DESIGNER - KListViewItem* tqparent = new KListViewItem(m_groupList, d->it_m.key()); - tqparent->setSelectable(false); + KListViewItem* parent = new KListViewItem(m_groupList, d->it_m.key()); + parent->setSelectable(false); TQStringList::iterator it; for(it = d->dirlist.begin(); it != d->dirlist.end(); ++it) { TQStringList::iterator it_f; @@ -244,7 +244,7 @@ void KAccountTemplateSelector::slotLoadCountry(void) for(it_f = files.begin(); it_f != files.end(); ++it_f) { MyMoneyTemplate templ(TQString("%1/%2").tqarg(dir.canonicalPath()).tqarg(*it_f)); d->m_templates[TQString("%1").tqarg(d->id)] = templ; - new KListViewItem(tqparent, templ.title(), templ.shortDescription(), TQString("%1").tqarg(d->id)); + new KListViewItem(parent, templ.title(), templ.shortDescription(), TQString("%1").tqarg(d->id)); ++d->id; } } -- cgit v1.2.1