diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:51:49 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:51:49 +0000 |
commit | 4ae0c208b66e0f7954e194384464fe2d0a2c56dd (patch) | |
tree | b0a7cd1c184f0003c0292eb416ed27f674f9cc43 /kbabel/common/importplugin.cpp | |
parent | 1964ea0fb4ab57493ca2ebb709c8d3b5395fd653 (diff) | |
download | tdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.tar.gz tdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1157652 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kbabel/common/importplugin.cpp')
-rw-r--r-- | kbabel/common/importplugin.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/kbabel/common/importplugin.cpp b/kbabel/common/importplugin.cpp index d763e670..711d77cd 100644 --- a/kbabel/common/importplugin.cpp +++ b/kbabel/common/importplugin.cpp @@ -36,14 +36,14 @@ #include "catalog.h" -#include <qstringlist.h> +#include <tqstringlist.h> #include <kdebug.h> #include <ktrader.h> using namespace KBabel; -CatalogImportPlugin::CatalogImportPlugin(QObject* parent, const char* name) : QObject(parent,name) +CatalogImportPlugin::CatalogImportPlugin(TQObject* parent, const char* name) : TQObject(parent,name) { d = new CatalogImportPluginPrivate; d->_catalog = 0; @@ -64,7 +64,7 @@ void CatalogImportPlugin::appendCatalogItem( const CatalogItem& item, const bool d->_entries.append(item); } -void CatalogImportPlugin::setCatalogExtraData( const QStringList& data ) +void CatalogImportPlugin::setCatalogExtraData( const TQStringList& data ) { d->_catalogExtraData=data; d->_updateCatalogExtraData=true; @@ -76,13 +76,13 @@ void CatalogImportPlugin::setGeneratedFromDocbook( const bool generated ) d->_updateGeneratedFromDocbook = true; } -void CatalogImportPlugin::setErrorIndex(const QValueList<uint>& errors) +void CatalogImportPlugin::setErrorIndex(const TQValueList<uint>& errors) { d->_errorList = errors; d->_updateErrorList = true; } -void CatalogImportPlugin::setFileCodec(QTextCodec* codec) +void CatalogImportPlugin::setFileCodec(TQTextCodec* codec) { d->_codec=codec; d->_updateCodec = true; @@ -94,12 +94,12 @@ void CatalogImportPlugin::setHeader( const CatalogItem& item ) d->_updateHeader=true; } -void CatalogImportPlugin::setMimeTypes( const QString& mimetypes ) +void CatalogImportPlugin::setMimeTypes( const TQString& mimetypes ) { d->_mimeTypes=mimetypes; } -ConversionStatus CatalogImportPlugin::open(const QString& file, const QString& mimetype, Catalog* catalog) +ConversionStatus CatalogImportPlugin::open(const TQString& file, const TQString& mimetype, Catalog* catalog) { d->_stopped=false; d->_catalog=catalog; @@ -138,9 +138,9 @@ void CatalogImportPlugin::commitTransaction() d->_catalog->clear(); // fill in the entries - QValueVector<CatalogItem> e; + TQValueVector<CatalogItem> e; e.reserve( d->_entries.count() ); - for( QValueList<CatalogItem>::const_iterator it = d->_entries.begin(); it != d->_entries.end(); ++it ) + for( TQValueList<CatalogItem>::const_iterator it = d->_entries.begin(); it != d->_entries.end(); ++it ) { e.append( *it ); } @@ -167,9 +167,9 @@ void CatalogImportPlugin::commitTransaction() d->_started = false; } -QStringList CatalogImportPlugin::availableImportMimeTypes() +TQStringList CatalogImportPlugin::availableImportMimeTypes() { - QStringList result; + TQStringList result; KTrader::OfferList offers = KTrader::self()->query("KBabelFilter", "exist [X-KDE-Import]"); |