diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kmail/kmatmlistview.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmail/kmatmlistview.cpp')
-rw-r--r-- | kmail/kmatmlistview.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
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 <config.h> #include "kmatmlistview.h" -#include <qcheckbox.h> -#include <qheader.h> +#include <tqcheckbox.h> +#include <tqheader.h> -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 - |