From a6000c6f2f1a03b34f15d1948f63f0c894f09451 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 1 Feb 2013 15:01:10 -0600 Subject: Rename a number of classes to enhance compatibility with KDE4 --- kmymoney2/widgets/kaccounttemplateselector.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'kmymoney2/widgets/kaccounttemplateselector.cpp') diff --git a/kmymoney2/widgets/kaccounttemplateselector.cpp b/kmymoney2/widgets/kaccounttemplateselector.cpp index badcdff..d7afd37 100644 --- a/kmymoney2/widgets/kaccounttemplateselector.cpp +++ b/kmymoney2/widgets/kaccounttemplateselector.cpp @@ -38,7 +38,7 @@ #include "kaccounttemplateselector.h" -class KTemplateListItem : public KListViewItem +class KTemplateListItem : public TDEListViewItem { public: KTemplateListItem(TQListViewItem* parent, const TQString& text); @@ -48,7 +48,7 @@ class KTemplateListItem : public KListViewItem }; KTemplateListItem::KTemplateListItem(TQListViewItem* parent, const TQString& text) : - KListViewItem(parent, text), + TDEListViewItem(parent, text), m_isAvailable(false) { } @@ -132,7 +132,7 @@ void KAccountTemplateSelector::Private::loadHierarchy(void) TQRegExp exp("(.*):(.*)"); for(it_m = m_templateHierarchy.begin(); it_m != m_templateHierarchy.end(); ++it_m) { if(exp.search(it_m.key()) == -1) { - (*it_m) = new KListViewItem(m_parent->m_accountList, it_m.key()); + (*it_m) = new TDEListViewItem(m_parent->m_accountList, it_m.key()); } else { (*it_m) = hierarchyItem(exp.cap(1), exp.cap(2)); } @@ -233,7 +233,7 @@ void KAccountTemplateSelector::slotLoadCountry(void) { #ifndef KMM_DESIGNER - KListViewItem* parent = new KListViewItem(m_groupList, d->it_m.key()); + TDEListViewItem* parent = new TDEListViewItem(m_groupList, d->it_m.key()); parent->setSelectable(false); TQStringList::iterator it; for(it = d->dirlist.begin(); it != d->dirlist.end(); ++it) { @@ -244,7 +244,7 @@ void KAccountTemplateSelector::slotLoadCountry(void) for(it_f = files.begin(); it_f != files.end(); ++it_f) { MyMoneyTemplate templ(TQString("%1/%2").arg(dir.canonicalPath()).arg(*it_f)); d->m_templates[TQString("%1").arg(d->id)] = templ; - new KListViewItem(parent, templ.title(), templ.shortDescription(), TQString("%1").arg(d->id)); + new TDEListViewItem(parent, templ.title(), templ.shortDescription(), TQString("%1").arg(d->id)); ++d->id; } } -- cgit v1.2.1