summaryrefslogtreecommitdiffstats
path: root/kmail/kmheaders.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/kmheaders.cpp')
-rw-r--r--kmail/kmheaders.cpp172
1 files changed, 86 insertions, 86 deletions
diff --git a/kmail/kmheaders.cpp b/kmail/kmheaders.cpp
index 073efe485..fe5531bee 100644
--- a/kmail/kmheaders.cpp
+++ b/kmail/kmheaders.cpp
@@ -140,7 +140,7 @@ KMHeaders::KMHeaders(KMMainWidget *aOwner, TQWidget *parent,
mPopup->insertItem(i18n("Size"), KPaintInfo::COL_SIZE);
mPopup->insertItem(i18n("Receiver"), KPaintInfo::COL_RECEIVER);
- connect(mPopup, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotToggleColumn(int)));
+ connect(mPopup, TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotToggleColumn(int)));
setShowSortIndicator(true);
setFocusPolicy( TQWidget::WheelFocus );
@@ -203,18 +203,18 @@ KMHeaders::KMHeaders(KMMainWidget *aOwner, TQWidget *parent,
header()->setResizeEnabled( true, mPaintInfo.senderCol );
header()->setResizeEnabled( true, mPaintInfo.dateCol );
- connect( this, TQT_SIGNAL( contextMenuRequested( TQListViewItem*, const TQPoint &, int )),
- this, TQT_SLOT( rightButtonPressed( TQListViewItem*, const TQPoint &, int )));
- connect(this, TQT_SIGNAL(doubleClicked(TQListViewItem*)),
- this,TQT_SLOT(selectMessage(TQListViewItem*)));
- connect(this,TQT_SIGNAL(currentChanged(TQListViewItem*)),
- this,TQT_SLOT(highlightMessage(TQListViewItem*)));
+ connect( this, TQ_SIGNAL( contextMenuRequested( TQListViewItem*, const TQPoint &, int )),
+ this, TQ_SLOT( rightButtonPressed( TQListViewItem*, const TQPoint &, int )));
+ connect(this, TQ_SIGNAL(doubleClicked(TQListViewItem*)),
+ this,TQ_SLOT(selectMessage(TQListViewItem*)));
+ connect(this,TQ_SIGNAL(currentChanged(TQListViewItem*)),
+ this,TQ_SLOT(highlightMessage(TQListViewItem*)));
resetCurrentTime();
mSubjectLists.setAutoDelete( true );
mMoveMessages = false;
- connect( this, TQT_SIGNAL(selectionChanged()), TQT_SLOT(updateActions()) );
+ connect( this, TQ_SIGNAL(selectionChanged()), TQ_SLOT(updateActions()) );
}
@@ -698,28 +698,28 @@ void KMHeaders::setFolder( KMFolder *aFolder, bool forceJumpToUnread )
// from this folder, since it's msg's are about to be deleted.
highlightMessage(0, false);
- disconnect(mFolder, TQT_SIGNAL(numUnreadMsgsChanged(KMFolder*)),
- this, TQT_SLOT(setFolderInfoStatus()));
+ disconnect(mFolder, TQ_SIGNAL(numUnreadMsgsChanged(KMFolder*)),
+ this, TQ_SLOT(setFolderInfoStatus()));
mFolder->markNewAsUnread();
writeFolderConfig();
- disconnect(mFolder, TQT_SIGNAL(msgHeaderChanged(KMFolder*,int)),
- this, TQT_SLOT(msgHeaderChanged(KMFolder*,int)));
- disconnect(mFolder, TQT_SIGNAL(msgAdded(int)),
- this, TQT_SLOT(msgAdded(int)));
- disconnect(mFolder, TQT_SIGNAL( msgRemoved( int, TQString ) ),
- this, TQT_SLOT( msgRemoved( int, TQString ) ) );
- disconnect(mFolder, TQT_SIGNAL(changed()),
- this, TQT_SLOT(msgChanged()));
- disconnect(mFolder, TQT_SIGNAL(cleared()),
- this, TQT_SLOT(folderCleared()));
- disconnect(mFolder, TQT_SIGNAL(expunged( KMFolder* )),
- this, TQT_SLOT(folderCleared()));
- disconnect(mFolder, TQT_SIGNAL(closed()),
- this, TQT_SLOT(folderClosed()));
- disconnect( mFolder, TQT_SIGNAL( statusMsg( const TQString& ) ),
- BroadcastStatus::instance(), TQT_SLOT( setStatusMsg( const TQString& ) ) );
- disconnect(mFolder, TQT_SIGNAL(viewConfigChanged()), this, TQT_SLOT(reset()));
+ disconnect(mFolder, TQ_SIGNAL(msgHeaderChanged(KMFolder*,int)),
+ this, TQ_SLOT(msgHeaderChanged(KMFolder*,int)));
+ disconnect(mFolder, TQ_SIGNAL(msgAdded(int)),
+ this, TQ_SLOT(msgAdded(int)));
+ disconnect(mFolder, TQ_SIGNAL( msgRemoved( int, TQString ) ),
+ this, TQ_SLOT( msgRemoved( int, TQString ) ) );
+ disconnect(mFolder, TQ_SIGNAL(changed()),
+ this, TQ_SLOT(msgChanged()));
+ disconnect(mFolder, TQ_SIGNAL(cleared()),
+ this, TQ_SLOT(folderCleared()));
+ disconnect(mFolder, TQ_SIGNAL(expunged( KMFolder* )),
+ this, TQ_SLOT(folderCleared()));
+ disconnect(mFolder, TQ_SIGNAL(closed()),
+ this, TQ_SLOT(folderClosed()));
+ disconnect( mFolder, TQ_SIGNAL( statusMsg( const TQString& ) ),
+ BroadcastStatus::instance(), TQ_SLOT( setStatusMsg( const TQString& ) ) );
+ disconnect(mFolder, TQ_SIGNAL(viewConfigChanged()), this, TQ_SLOT(reset()));
writeSortOrder();
mFolder->close("kmheaders");
// System folders remain open but we also should write the index from
@@ -736,25 +736,25 @@ void KMHeaders::setFolder( KMFolder *aFolder, bool forceJumpToUnread )
mOwner->messageActions()->replyListAction()->setEnabled( mFolder ?
mFolder->isMailingListEnabled() : false );
if ( mFolder ) {
- connect(mFolder, TQT_SIGNAL(msgHeaderChanged(KMFolder*,int)),
- this, TQT_SLOT(msgHeaderChanged(KMFolder*,int)));
- connect(mFolder, TQT_SIGNAL(msgAdded(int)),
- this, TQT_SLOT(msgAdded(int)));
- connect(mFolder, TQT_SIGNAL(msgRemoved(int,TQString)),
- this, TQT_SLOT(msgRemoved(int,TQString)));
- connect(mFolder, TQT_SIGNAL(changed()),
- this, TQT_SLOT(msgChanged()));
- connect(mFolder, TQT_SIGNAL(cleared()),
- this, TQT_SLOT(folderCleared()));
- connect(mFolder, TQT_SIGNAL(expunged( KMFolder* )),
- this, TQT_SLOT(folderCleared()));
- connect(mFolder, TQT_SIGNAL(closed()),
- this, TQT_SLOT(folderClosed()));
- connect(mFolder, TQT_SIGNAL(statusMsg(const TQString&)),
- BroadcastStatus::instance(), TQT_SLOT( setStatusMsg( const TQString& ) ) );
- connect(mFolder, TQT_SIGNAL(numUnreadMsgsChanged(KMFolder*)),
- this, TQT_SLOT(setFolderInfoStatus()));
- connect(mFolder, TQT_SIGNAL(viewConfigChanged()), this, TQT_SLOT(reset()));
+ connect(mFolder, TQ_SIGNAL(msgHeaderChanged(KMFolder*,int)),
+ this, TQ_SLOT(msgHeaderChanged(KMFolder*,int)));
+ connect(mFolder, TQ_SIGNAL(msgAdded(int)),
+ this, TQ_SLOT(msgAdded(int)));
+ connect(mFolder, TQ_SIGNAL(msgRemoved(int,TQString)),
+ this, TQ_SLOT(msgRemoved(int,TQString)));
+ connect(mFolder, TQ_SIGNAL(changed()),
+ this, TQ_SLOT(msgChanged()));
+ connect(mFolder, TQ_SIGNAL(cleared()),
+ this, TQ_SLOT(folderCleared()));
+ connect(mFolder, TQ_SIGNAL(expunged( KMFolder* )),
+ this, TQ_SLOT(folderCleared()));
+ connect(mFolder, TQ_SIGNAL(closed()),
+ this, TQ_SLOT(folderClosed()));
+ connect(mFolder, TQ_SIGNAL(statusMsg(const TQString&)),
+ BroadcastStatus::instance(), TQ_SLOT( setStatusMsg( const TQString& ) ) );
+ connect(mFolder, TQ_SIGNAL(numUnreadMsgsChanged(KMFolder*)),
+ this, TQ_SLOT(setFolderInfoStatus()));
+ connect(mFolder, TQ_SIGNAL(viewConfigChanged()), this, TQ_SLOT(reset()));
// Not very nice, but if we go from nested to non-nested
// in the folderConfig below then we need to do this otherwise
@@ -844,8 +844,8 @@ void KMHeaders::msgChanged()
}
// if (!isUpdatesEnabled()) return;
// prevent IMAP messages from scrolling to top
- disconnect(this,TQT_SIGNAL(currentChanged(TQListViewItem*)),
- this,TQT_SLOT(highlightMessage(TQListViewItem*)));
+ disconnect(this,TQ_SIGNAL(currentChanged(TQListViewItem*)),
+ this,TQ_SLOT(highlightMessage(TQListViewItem*)));
updateMessageList(); // do not change the selection
@@ -866,8 +866,8 @@ void KMHeaders::msgChanged()
}
}
- connect(this,TQT_SIGNAL(currentChanged(TQListViewItem*)),
- this,TQT_SLOT(highlightMessage(TQListViewItem*)));
+ connect(this,TQ_SIGNAL(currentChanged(TQListViewItem*)),
+ this,TQ_SLOT(highlightMessage(TQListViewItem*)));
// if the current message has changed then emit
// the selected signal to force an update
@@ -982,8 +982,8 @@ void KMHeaders::msgAdded(int id)
/* In case the current item is taken during reparenting, prevent qlistview
* from selecting some unrelated item as a result of take() emitting
* currentChanged. */
- disconnect( this, TQT_SIGNAL(currentChanged(TQListViewItem*)),
- this, TQT_SLOT(highlightMessage(TQListViewItem*)));
+ disconnect( this, TQ_SIGNAL(currentChanged(TQListViewItem*)),
+ this, TQ_SLOT(highlightMessage(TQListViewItem*)));
if ( !msgId.isEmpty() ) {
TQPtrListIterator<HeaderItem> it(mImperfectlyThreadedList);
@@ -1052,7 +1052,7 @@ void KMHeaders::msgAdded(int id)
sci->setItem(hi);
}
if (mSortInfo.fakeSort) {
- TQObject::disconnect(header(), TQT_SIGNAL(clicked(int)), this, TQT_SLOT(dirtySortOrder(int)));
+ TQObject::disconnect(header(), TQ_SIGNAL(clicked(int)), this, TQ_SLOT(dirtySortOrder(int)));
TDEListView::setSorting(mSortCol, !mSortDescending );
mSortInfo.fakeSort = 0;
}
@@ -1068,8 +1068,8 @@ void KMHeaders::msgAdded(int id)
}
/* restore signal */
- connect( this, TQT_SIGNAL(currentChanged(TQListViewItem*)),
- this, TQT_SLOT(highlightMessage(TQListViewItem*)));
+ connect( this, TQ_SIGNAL(currentChanged(TQListViewItem*)),
+ this, TQ_SLOT(highlightMessage(TQListViewItem*)));
emit msgAddedToListView( hi );
END_TIMER(msgAdded);
@@ -1089,8 +1089,8 @@ void KMHeaders::msgRemoved(int id, TQString msgId )
* item once this one is removed. Sine we have already selected
* something in prepare/finalizeMove that's counter productive
*/
- disconnect( this, TQT_SIGNAL(currentChanged(TQListViewItem*)),
- this, TQT_SLOT(highlightMessage(TQListViewItem*)));
+ disconnect( this, TQ_SIGNAL(currentChanged(TQListViewItem*)),
+ this, TQ_SLOT(highlightMessage(TQListViewItem*)));
HeaderItem *removedItem = mItems[id];
if (!removedItem) return;
@@ -1137,7 +1137,7 @@ void KMHeaders::msgRemoved(int id, TQString msgId )
}
item->setTempKey( key + item->key( mSortCol, !mSortDescending ));
if (mSortInfo.fakeSort) {
- TQObject::disconnect(header(), TQT_SIGNAL(clicked(int)), this, TQT_SLOT(dirtySortOrder(int)));
+ TQObject::disconnect(header(), TQ_SIGNAL(clicked(int)), this, TQ_SLOT(dirtySortOrder(int)));
TDEListView::setSorting(mSortCol, !mSortDescending );
mSortInfo.fakeSort = 0;
}
@@ -1201,8 +1201,8 @@ void KMHeaders::msgRemoved(int id, TQString msgId )
}
}
/* restore signal */
- connect( this, TQT_SIGNAL(currentChanged(TQListViewItem*)),
- this, TQT_SLOT(highlightMessage(TQListViewItem*)));
+ connect( this, TQ_SIGNAL(currentChanged(TQListViewItem*)),
+ this, TQ_SLOT(highlightMessage(TQListViewItem*)));
}
@@ -1467,8 +1467,8 @@ void KMHeaders::applyFiltersOnMsg()
msg->setTransferInProgress(true);
if (!msg->isComplete()) {
FolderJob *job = mFolder->createJob(msg);
- connect(job, TQT_SIGNAL(messageRetrieved(KMMessage*)),
- this, TQT_SLOT(slotFilterMsg(KMMessage*)));
+ connect(job, TQ_SIGNAL(messageRetrieved(KMMessage*)),
+ this, TQ_SLOT(slotFilterMsg(KMMessage*)));
job->start();
} else {
if (slotFilterMsg(msg) == 2)
@@ -1518,8 +1518,8 @@ void KMHeaders::deleteMsg ()
finalizeMove( nextItem, contentX, contentY );
KMCommand *command = new KMDeleteMsgCommand( mFolder, msgList );
- connect( command, TQT_SIGNAL( completed( KMCommand * ) ),
- this, TQT_SLOT( slotMoveCompleted( KMCommand * ) ) );
+ connect( command, TQ_SIGNAL( completed( KMCommand * ) ),
+ this, TQ_SLOT( slotMoveCompleted( KMCommand * ) ) );
command->start();
BroadcastStatus::instance()->setStatusMsg("");
@@ -1540,8 +1540,8 @@ HeaderItem* KMHeaders::prepareMove( int *contentX, int *contentY )
HeaderItem *ret = 0;
emit maybeDeleting();
- disconnect( this, TQT_SIGNAL(currentChanged(TQListViewItem*)),
- this, TQT_SLOT(highlightMessage(TQListViewItem*)));
+ disconnect( this, TQ_SIGNAL(currentChanged(TQListViewItem*)),
+ this, TQ_SLOT(highlightMessage(TQListViewItem*)));
TQListViewItem *curItem;
HeaderItem *item;
@@ -1577,8 +1577,8 @@ void KMHeaders::finalizeMove( HeaderItem *item, int contentX, int contentY )
setContentsPos( contentX, contentY );
makeHeaderVisible();
- connect( this, TQT_SIGNAL(currentChanged(TQListViewItem*)),
- this, TQT_SLOT(highlightMessage(TQListViewItem*)));
+ connect( this, TQ_SIGNAL(currentChanged(TQListViewItem*)),
+ this, TQ_SLOT(highlightMessage(TQListViewItem*)));
}
@@ -1607,8 +1607,8 @@ void KMHeaders::moveMsgToFolder ( KMFolder* destFolder, bool askForConfirmation
finalizeMove( nextItem, contentX, contentY );
KMCommand *command = new KMMoveCommand( destFolder, msgList );
- connect( command, TQT_SIGNAL( completed( KMCommand * ) ),
- this, TQT_SLOT( slotMoveCompleted( KMCommand * ) ) );
+ connect( command, TQ_SIGNAL( completed( KMCommand * ) ),
+ this, TQ_SLOT( slotMoveCompleted( KMCommand * ) ) );
command->start();
}
@@ -1884,13 +1884,13 @@ void KMHeaders::incCurrentMessage()
TQListViewItem *lvi = currentItem();
if ( lvi && lvi->itemBelow() ) {
- disconnect(this,TQT_SIGNAL(currentChanged(TQListViewItem*)),
- this,TQT_SLOT(highlightMessage(TQListViewItem*)));
+ disconnect(this,TQ_SIGNAL(currentChanged(TQListViewItem*)),
+ this,TQ_SLOT(highlightMessage(TQListViewItem*)));
setCurrentItem( lvi->itemBelow() );
ensureCurrentItemVisible();
setFocus();
- connect(this,TQT_SIGNAL(currentChanged(TQListViewItem*)),
- this,TQT_SLOT(highlightMessage(TQListViewItem*)));
+ connect(this,TQ_SIGNAL(currentChanged(TQListViewItem*)),
+ this,TQ_SLOT(highlightMessage(TQListViewItem*)));
}
}
@@ -1901,13 +1901,13 @@ void KMHeaders::decCurrentMessage()
return;
TQListViewItem *lvi = currentItem();
if ( lvi && lvi->itemAbove() ) {
- disconnect(this,TQT_SIGNAL(currentChanged(TQListViewItem*)),
- this,TQT_SLOT(highlightMessage(TQListViewItem*)));
+ disconnect(this,TQ_SIGNAL(currentChanged(TQListViewItem*)),
+ this,TQ_SLOT(highlightMessage(TQListViewItem*)));
setCurrentItem( lvi->itemAbove() );
ensureCurrentItemVisible();
setFocus();
- connect(this,TQT_SIGNAL(currentChanged(TQListViewItem*)),
- this,TQT_SLOT(highlightMessage(TQListViewItem*)));
+ connect(this,TQ_SIGNAL(currentChanged(TQListViewItem*)),
+ this,TQ_SLOT(highlightMessage(TQListViewItem*)));
}
}
@@ -2159,7 +2159,7 @@ void KMHeaders::resetCurrentTime()
mDate.reset();
// only reset exactly during minute switch
TQTimer::singleShot( ( 60-TQTime::currentTime().second() ) * 1000,
- this, TQT_SLOT( resetCurrentTime() ) );
+ this, TQ_SLOT( resetCurrentTime() ) );
}
//-----------------------------------------------------------------------------
@@ -2240,8 +2240,8 @@ void KMHeaders::keyPressEvent( TQKeyEvent * e )
if (cntrl) {
if (!shft)
- disconnect(this,TQT_SIGNAL(currentChanged(TQListViewItem*)),
- this,TQT_SLOT(highlightMessage(TQListViewItem*)));
+ disconnect(this,TQ_SIGNAL(currentChanged(TQListViewItem*)),
+ this,TQ_SLOT(highlightMessage(TQListViewItem*)));
switch (e->key()) {
case Key_Down:
case Key_Up:
@@ -2253,8 +2253,8 @@ void KMHeaders::keyPressEvent( TQKeyEvent * e )
TDEListView::keyPressEvent( e );
}
if (!shft)
- connect(this,TQT_SIGNAL(currentChanged(TQListViewItem*)),
- this,TQT_SLOT(highlightMessage(TQListViewItem*)));
+ connect(this,TQ_SIGNAL(currentChanged(TQListViewItem*)),
+ this,TQ_SLOT(highlightMessage(TQListViewItem*)));
}
}
@@ -2623,7 +2623,7 @@ void KMHeaders::setSorting( int column, bool ascending )
// if (column != mSortCol)
// setColumnText( mSortCol, TQIconSet( TQPixmap()), columnText( mSortCol ));
if(mSortInfo.dirty || column != mSortInfo.column || ascending != mSortInfo.ascending) { //dirtied
- TQObject::disconnect(header(), TQT_SIGNAL(clicked(int)), this, TQT_SLOT(dirtySortOrder(int)));
+ TQObject::disconnect(header(), TQ_SIGNAL(clicked(int)), this, TQ_SLOT(dirtySortOrder(int)));
mSortInfo.dirty = true;
}
@@ -2865,7 +2865,7 @@ void KMHeaders::appendItemToSortFile(HeaderItem *khi)
void KMHeaders::dirtySortOrder(int column)
{
mSortInfo.dirty = true;
- TQObject::disconnect(header(), TQT_SIGNAL(clicked(int)), this, TQT_SLOT(dirtySortOrder(int)));
+ TQObject::disconnect(header(), TQ_SIGNAL(clicked(int)), this, TQ_SLOT(dirtySortOrder(int)));
setSorting(column, mSortInfo.column == column ? !mSortInfo.ascending : true);
}
@@ -3109,7 +3109,7 @@ bool KMHeaders::readSortOrder( bool set_selection, bool forceJumpToUnread )
//Hackyness to work around qlistview problems
TDEListView::setSorting(-1);
header()->setSortIndicator(column, ascending);
- TQObject::connect(header(), TQT_SIGNAL(clicked(int)), this, TQT_SLOT(dirtySortOrder(int)));
+ TQObject::connect(header(), TQ_SIGNAL(clicked(int)), this, TQ_SLOT(dirtySortOrder(int)));
//setup mSortInfo here now, as above may change it
mSortInfo.dirty = false;
mSortInfo.column = (short)column;