summaryrefslogtreecommitdiffstats
path: root/kmymoney2/widgets/kaccounttemplateselector.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/widgets/kaccounttemplateselector.cpp')
-rw-r--r--kmymoney2/widgets/kaccounttemplateselector.cpp30
1 files changed, 15 insertions, 15 deletions
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<MyMoneyTemplate> 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<MyMoneyTemplate> 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;
}
}