summaryrefslogtreecommitdiffstats
path: root/kmail/kmail_part.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kmail/kmail_part.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-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/kmail_part.cpp')
-rw-r--r--kmail/kmail_part.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/kmail/kmail_part.cpp b/kmail/kmail_part.cpp
index e9722c253..22d48f1ee 100644
--- a/kmail/kmail_part.cpp
+++ b/kmail/kmail_part.cpp
@@ -54,14 +54,14 @@ using KRecentAddress::RecentAddresses;
#include <ksettings/dispatcher.h>
-#include <qlayout.h>
+#include <tqlayout.h>
typedef KParts::GenericFactory< KMailPart > KMailFactory;
K_EXPORT_COMPONENT_FACTORY( libkmailpart, KMailFactory )
-KMailPart::KMailPart(QWidget *parentWidget, const char *widgetName,
- QObject *parent, const char *name, const QStringList &) :
+KMailPart::KMailPart(TQWidget *parentWidget, const char *widgetName,
+ TQObject *parent, const char *name, const TQStringList &) :
DCOPObject("KMailIface"), KParts::ReadOnlyPart(parent, name),
mParentWidget( parentWidget )
{
@@ -99,22 +99,22 @@ KMailPart::KMailPart(QWidget *parentWidget, const char *widgetName,
kapp->dcopClient()->resume(); // Ok. We are ready for DCOP requests.
// create a canvas to insert our widget
- QWidget *canvas = new QWidget(parentWidget, widgetName);
- canvas->setFocusPolicy(QWidget::ClickFocus);
+ TQWidget *canvas = new TQWidget(parentWidget, widgetName);
+ canvas->setFocusPolicy(TQWidget::ClickFocus);
setWidget(canvas);
KGlobal::iconLoader()->addAppDir("kmail");
#if 0
//It's also possible to make a part out of a readerWin
KMReaderWin *mReaderWin = new KMReaderWin( canvas, canvas, actionCollection() );
- connect(mReaderWin, SIGNAL(urlClicked(const KURL&,int)),
- mReaderWin, SLOT(slotUrlClicked()));
- QVBoxLayout *topLayout = new QVBoxLayout(canvas);
+ connect(mReaderWin, TQT_SIGNAL(urlClicked(const KURL&,int)),
+ mReaderWin, TQT_SLOT(slotUrlClicked()));
+ TQVBoxLayout *topLayout = new TQVBoxLayout(canvas);
topLayout->addWidget(mReaderWin);
mReaderWin->setAutoDelete( true );
kmkernel->inboxFolder()->open();
KMMessage *msg = kmkernel->inboxFolder()->getMsg(0);
mReaderWin->setMsg( msg, true );
- mReaderWin->setFocusPolicy(QWidget::ClickFocus);
+ mReaderWin->setFocusPolicy(TQWidget::ClickFocus);
mStatusBar = new KMailStatusBarExtension(this);
//new KParts::SideBarExtension( kmkernel->mainWin()-mainKMWidget()->leftFrame(), this );
KGlobal::iconLoader()->addAppDir("kmail");
@@ -123,9 +123,9 @@ KMailPart::KMailPart(QWidget *parentWidget, const char *widgetName,
#else
mainWidget = new KMMainWidget( canvas, "mainWidget", this, actionCollection(),
kapp->config());
- QVBoxLayout *topLayout = new QVBoxLayout(canvas);
+ TQVBoxLayout *topLayout = new TQVBoxLayout(canvas);
topLayout->addWidget(mainWidget);
- mainWidget->setFocusPolicy(QWidget::ClickFocus);
+ mainWidget->setFocusPolicy(TQWidget::ClickFocus);
mStatusBar = new KMailStatusBarExtension(this);
mStatusBar->addStatusBarItem( mainWidget->vacationScriptIndicator(), 2, false );
@@ -135,20 +135,20 @@ KMailPart::KMailPart(QWidget *parentWidget, const char *widgetName,
// Get to know when the user clicked on a folder in the KMail part and update the headerWidget of Kontact
KParts::InfoExtension *ie = new KParts::InfoExtension( this, "KMailInfo" );
- connect( mainWidget->folderTree(), SIGNAL(folderSelected(KMFolder*)), this, SLOT(exportFolder(KMFolder*)) );
- connect( mainWidget->folderTree(), SIGNAL(iconChanged(KMFolderTreeItem*)),
- this, SLOT(slotIconChanged(KMFolderTreeItem*)) );
- connect( mainWidget->folderTree(), SIGNAL(nameChanged(KMFolderTreeItem*)),
- this, SLOT(slotNameChanged(KMFolderTreeItem*)) );
- connect( this, SIGNAL(textChanged(const QString&)), ie, SIGNAL(textChanged(const QString&)) );
- connect( this, SIGNAL(iconChanged(const QPixmap&)), ie, SIGNAL(iconChanged(const QPixmap&)) );
+ connect( mainWidget->folderTree(), TQT_SIGNAL(folderSelected(KMFolder*)), this, TQT_SLOT(exportFolder(KMFolder*)) );
+ connect( mainWidget->folderTree(), TQT_SIGNAL(iconChanged(KMFolderTreeItem*)),
+ this, TQT_SLOT(slotIconChanged(KMFolderTreeItem*)) );
+ connect( mainWidget->folderTree(), TQT_SIGNAL(nameChanged(KMFolderTreeItem*)),
+ this, TQT_SLOT(slotNameChanged(KMFolderTreeItem*)) );
+ connect( this, TQT_SIGNAL(textChanged(const TQString&)), ie, TQT_SIGNAL(textChanged(const TQString&)) );
+ connect( this, TQT_SIGNAL(iconChanged(const TQPixmap&)), ie, TQT_SIGNAL(iconChanged(const TQPixmap&)) );
KGlobal::iconLoader()->addAppDir( "kmail" );
setXMLFile( "kmail_part.rc" );
#endif
KSettings::Dispatcher::self()->registerInstance( KMailFactory::instance(), mKMailKernel,
- SLOT( slotConfigChanged() ) );
+ TQT_SLOT( slotConfigChanged() ) );
}
KMailPart::~KMailPart()
@@ -231,7 +231,7 @@ void KMailPart::exit()
delete this;
}
-QWidget* KMailPart::parentWidget() const
+TQWidget* KMailPart::parentWidget() const
{
return mParentWidget;
}