From 6d33c9774c2d9115894db9ad296b91b73b55bc97 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 1 Feb 2013 14:57:56 -0600 Subject: Rename a number of classes to enhance compatibility with KDE4 --- src/resultlistviewtext.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/resultlistviewtext.cpp') diff --git a/src/resultlistviewtext.cpp b/src/resultlistviewtext.cpp index aec810e..dd5720a 100644 --- a/src/resultlistviewtext.cpp +++ b/src/resultlistviewtext.cpp @@ -28,24 +28,24 @@ using namespace ResultList; -ResultListViewText::ResultListViewText(KListView *listView, +ResultListViewText::ResultListViewText(TDEListView *listView, const TQString &text, const TQString &result, ResultListViewText *after, bool isError) - : KListViewItem(listView, after, text, result), m_text(text), + : TDEListViewItem(listView, after, text, result), m_text(text), m_result(result), m_wasError(isError), m_stackPosition(0) { // This is some kind of non-result answer, don't bother worrying about the // stack status, it hasn't changed. } -ResultListViewText::ResultListViewText(KListView *listView, +ResultListViewText::ResultListViewText(TDEListView *listView, const TQString &text, const Abakus::number_t &result, ResultListViewText *after, bool isError) - : KListViewItem(listView, after, text), m_text(text), + : TDEListViewItem(listView, after, text), m_text(text), m_result(result.toString()), m_wasError(isError), m_stackPosition(0), m_value(result) { @@ -102,7 +102,7 @@ void ResultListViewText::paintCell(TQPainter *p, const TQColorGroup &cg, int col p->setFont(f); } - KListViewItem::paintCell(p, group, column, width, align); + TDEListViewItem::paintCell(p, group, column, width, align); } int ResultListViewText::width(const TQFontMetrics &fm, const TQListView *lv, int c) const @@ -111,25 +111,25 @@ int ResultListViewText::width(const TQFontMetrics &fm, const TQListView *lv, int if(c == ResultColumn) { TQFont f = lv->font(); f.setBold(true); - return KListViewItem::width(TQFontMetrics(f), lv, c); + return TDEListViewItem::width(TQFontMetrics(f), lv, c); } if(c == ShortcutColumn) { TQFont f = lv->font(); f.setItalic(true); f.setPointSize(TQMIN(f.pointSize() * 9 / 11, 10)); - return KListViewItem::width(TQFontMetrics(f), lv, c); + return TDEListViewItem::width(TQFontMetrics(f), lv, c); } - return KListViewItem::width(fm, lv, c); + return TDEListViewItem::width(fm, lv, c); } void ResultListViewText::setText(int column, const TQString &text) { if(!m_wasError && column == ResultColumn) { - KListViewItem::setText(column, m_value.toString()); + TDEListViewItem::setText(column, m_value.toString()); return; } - KListViewItem::setText(column, text); + TDEListViewItem::setText(column, text); } -- cgit v1.2.1