summaryrefslogtreecommitdiffstats
path: root/kbugbuster/gui/buglvi.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:51:49 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:51:49 +0000
commit4ae0c208b66e0f7954e194384464fe2d0a2c56dd (patch)
treeb0a7cd1c184f0003c0292eb416ed27f674f9cc43 /kbugbuster/gui/buglvi.cpp
parent1964ea0fb4ab57493ca2ebb709c8d3b5395fd653 (diff)
downloadtdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.tar.gz
tdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1157652 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kbugbuster/gui/buglvi.cpp')
-rw-r--r--kbugbuster/gui/buglvi.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kbugbuster/gui/buglvi.cpp b/kbugbuster/gui/buglvi.cpp
index be629510..18d7c064 100644
--- a/kbugbuster/gui/buglvi.cpp
+++ b/kbugbuster/gui/buglvi.cpp
@@ -1,5 +1,5 @@
/*
- buglvi.cpp - Custom QListViewItem that holds a Bug object
+ buglvi.cpp - Custom TQListViewItem that holds a Bug object
copyright : (c) 2001 by Martijn Klingens
email : klingens@kde.org
@@ -14,8 +14,8 @@
*************************************************************************
*/
-#include <qfont.h>
-#include <qpainter.h>
+#include <tqfont.h>
+#include <tqpainter.h>
#include <kstringhandler.h>
#include <kdebug.h>
@@ -52,9 +52,9 @@ BugLVI::~BugLVI()
{
}
-QString BugLVI::key( int column, bool /* ascending */ ) const
+TQString BugLVI::key( int column, bool /* ascending */ ) const
{
- QString key;
+ TQString key;
if ( column == 0 )
{
@@ -65,11 +65,11 @@ QString BugLVI::key( int column, bool /* ascending */ ) const
if ( m_bug.age() == 0xFFFFFFFF )
key = "0";
else
- key = QString::number( m_bug.age() ).rightJustify( 10, '0' );
+ key = TQString::number( m_bug.age() ).rightJustify( 10, '0' );
}
else if ( column == 4 )
{
- key = QString::number( 10 - m_bug.severity() );
+ key = TQString::number( 10 - m_bug.severity() );
key += m_bug.number().rightJustify( 10, '0' );
}
else
@@ -80,21 +80,21 @@ QString BugLVI::key( int column, bool /* ascending */ ) const
return key;
}
-void BugLVI::paintCell(QPainter* p, const QColorGroup& cg,
+void BugLVI::paintCell(TQPainter* p, const TQColorGroup& cg,
int column, int width, int align)
{
- QColorGroup newCg = cg;
+ TQColorGroup newCg = cg;
if ( mCommandState == BugCommand::Queued ) {
- QFont font = p->font();
+ TQFont font = p->font();
font.setBold( true );
p->setFont( font );
} else if ( mCommandState == BugCommand::Sent ) {
- QFont font = p->font();
+ TQFont font = p->font();
font.setItalic( true );
p->setFont( font );
} else if ( m_bug.status() == Bug::Closed ) {
// Different color for closed bugs
- newCg.setColor( QColorGroup::Text, cg.color( QColorGroup::Dark ) );
+ newCg.setColor( TQColorGroup::Text, cg.color( TQColorGroup::Dark ) );
}
KListViewItem::paintCell( p, newCg, column, width, align );