diff options
author | Timothy Pearson <[email protected]> | 2013-02-01 14:57:56 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-02-01 14:57:56 -0600 |
commit | 6d33c9774c2d9115894db9ad296b91b73b55bc97 (patch) | |
tree | b8f3fbbfe305f642e54f2f1eacf6bc31b5348232 /src/resultlistviewtext.cpp | |
parent | a7a8d7053d25f615198af314f0404952a6a412b3 (diff) | |
download | abakus-6d33c9774c2d9115894db9ad296b91b73b55bc97.tar.gz abakus-6d33c9774c2d9115894db9ad296b91b73b55bc97.zip |
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'src/resultlistviewtext.cpp')
-rw-r--r-- | src/resultlistviewtext.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
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); } |