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/views/kpayeesview.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'kmymoney2/views/kpayeesview.cpp') diff --git a/kmymoney2/views/kpayeesview.cpp b/kmymoney2/views/kpayeesview.cpp index e600c45..64e94f9 100644 --- a/kmymoney2/views/kpayeesview.cpp +++ b/kmymoney2/views/kpayeesview.cpp @@ -260,8 +260,8 @@ void KTransactionPtrVector::setPayeeId(const TQString& id) // *** KPayeeListItem Implementation *** -KPayeeListItem::KPayeeListItem(KListView *parent, const MyMoneyPayee& payee) : - KListViewItem(parent), +KPayeeListItem::KPayeeListItem(TDEListView *parent, const MyMoneyPayee& payee) : + TDEListViewItem(parent), m_payee(payee) { setText(0, payee.name()); @@ -287,8 +287,8 @@ void KPayeeListItem::paintCell(TQPainter *p, const TQColorGroup & cg, int column TQListViewItem::paintCell(p, cg2, column, width, align); } -KTransactionListItem::KTransactionListItem(KListView* view, KTransactionListItem* parent, const TQString& accountId, const TQString& transactionId) : - KListViewItem(view, parent) +KTransactionListItem::KTransactionListItem(TDEListView* view, KTransactionListItem* parent, const TQString& accountId, const TQString& transactionId) : + TDEListViewItem(view, parent) { m_accountId = accountId; m_transactionId = transactionId; @@ -324,7 +324,7 @@ KPayeesView::KPayeesView(TQWidget *parent, const char *name ) : { // create the searchline widget // and insert it into the existing layout - m_searchWidget = new KListViewSearchLineWidget(m_payeesList, this); + m_searchWidget = new TDEListViewSearchLineWidget(m_payeesList, this); m_searchWidget->setSizePolicy(TQSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed)); KPayeesViewDeclLayout->insertWidget(0, m_searchWidget); @@ -393,7 +393,7 @@ KPayeesView::KPayeesView(TQWidget *parent, const char *name ) : connect(m_updateButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotUpdatePayee())); connect(m_helpButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotHelp())); - connect(m_payeesList, TQT_SIGNAL(contextMenu(KListView*, TQListViewItem*, const TQPoint&)), this, TQT_SLOT(slotOpenContextMenu(KListView*, TQListViewItem*, const TQPoint&))); + connect(m_payeesList, TQT_SIGNAL(contextMenu(TDEListView*, TQListViewItem*, const TQPoint&)), this, TQT_SLOT(slotOpenContextMenu(TDEListView*, TQListViewItem*, const TQPoint&))); // connect(m_payeesList, TQT_SIGNAL(rightButtonClicked(TQListViewItem* , const TQPoint&, int)), // this, TQT_SLOT(slotOpenContextMenu(TQListViewItem*))); @@ -417,7 +417,7 @@ KPayeesView::~KPayeesView() void KPayeesView::slotQueueUpdate(void) { m_updatesQueued++; - // The KListViewSearchLineWidget has an internal timer for update purposes + // The TDEListViewSearchLineWidget has an internal timer for update purposes // of 200 ms, so we should be safe with 250 ms here TQTimer::singleShot(250, this, TQT_SLOT(slotActivateUpdate())); } @@ -900,8 +900,8 @@ void KPayeesView::readConfig(void) void KPayeesView::show(void) { // since we could not construct the connection in our own ctor, - // we set it up now. The widgets of the KListViewSearchLineWidget must exist by now. - // If you want to learn about the details, see the source of KListViewSearchLineWidget's + // we set it up now. The widgets of the TDEListViewSearchLineWidget must exist by now. + // If you want to learn about the details, see the source of TDEListViewSearchLineWidget's // constructor if(m_needConnection) { connect(m_searchWidget->searchLine(), TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotQueueUpdate(void))); @@ -1088,7 +1088,7 @@ void KPayeesView::slotSelectPayeeAndTransaction(const TQString& payeeId, const T } } -void KPayeesView::slotOpenContextMenu(KListView* lv, TQListViewItem* i, const TQPoint& p) +void KPayeesView::slotOpenContextMenu(TDEListView* lv, TQListViewItem* i, const TQPoint& p) { Q_UNUSED(p); if(lv == m_payeesList) { -- cgit v1.2.1