summaryrefslogtreecommitdiffstats
path: root/kmail/foldertreebase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/foldertreebase.cpp')
-rw-r--r--kmail/foldertreebase.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/kmail/foldertreebase.cpp b/kmail/foldertreebase.cpp
index 8f3b8c85a..3ca61845e 100644
--- a/kmail/foldertreebase.cpp
+++ b/kmail/foldertreebase.cpp
@@ -35,20 +35,20 @@ using KPIM::MailListDrag;
#include <kiconloader.h>
#include <kpopupmenu.h>
-#include <qcursor.h>
+#include <tqcursor.h>
using namespace KMail;
-FolderTreeBase::FolderTreeBase(KMMainWidget *mainWidget, QWidget * parent, const char * name) :
+FolderTreeBase::FolderTreeBase(KMMainWidget *mainWidget, TQWidget * parent, const char * name) :
KFolderTree( parent, name ),
mMainWidget( mainWidget )
{
addAcceptableDropMimetype(MailListDrag::format(), false);
}
-void FolderTreeBase::contentsDropEvent(QDropEvent * e)
+void FolderTreeBase::contentsDropEvent(TQDropEvent * e)
{
- QListViewItem *item = itemAt( contentsToViewport(e->pos()) );
+ TQListViewItem *item = itemAt( contentsToViewport(e->pos()) );
KMFolderTreeItem *fti = static_cast<KMFolderTreeItem*>(item);
if ( fti && fti->folder() && e->provides( MailListDrag::format() ) ) {
if ( e->source() == mMainWidget->headers()->viewport() ) {
@@ -86,7 +86,7 @@ int FolderTreeBase::dndMode(bool alwaysAsk)
menu->insertItem( SmallIcon("editcopy"), i18n("&Copy Here"), DRAG_COPY, 1 );
menu->insertSeparator();
menu->insertItem( SmallIcon("cancel"), i18n("C&ancel"), DRAG_CANCEL, 3 );
- action = menu->exec( QCursor::pos(), 0 );
+ action = menu->exec( TQCursor::pos(), 0 );
}
else
action = DRAG_MOVE;
@@ -94,9 +94,9 @@ int FolderTreeBase::dndMode(bool alwaysAsk)
return action;
}
-bool FolderTreeBase::event(QEvent * e)
+bool FolderTreeBase::event(TQEvent * e)
{
- if (e->type() == QEvent::ApplicationPaletteChange) {
+ if (e->type() == TQEvent::ApplicationPaletteChange) {
readColorConfig();
return true;
}
@@ -108,10 +108,10 @@ void FolderTreeBase::readColorConfig()
KConfig* conf = KMKernel::config();
// Custom/System color support
KConfigGroupSaver saver(conf, "Reader");
- QColor c1=QColor(kapp->palette().active().text());
- QColor c2=QColor("blue");
- QColor c4=QColor(kapp->palette().active().base());
- QColor c5=QColor("red");
+ TQColor c1=TQColor(kapp->palette().active().text());
+ TQColor c2=TQColor("blue");
+ TQColor c4=TQColor(kapp->palette().active().base());
+ TQColor c5=TQColor("red");
if (!conf->readBoolEntry("defaultColors",true)) {
mPaintInfo.colFore = conf->readColorEntry("ForegroundColor",&c1);
@@ -125,9 +125,9 @@ void FolderTreeBase::readColorConfig()
mPaintInfo.colBack = c4;
mPaintInfo.colCloseToQuota = c5;
}
- QPalette newPal = kapp->palette();
- newPal.setColor( QColorGroup::Base, mPaintInfo.colBack );
- newPal.setColor( QColorGroup::Text, mPaintInfo.colFore );
+ TQPalette newPal = kapp->palette();
+ newPal.setColor( TQColorGroup::Base, mPaintInfo.colBack );
+ newPal.setColor( TQColorGroup::Text, mPaintInfo.colFore );
setPalette( newPal );
}
@@ -157,7 +157,7 @@ bool FolderTreeBase::hideLocalInbox() const
void FolderTreeBase::slotUpdateCounts(KMFolder * folder, bool force /* = false*/)
{
// kdDebug(5006) << "KMFolderTree::slotUpdateCounts()" << endl;
- QListViewItem * current;
+ TQListViewItem * current;
if (folder)
current = indexOfFolder(folder);
else
@@ -222,13 +222,13 @@ void FolderTreeBase::slotUpdateCounts(KMFolder * folder, bool force /* = false*/
kmkernel->messageCountChanged();
}
-void FolderTreeBase::handleMailListDrop(QDropEvent * event, KMFolder *destination )
+void FolderTreeBase::handleMailListDrop(TQDropEvent * event, KMFolder *destination )
{
MailList list;
if ( !MailListDrag::decode( event, list ) ) {
kdWarning() << k_funcinfo << "Could not decode drag data!" << endl;
} else {
- QValueList<Q_UINT32> serNums = MessageCopyHelper::serNumListFromMailList( list );
+ TQValueList<Q_UINT32> serNums = MessageCopyHelper::serNumListFromMailList( list );
int action;
if ( MessageCopyHelper::inReadOnlyFolder( serNums ) )
action = DRAG_COPY;