summaryrefslogtreecommitdiffstats
path: root/src/resultlistviewtext.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-09 19:45:27 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-09 19:45:27 +0000
commitf4f8ac034fa04404e2fcd5029ba050c537c07d7a (patch)
tree0daa81b0533ce203c33d5571dcb842257dba4cd0 /src/resultlistviewtext.h
parent4488b6112c4e22493ed88c68035b980a5b42228d (diff)
downloadabakus-f4f8ac034fa04404e2fcd5029ba050c537c07d7a.tar.gz
abakus-f4f8ac034fa04404e2fcd5029ba050c537c07d7a.zip
TQt4 port Abakus
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/abakus@1231045 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/resultlistviewtext.h')
-rw-r--r--src/resultlistviewtext.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/resultlistviewtext.h b/src/resultlistviewtext.h
index 9a3587d..088f9e5 100644
--- a/src/resultlistviewtext.h
+++ b/src/resultlistviewtext.h
@@ -22,28 +22,28 @@
#include "resultlistview.h"
#include "numerictypes.h"
-class QPainter;
-class QColorGroup;
-class QFontMetrics;
+class TQPainter;
+class TQColorGroup;
+class TQFontMetrics;
// This class shows the results shown in the MainWindow result pane.
class ResultListViewText : public KListViewItem
{
public:
ResultListViewText(KListView *listView,
- const QString &text,
- const QString &result,
+ const TQString &text,
+ const TQString &result,
ResultListViewText *after,
bool isError = false);
ResultListViewText(KListView *listView,
- const QString &text,
+ const TQString &text,
const Abakus::number_t &result,
ResultListViewText *after,
bool isError = false);
- QString expressionText() const { return m_text; }
- QString resultText() const { return m_result; }
+ TQString expressionText() const { return m_text; }
+ TQString resultText() const { return m_result; }
bool wasError() const { return m_wasError; }
unsigned stackPosition() const { return m_stackPosition; }
@@ -54,14 +54,14 @@ class ResultListViewText : public KListViewItem
void precisionChanged();
// Reimplemented from KListViewItem
- virtual void paintCell(QPainter *p, const QColorGroup &cg, int column, int width, int align);
- virtual int width(const QFontMetrics &fm, const QListView *lv, int c) const;
+ virtual void paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int align);
+ virtual int width(const TQFontMetrics &fm, const TQListView *lv, int c) const;
// Reimplemented to remove trailing zeroes from results.
- virtual void setText(int column, const QString &text);
+ virtual void setText(int column, const TQString &text);
private:
- QString m_text, m_result;
+ TQString m_text, m_result;
bool m_wasError;
unsigned m_stackPosition;
Abakus::number_t m_value;