diff options
author | Darrell Anderson <[email protected]> | 2012-06-08 16:56:40 -0500 |
---|---|---|
committer | Darrell Anderson <[email protected]> | 2012-06-08 16:56:40 -0500 |
commit | 910a61f9423d69871c2ef9ca8a0d7ace32474f93 (patch) | |
tree | 794bd468068d2616d05878f58b0786b07ceff8d9 /lib/kofficecore/KoQueryTrader.cpp | |
parent | 420112343c04d209e40c6f03f492cdb6154f70fb (diff) | |
download | koffice-910a61f9423d69871c2ef9ca8a0d7ace32474f93.tar.gz koffice-910a61f9423d69871c2ef9ca8a0d7ace32474f93.zip |
Update XDG information in support of bug report 892.
Diffstat (limited to 'lib/kofficecore/KoQueryTrader.cpp')
-rw-r--r-- | lib/kofficecore/KoQueryTrader.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/kofficecore/KoQueryTrader.cpp b/lib/kofficecore/KoQueryTrader.cpp index 5b04d624..7b1618c1 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<KoDocumentEntry> 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> 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> 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<unsigned int>( w ); - available = service->property( "X-KDE-Available" ).toString(); + available = service->property( "X-TDE-Available" ).toString(); } TQValueList<KoFilterEntry::Ptr> KoFilterEntry::query( const TQString & _constr ) |