diff options
Diffstat (limited to 'lib/kofficecore/KoQueryTrader.cpp')
-rw-r--r-- | lib/kofficecore/KoQueryTrader.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/lib/kofficecore/KoQueryTrader.cpp b/lib/kofficecore/KoQueryTrader.cpp index 00f4379b..e164aa1a 100644 --- a/lib/kofficecore/KoQueryTrader.cpp +++ b/lib/kofficecore/KoQueryTrader.cpp @@ -26,7 +26,7 @@ #include <kservicetype.h> #include <kdebug.h> -#include <qfile.h> +#include <tqfile.h> #include <limits.h> // UINT_MAX @@ -48,21 +48,21 @@ KoDocumentEntry::KoDocumentEntry( KService::Ptr service ) { } -KoDocument* KoDocumentEntry::createDoc( KoDocument* parent, const char* name ) const +KoDocument* KoDocumentEntry::createDoc( KoDocument* tqparent, const char* name ) const { - KLibFactory* factory = KLibLoader::self()->factory( QFile::encodeName(m_service->library()) ); + KLibFactory* factory = KLibLoader::self()->factory( TQFile::encodeName(m_service->library()) ); if( !factory ) { kdWarning(30003) << KLibLoader::self()->lastErrorMessage() << endl; return 0; } - QObject* obj; + TQObject* obj; if ( factory->inherits( "KParts::Factory" ) ) - obj = static_cast<KParts::Factory *>(factory)->createPart( 0L, "", parent, name, "KoDocument" ); + obj = static_cast<KParts::Factory *>(factory)->createPart( 0L, "", tqparent, name, "KoDocument" ); else { kdWarning(30003) << "factory doesn't inherit KParts::Factory ! It is a " << factory->className() << endl; // This shouldn't happen... - obj = factory->create( parent, name, "KoDocument" ); + obj = factory->create( tqparent, name, "KoDocument" ); } if ( !obj || !obj->inherits( "KoDocument" ) ) @@ -74,16 +74,16 @@ KoDocument* KoDocumentEntry::createDoc( KoDocument* parent, const char* name ) c return static_cast<KoDocument*>(obj); } -KoDocumentEntry KoDocumentEntry::queryByMimeType( const QString & mimetype ) +KoDocumentEntry KoDocumentEntry::queryByMimeType( const TQString & mimetype ) { - QString constr = QString::fromLatin1( "[X-KDE-NativeMimeType] == '%1' or '%2' in [X-KDE-ExtraNativeMimeTypes]" ).arg( mimetype ).arg( mimetype ); + TQString constr = TQString::tqfromLatin1( "[X-KDE-NativeMimeType] == '%1' or '%2' in [X-KDE-ExtraNativeMimeTypes]" ).tqarg( mimetype ).tqarg( mimetype ); - QValueList<KoDocumentEntry> vec = query( false,constr ); + TQValueList<KoDocumentEntry> vec = query( false,constr ); if ( vec.isEmpty() ) { kdWarning(30003) << "Got no results with " << constr << endl; // Fallback to the old way (which was probably wrong, but better be safe) - QString constr = QString::fromLatin1( "'%1' in ServiceTypes" ).arg( mimetype ); + TQString constr = TQString::tqfromLatin1( "'%1' in ServiceTypes" ).tqarg( mimetype ); vec = query( constr ); if ( vec.isEmpty() ) { @@ -105,16 +105,16 @@ KoDocumentEntry KoDocumentEntry::queryByMimeType( const QString & mimetype ) return vec[0]; } -QValueList<KoDocumentEntry> KoDocumentEntry::query( const QString & _constr ) +TQValueList<KoDocumentEntry> KoDocumentEntry::query( const TQString & _constr ) { return query(true,_constr); } -QValueList<KoDocumentEntry> KoDocumentEntry::query( bool _onlyDocEmb, const QString & _constr ) +TQValueList<KoDocumentEntry> KoDocumentEntry::query( bool _onlyDocEmb, const TQString & _constr ) { - QValueList<KoDocumentEntry> lst; - QString constr; + TQValueList<KoDocumentEntry> lst; + TQString constr; if ( !_constr.isEmpty() ) { constr = "("; constr += _constr; @@ -169,10 +169,10 @@ KoFilterEntry::KoFilterEntry( KService::Ptr service ) available = service->property( "X-KDE-Available" ).toString(); } -QValueList<KoFilterEntry::Ptr> KoFilterEntry::query( const QString & _constr ) +TQValueList<KoFilterEntry::Ptr> KoFilterEntry::query( const TQString & _constr ) { kdDebug(30500) << "KoFilterEntry::query( " << _constr << " )" << endl; - QValueList<KoFilterEntry::Ptr> lst; + TQValueList<KoFilterEntry::Ptr> lst; KTrader::OfferList offers = KTrader::self()->query( "KOfficeFilter", _constr ); @@ -192,16 +192,16 @@ QValueList<KoFilterEntry::Ptr> KoFilterEntry::query( const QString & _constr ) return lst; } -KoFilter* KoFilterEntry::createFilter( KoFilterChain* chain, QObject* parent, const char* name ) +KoFilter* KoFilterEntry::createFilter( KoFilterChain* chain, TQObject* tqparent, const char* name ) { - KLibFactory* factory = KLibLoader::self()->factory( QFile::encodeName( m_service->library() ) ); + KLibFactory* factory = KLibLoader::self()->factory( TQFile::encodeName( m_service->library() ) ); if ( !factory ) { kdWarning(30003) << KLibLoader::self()->lastErrorMessage() << endl; return 0; } - QObject* obj = factory->create( parent, name, "KoFilter" ); + TQObject* obj = factory->create( tqparent, name, "KoFilter" ); if ( !obj || !obj->inherits( "KoFilter" ) ) { delete obj; |