summaryrefslogtreecommitdiffstats
path: root/parts/documentation/protocols/chm/kchmpart.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
commitd6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch)
treed109539636691d7b03036ca1c0ed29dbae6577cf /parts/documentation/protocols/chm/kchmpart.cpp
parent3331a47a9cad24795c7440ee8107143ce444ef34 (diff)
downloadtdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz
tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'parts/documentation/protocols/chm/kchmpart.cpp')
-rw-r--r--parts/documentation/protocols/chm/kchmpart.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/parts/documentation/protocols/chm/kchmpart.cpp b/parts/documentation/protocols/chm/kchmpart.cpp
index ff6dc9ba..b1d9d166 100644
--- a/parts/documentation/protocols/chm/kchmpart.cpp
+++ b/parts/documentation/protocols/chm/kchmpart.cpp
@@ -15,7 +15,7 @@
*/
#include "kchmpart.h"
-#include <qstring.h>
+#include <tqstring.h>
#include <kinstance.h>
#include <kglobal.h>
@@ -35,7 +35,7 @@ extern "C"
KInstance* KChmPartFactory::s_instance = 0L;
KAboutData* KChmPartFactory::s_about = 0L;
-KChmPartFactory::KChmPartFactory( QObject* parent, const char* name )
+KChmPartFactory::KChmPartFactory( TQObject* parent, const char* name )
: KParts::Factory( parent, name )
{
}
@@ -47,8 +47,8 @@ KChmPartFactory::~KChmPartFactory()
delete s_about;
}
-KParts::Part* KChmPartFactory::createPartObject( QWidget *parentWidget, const char *, QObject *,
- const char *name, const char *, const QStringList & )
+KParts::Part* KChmPartFactory::createPartObject( TQWidget *parentWidget, const char *, TQObject *,
+ const char *name, const char *, const TQStringList & )
{
KChmPart* part = new KChmPart( parentWidget, name );
return part;
@@ -66,7 +66,7 @@ KInstance* KChmPartFactory::instance()
}
-KChmPart::KChmPart( QWidget * parent, const char * name )
+KChmPart::KChmPart( TQWidget * parent, const char * name )
: KDevHTMLPart( ), m_job(0)
{
KInstance * instance = new KInstance( "kchmpart" );
@@ -100,13 +100,13 @@ bool KChmPart::openFile()
m_htmlData.truncate(0);
- m_job = KIO::get( QString("chm:")+m_file+"/", true, false );
- connect( m_job, SIGNAL( data( KIO::Job *, const QByteArray &) ), SLOT( readData( KIO::Job *, const QByteArray &) ) );
- connect( m_job, SIGNAL( result( KIO::Job * ) ), SLOT( jobDone( KIO::Job * ) ) );
+ m_job = KIO::get( TQString("chm:")+m_file+"/", true, false );
+ connect( m_job, TQT_SIGNAL( data( KIO::Job *, const TQByteArray &) ), TQT_SLOT( readData( KIO::Job *, const TQByteArray &) ) );
+ connect( m_job, TQT_SIGNAL( result( KIO::Job * ) ), TQT_SLOT( jobDone( KIO::Job * ) ) );
return true;
}
-void KChmPart::readData(KIO::Job * , const QByteArray & data)
+void KChmPart::readData(KIO::Job * , const TQByteArray & data)
{
m_htmlData += data;
}
@@ -115,7 +115,7 @@ void KChmPart::jobDone( KIO::Job *)
{
m_job=0;
begin();
- write(QString::fromLocal8Bit(m_htmlData));
+ write(TQString::fromLocal8Bit(m_htmlData));
end();
}
*/