summaryrefslogtreecommitdiffstats
path: root/kbabel/kbabel/kbcataloglistviewitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kbabel/kbabel/kbcataloglistviewitem.cpp')
-rw-r--r--kbabel/kbabel/kbcataloglistviewitem.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/kbabel/kbabel/kbcataloglistviewitem.cpp b/kbabel/kbabel/kbcataloglistviewitem.cpp
index 5a4012a2..4bbc3049 100644
--- a/kbabel/kbabel/kbcataloglistviewitem.cpp
+++ b/kbabel/kbabel/kbcataloglistviewitem.cpp
@@ -23,10 +23,10 @@
#include "kbcataloglistviewitem.h"
#include <assert.h>
-KBCatalogListViewItem::KBCatalogListViewItem(KListView* lv, KListViewItem* parent, uint id, QString msgid, QString msgstr)
+KBCatalogListViewItem::KBCatalogListViewItem(KListView* lv, KListViewItem* parent, uint id, TQString msgid, TQString msgstr)
: Super(lv, parent, "","",""), m_id(id), m_msgid(msgid), m_msgstr(msgstr)
{
- setText(0,QString::number(id));
+ setText(0,TQString::number(id));
}
@@ -34,14 +34,14 @@ KBCatalogListViewItem::~KBCatalogListViewItem()
{
}
-void KBCatalogListViewItem::setMsgId(const QString& st)
+void KBCatalogListViewItem::setMsgId(const TQString& st)
{
m_msgid = st;
setup();
repaint();
}
-void KBCatalogListViewItem::setMsgStr(const QString& st)
+void KBCatalogListViewItem::setMsgStr(const TQString& st)
{
m_msgstr = st;
setup();
@@ -60,10 +60,10 @@ void KBCatalogListViewItem::setId(const uint id)
repaint();
}
-QString KBCatalogListViewItem::key ( int column, bool ascending ) const{
+TQString KBCatalogListViewItem::key ( int column, bool ascending ) const{
if(column==0)
- return QString().sprintf("%.8u", m_id);
+ return TQString().sprintf("%.8u", m_id);
else if(column==1)
return m_msgid;
else if(column==2)
@@ -84,7 +84,7 @@ void KBCatalogListViewItem::setup()
makeDocAvailable();
- QListView* lv = listView();
+ TQListView* lv = listView();
m_doc_msgid->setWidth(std::max(1, int(lv->columnWidth(1))));
m_doc_msgstr->setWidth(std::max(1, int(lv->columnWidth(2))));
@@ -97,7 +97,7 @@ void KBCatalogListViewItem::setup()
}
-void KBCatalogListViewItem::paintMsgIdCell(QPainter* p, const QColorGroup& cg,
+void KBCatalogListViewItem::paintMsgIdCell(TQPainter* p, const TQColorGroup& cg,
int column, int width, int align)
{
// check width
@@ -123,11 +123,11 @@ void KBCatalogListViewItem::paintMsgIdCell(QPainter* p, const QColorGroup& cg,
// draw it
- m_doc_msgid->draw(p, 0, 0, QRect(0,0, width, height()), cg);
+ m_doc_msgid->draw(p, 0, 0, TQRect(0,0, width, height()), cg);
}
-void KBCatalogListViewItem::paintMsgStrCell(QPainter* p, const QColorGroup& cg,
+void KBCatalogListViewItem::paintMsgStrCell(TQPainter* p, const TQColorGroup& cg,
int column, int width, int align)
{
// check width
@@ -162,11 +162,11 @@ void KBCatalogListViewItem::paintMsgStrCell(QPainter* p, const QColorGroup& cg,
// draw it
- m_doc_msgstr->draw(p, 0, 0, QRect(0,0, width, height()), cg);
+ m_doc_msgstr->draw(p, 0, 0, TQRect(0,0, width, height()), cg);
}
-void KBCatalogListViewItem::paintCell(QPainter* p, const QColorGroup& cg,
+void KBCatalogListViewItem::paintCell(TQPainter* p, const TQColorGroup& cg,
int column, int width, int align)
{
assert(m_doc_msgid.get() && m_doc_msgstr.get() && p);
@@ -195,16 +195,16 @@ void KBCatalogListViewItem::makeDocAvailable()
assert(listView());
- m_doc_msgid.reset(new QSimpleRichText(
+ m_doc_msgid.reset(new TQSimpleRichText(
formatMsg(m_msgid), listView()->font()));
- m_doc_msgstr.reset(new QSimpleRichText(
+ m_doc_msgstr.reset(new TQSimpleRichText(
formatMsg(m_msgstr), listView()->font()));
}
-QString KBCatalogListViewItem::formatMsg(const QString str)
+TQString KBCatalogListViewItem::formatMsg(const TQString str)
{
// TODO: Use KBHighlighting for this
- QString tmp_msgid = str;
+ TQString tmp_msgid = str;
tmp_msgid = tmp_msgid.replace( "\\n", "<br>" );
tmp_msgid = tmp_msgid.replace( "<", "&lt;" );
tmp_msgid = tmp_msgid.replace( ">", "&gt;" );