summaryrefslogtreecommitdiffstats
path: root/kmail/kmfoldertree.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-16 20:17:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-16 20:17:18 +0000
commitf4fae92b6768541e2952173c3d4b09040f95bf7e (patch)
treed8c5d93232235cd635f3310b4d95490df181ba2d /kmail/kmfoldertree.cpp
parent125c0a08265b75a133644d3b55f47e37c919f45d (diff)
downloadtdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.tar.gz
tdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.zip
Moved kpilot from kdepim to applications, as the core Trinity libraries should not contain hardware-dependent software
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1221127 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmail/kmfoldertree.cpp')
-rw-r--r--kmail/kmfoldertree.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/kmail/kmfoldertree.cpp b/kmail/kmfoldertree.cpp
index d2e098b8d..115c638e6 100644
--- a/kmail/kmfoldertree.cpp
+++ b/kmail/kmfoldertree.cpp
@@ -267,14 +267,14 @@ void KMFolderTreeItem::slotIconsChanged()
else
setPixmap( 0, normalIcon( iconSize() ) );
emit iconChanged( this );
- repaint();
+ tqrepaint();
}
void KMFolderTreeItem::slotNameChanged()
{
setText( 0, mFolder->label() );
emit nameChanged( this );
- repaint();
+ tqrepaint();
}
void KMFolderTreeItem::slotNoContentChanged()
@@ -495,7 +495,7 @@ void KMFolderTree::readConfig (void)
setFont(KGlobalSettings::generalFont());
}
- // restore the layout
+ // restore the tqlayout
restoreLayout(conf, "Geometry");
}
@@ -510,7 +510,7 @@ void KMFolderTree::writeConfig()
writeIsListViewItemOpen(fti);
}
- // save the current layout
+ // save the current tqlayout
saveLayout(KMKernel::config(), "Geometry");
}
@@ -556,7 +556,7 @@ void KMFolderTree::reload(bool openFolders)
int top = contentsY();
mLastItem = 0;
- // invalidate selected drop item
+ // tqinvalidate selected drop item
oldSelected = 0;
// remember last
KMFolder* last = currentFolder();
@@ -627,9 +627,9 @@ void KMFolderTree::reload(bool openFolders)
this, TQT_SLOT(slotSyncStateChanged()) );
// we want to be noticed of changes to update the unread/total columns
- disconnect(fti->folder(), TQT_SIGNAL(msgAdded(KMFolder*,Q_UINT32)),
+ disconnect(fti->folder(), TQT_SIGNAL(msgAdded(KMFolder*,TQ_UINT32)),
this,TQT_SLOT(slotUpdateCountsDelayed(KMFolder*)));
- connect(fti->folder(), TQT_SIGNAL(msgAdded(KMFolder*,Q_UINT32)),
+ connect(fti->folder(), TQT_SIGNAL(msgAdded(KMFolder*,TQ_UINT32)),
this,TQT_SLOT(slotUpdateCountsDelayed(KMFolder*)));
//}
@@ -737,7 +737,7 @@ void KMFolderTree::addDirectory( KMFolderDir *fdir, KMFolderTreeItem* parent )
} else {
// hide local inbox if unused
if ( kmkernel->inboxFolder() == folder && hideLocalInbox() ) {
- connect( kmkernel->inboxFolder(), TQT_SIGNAL(msgAdded(KMFolder*,Q_UINT32)), TQT_SLOT(slotUnhideLocalInbox()) );
+ connect( kmkernel->inboxFolder(), TQT_SIGNAL(msgAdded(KMFolder*,TQ_UINT32)), TQT_SLOT(slotUnhideLocalInbox()) );
continue;
}
@@ -800,7 +800,7 @@ void KMFolderTree::delayedUpdate()
continue;
if ( fti->needsRepaint() ) {
- fti->repaint();
+ fti->tqrepaint();
fti->setNeedsRepaint( false );
}
}
@@ -1419,7 +1419,7 @@ void KMFolderTree::openFolder()
autoopen_timer.stop();
if ( dropItem && !dropItem->isOpen() ) {
dropItem->setOpen( true );
- dropItem->repaint();
+ dropItem->tqrepaint();
}
}
@@ -1467,7 +1467,7 @@ void KMFolderTree::contentsDragMoveEvent( TQDragMoveEvent *e )
}
if ( dragAccepted ) {
- e->accept( itemRect(i) );
+ e->accept( tqitemRect(i) );
switch ( e->action() ) {
case TQDropEvent::Copy:
@@ -1634,8 +1634,8 @@ void KMFolderTree::slotRenameFolder(TQListViewItem *item, int col,
else
fldName = oldFldName;
- fldName.replace("/", "");
- fldName.replace(TQRegExp("^\\."), "");
+ fldName.tqreplace("/", "");
+ fldName.tqreplace(TQRegExp("^\\."), "");
if (fldName.isEmpty())
fldName = i18n("unnamed");
@@ -1648,7 +1648,7 @@ void KMFolderTree::slotRenameFolder(TQListViewItem *item, int col,
void KMFolderTree::slotUpdateCountsDelayed(KMFolder * folder)
{
// kdDebug(5006) << "KMFolderTree::slotUpdateCountsDelayed()" << endl;
- if ( !mFolderToUpdateCount.contains( folder->idString() ) )
+ if ( !mFolderToUpdateCount.tqcontains( folder->idString() ) )
{
// kdDebug( 5006 )<< "adding " << folder->idString() << " to updateCountList " << endl;
mFolderToUpdateCount.insert( folder->idString(),folder );
@@ -1897,7 +1897,7 @@ void KMFolderTree::folderToPopupMenu( MenuAction action, TQObject *receiver,
continue;
}
TQString label = fti->text( 0 );
- label.replace( "&","&&" );
+ label.tqreplace( "&","&&" );
if ( fti->firstChild() )
{
// new level
@@ -1985,7 +1985,7 @@ void KMFolderTree::moveOrCopyFolder( TQValueList<TQGuardedPtr<KMFolder> > source
if ( source )
sourceFolderName = source->label();
- if ( parent->hasNamedFolder( sourceFolderName ) || sourceFolderNames.contains( sourceFolderName ) ) {
+ if ( parent->hasNamedFolder( sourceFolderName ) || sourceFolderNames.tqcontains( sourceFolderName ) ) {
KMessageBox::error( this, i18n("<qt>Cannot move or copy folder <b>%1</b> here because a folder with the same name already exists.</qt>")
.arg( sourceFolderName ) );
setDragEnabled( true );
@@ -2118,7 +2118,7 @@ void KMFolderTree::cutFolder()
void KMFolderTree::pasteFolder()
{
KMFolderTreeItem *item = static_cast<KMFolderTreeItem*>( currentItem() );
- if ( !mCopySourceFolders.isEmpty() && item && !mCopySourceFolders.contains( item->folder() ) ) {
+ if ( !mCopySourceFolders.isEmpty() && item && !mCopySourceFolders.tqcontains( item->folder() ) ) {
moveOrCopyFolder( mCopySourceFolders, item->folder(), mCutFolder );
if ( mCutFolder )
mCopySourceFolders.clear();
@@ -2176,7 +2176,7 @@ void KMFolderTree::slotAddToFavorites()
void KMFolderTree::slotUnhideLocalInbox()
{
- disconnect( kmkernel->inboxFolder(), TQT_SIGNAL(msgAdded(KMFolder*,Q_UINT32)),
+ disconnect( kmkernel->inboxFolder(), TQT_SIGNAL(msgAdded(KMFolder*,TQ_UINT32)),
this, TQT_SLOT(slotUnhideLocalInbox()) );
reload();
}