summaryrefslogtreecommitdiffstats
path: root/kmail/kmatmlistview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/kmatmlistview.cpp')
-rw-r--r--kmail/kmatmlistview.cpp40
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 -