From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kmail/kmatmlistview.cpp | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'kmail/kmatmlistview.cpp') diff --git a/kmail/kmatmlistview.cpp b/kmail/kmatmlistview.cpp index aca518e65..a30fe30c8 100644 --- a/kmail/kmatmlistview.cpp +++ b/kmail/kmatmlistview.cpp @@ -6,25 +6,25 @@ #include #include "kmatmlistview.h" -#include -#include +#include +#include -KMAtmListViewItem::KMAtmListViewItem( QListView *parent ) - : QObject(), - QListViewItem( parent ) +KMAtmListViewItem::KMAtmListViewItem( TQListView *parent ) + : TQObject(), + TQListViewItem( parent ) { - mCBCompress = new QCheckBox( listView()->viewport() ); - mCBEncrypt = new QCheckBox( listView()->viewport() ); - mCBSign = new QCheckBox( listView()->viewport() ); + mCBCompress = new TQCheckBox( listView()->viewport() ); + mCBEncrypt = new TQCheckBox( listView()->viewport() ); + mCBSign = new TQCheckBox( listView()->viewport() ); mCBCompress->setShown( true ); updateAllCheckBoxes(); - connect( mCBCompress, SIGNAL( clicked() ), this, SLOT( slotCompress() ) ); - connect( listView()->header(), SIGNAL( sizeChange(int, int, int) ), - SLOT( slotHeaderChange( int, int, int ) ) ); - connect( listView()->header(), SIGNAL( indexChange(int, int, int) ), - SLOT( slotHeaderChange( int, int, int ) ) ); - connect( listView()->header(), SIGNAL( clicked( int ) ), SLOT( slotHeaderClick( int ) ) ); + connect( mCBCompress, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotCompress() ) ); + connect( listView()->header(), TQT_SIGNAL( sizeChange(int, int, int) ), + TQT_SLOT( slotHeaderChange( int, int, int ) ) ); + connect( listView()->header(), TQT_SIGNAL( indexChange(int, int, int) ), + TQT_SLOT( slotHeaderChange( int, int, int ) ) ); + connect( listView()->header(), TQT_SIGNAL( clicked( int ) ), TQT_SLOT( slotHeaderClick( int ) ) ); } KMAtmListViewItem::~KMAtmListViewItem() @@ -37,7 +37,7 @@ KMAtmListViewItem::~KMAtmListViewItem() mCBCompress = 0; } -void KMAtmListViewItem::updateCheckBox( int headerSection, QCheckBox *cb ) +void KMAtmListViewItem::updateCheckBox( int headerSection, TQCheckBox *cb ) { //Calculate some values to determine the x-position where the checkbox //will be drawn @@ -50,7 +50,7 @@ void KMAtmListViewItem::updateCheckBox( int headerSection, QCheckBox *cb ) listView()->moveChild( cb, sectionPos + sectionOffset, itemPos() + 1 ); //Set the correct background color - QColor bg; + TQColor bg; if ( isSelected() ) { bg = listView()->colorGroup().highlight(); } else { @@ -77,7 +77,7 @@ void KMAtmListViewItem::updateAllCheckBoxes() // the cause of bug 113458. Therefore, both the signals connected in the // constructor and this function are necessary to keep the checkboxes' // positions in sync, and hopefully is enough. -void KMAtmListViewItem::paintCell ( QPainter * p, const QColorGroup &cg, +void KMAtmListViewItem::paintCell ( TQPainter * p, const TQColorGroup &cg, int column, int width, int align ) { switch ( column ) { @@ -86,13 +86,13 @@ void KMAtmListViewItem::paintCell ( QPainter * p, const QColorGroup &cg, case 6: updateCheckBox( 6, mCBSign ); break; } - QListViewItem::paintCell( p, cg, column, width, align ); + TQListViewItem::paintCell( p, cg, column, width, align ); } -int KMAtmListViewItem::compare( QListViewItem *i, int col, bool ascending ) const +int KMAtmListViewItem::compare( TQListViewItem *i, int col, bool ascending ) const { if ( col != 1 ) { - return QListViewItem::compare( i, col, ascending ); + return TQListViewItem::compare( i, col, ascending ); } return mAttachmentSize - -- cgit v1.2.1