From 4ae0c208b66e0f7954e194384464fe2d0a2c56dd Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:51:49 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1157652 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kbugbuster/gui/buglvi.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'kbugbuster/gui/buglvi.cpp') 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 -#include +#include +#include #include #include @@ -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 ); -- cgit v1.2.1