From 910a61f9423d69871c2ef9ca8a0d7ace32474f93 Mon Sep 17 00:00:00 2001 From: Darrell Anderson Date: Fri, 8 Jun 2012 16:56:40 -0500 Subject: Update XDG information in support of bug report 892. --- lib/kofficecore/KoQueryTrader.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'lib/kofficecore/KoQueryTrader.cpp') diff --git a/lib/kofficecore/KoQueryTrader.cpp b/lib/kofficecore/KoQueryTrader.cpp index 5b04d6249..7b1618c11 100644 --- a/lib/kofficecore/KoQueryTrader.cpp +++ b/lib/kofficecore/KoQueryTrader.cpp @@ -76,7 +76,7 @@ KoDocument* KoDocumentEntry::createDoc( KoDocument* parent, const char* name ) c KoDocumentEntry KoDocumentEntry::queryByMimeType( const TQString & mimetype ) { - TQString constr = TQString::fromLatin1( "[X-KDE-NativeMimeType] == '%1' or '%2' in [X-KDE-ExtraNativeMimeTypes]" ).arg( mimetype ).arg( mimetype ); + TQString constr = TQString::fromLatin1( "[X-TDE-NativeMimeType] == '%1' or '%2' in [X-TDE-ExtraNativeMimeTypes]" ).arg( mimetype ).arg( mimetype ); TQValueList vec = query( false,constr ); if ( vec.isEmpty() ) @@ -96,7 +96,7 @@ KoDocumentEntry KoDocumentEntry::queryByMimeType( const TQString & mimetype ) } else { kdError(30003) << "Found no KOffice part able to handle " << mimetype << "!" << endl; - kdError(30003) << "Check your installation (does the desktop file have X-KDE-NativeMimeType and KOfficePart, did you install KOffice in a different prefix than KDE, without adding the prefix to /etc/kderc ?)" << endl; + kdError(30003) << "Check your installation (does the desktop file have X-TDE-NativeMimeType and KOfficePart, did you install KOffice in a different prefix than KDE, without adding the prefix to /etc/kderc ?)" << endl; } return KoDocumentEntry(); } @@ -135,7 +135,7 @@ TQValueList KoDocumentEntry::query( bool _onlyDocEmb, const TQS if ( (*it)->noDisplay() ) continue; // Maybe this could be done as a trader constraint too. - if ( (!_onlyDocEmb) || ((*it)->property("X-KDE-NOTKoDocumentEmbeddable").toString()!="1") ) + if ( (!_onlyDocEmb) || ((*it)->property("X-TDE-NOTKoDocumentEmbeddable").toString()!="1") ) { KoDocumentEntry d( *it ); // Append converted offer @@ -162,11 +162,11 @@ TQValueList KoDocumentEntry::query( bool _onlyDocEmb, const TQS KoFilterEntry::KoFilterEntry( KService::Ptr service ) : m_service( service ) { - import = service->property( "X-KDE-Import" ).toStringList(); - export_ = service->property( "X-KDE-Export" ).toStringList(); - int w = service->property( "X-KDE-Weight" ).toInt(); + import = service->property( "X-TDE-Import" ).toStringList(); + export_ = service->property( "X-TDE-Export" ).toStringList(); + int w = service->property( "X-TDE-Weight" ).toInt(); weight = w < 0 ? UINT_MAX : static_cast( w ); - available = service->property( "X-KDE-Available" ).toString(); + available = service->property( "X-TDE-Available" ).toString(); } TQValueList KoFilterEntry::query( const TQString & _constr ) -- cgit v1.2.3