summaryrefslogtreecommitdiffstats
path: root/kviewshell/kviewpart.cpp
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2012-06-08 15:50:58 -0500
committerDarrell Anderson <humanreadable@yahoo.com>2012-06-08 15:50:58 -0500
commitca58f70d61344cd47c353814e28e8d24fcadb99c (patch)
treeb690e14714083720b086bc8db3d2ec31d300ec0c /kviewshell/kviewpart.cpp
parent14b75e943ab94f87e0361800ef61a637294d85e5 (diff)
downloadtdegraphics-ca58f70d61344cd47c353814e28e8d24fcadb99c.tar.gz
tdegraphics-ca58f70d61344cd47c353814e28e8d24fcadb99c.zip
Update XDG information in support of bug report 892.
Diffstat (limited to 'kviewshell/kviewpart.cpp')
-rw-r--r--kviewshell/kviewpart.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kviewshell/kviewpart.cpp b/kviewshell/kviewpart.cpp
index d9c4fb38..6afcee50 100644
--- a/kviewshell/kviewpart.cpp
+++ b/kviewshell/kviewpart.cpp
@@ -97,8 +97,8 @@ KViewPart::KViewPart(TQWidget *parentWidget, const char *widgetName, TQObject *p
TQString defaultMimeType = args.first();
offers = KTrader::self()->query(
TQString::fromLatin1("KViewShell/MultiPage" ),
- TQString("([X-KDE-MultiPageVersion] == %1) and "
- "([X-KDE-MimeTypes] == '%2')").arg(MULTIPAGE_VERSION).arg(defaultMimeType));
+ TQString("([X-TDE-MultiPageVersion] == %1) and "
+ "([X-TDE-MimeTypes] == '%2')").arg(MULTIPAGE_VERSION).arg(defaultMimeType));
}
// If no default MimeType is given or no MultiPage has been found, try to load the Empty MultiPage.
@@ -106,8 +106,8 @@ KViewPart::KViewPart(TQWidget *parentWidget, const char *widgetName, TQObject *p
{
offers = KTrader::self()->query(
TQString::fromLatin1("KViewShell/MultiPage" ),
- TQString("([X-KDE-MultiPageVersion] == %1) and "
- "([X-KDE-EmptyMultiPage] == 1)").arg(MULTIPAGE_VERSION));
+ TQString("([X-TDE-MultiPageVersion] == %1) and "
+ "([X-TDE-EmptyMultiPage] == 1)").arg(MULTIPAGE_VERSION));
}
// If still no MultiPage has been found, report an error and abort.
@@ -472,7 +472,7 @@ TQStringList KViewPart::supportedMimeTypes()
// Search for service
KTrader::OfferList offers = KTrader::self()->query(
TQString::fromLatin1("KViewShell/MultiPage"),
- TQString("([X-KDE-MultiPageVersion] == %1)").arg(MULTIPAGE_VERSION)
+ TQString("([X-TDE-MultiPageVersion] == %1)").arg(MULTIPAGE_VERSION)
);
if (!offers.isEmpty())
@@ -483,7 +483,7 @@ TQStringList KViewPart::supportedMimeTypes()
for (; iterator != end; ++iterator)
{
KService::Ptr service = *iterator;
- TQString mimeType = service->property("X-KDE-MimeTypes").toString();
+ TQString mimeType = service->property("X-TDE-MimeTypes").toString();
supportedMimeTypes << mimeType;
}
@@ -517,7 +517,7 @@ TQStringList KViewPart::fileFormats() const
// Search for service
KTrader::OfferList offers = KTrader::self()->query(
TQString::fromLatin1("KViewShell/MultiPage"),
- TQString("([X-KDE-MultiPageVersion] == %1)").arg(MULTIPAGE_VERSION)
+ TQString("([X-TDE-MultiPageVersion] == %1)").arg(MULTIPAGE_VERSION)
);
if (!offers.isEmpty())
@@ -528,7 +528,7 @@ TQStringList KViewPart::fileFormats() const
for (; iterator != end; ++iterator)
{
KService::Ptr service = *iterator;
- TQString mimeType = service->property("X-KDE-MimeTypes").toString();
+ TQString mimeType = service->property("X-TDE-MimeTypes").toString();
supportedMimeTypes << mimeType;
TQStringList pattern = KMimeType::mimeType(mimeType)->patterns();
@@ -769,8 +769,8 @@ bool KViewPart::openFile()
// Search for service
KTrader::OfferList offers = KTrader::self()->query(
TQString::fromLatin1("KViewShell/MultiPage" ),
- TQString("([X-KDE-MultiPageVersion] == %1) and "
- "([X-KDE-MimeTypes] == '%2')").arg(MULTIPAGE_VERSION).arg(mimetype->name()));
+ TQString("([X-TDE-MultiPageVersion] == %1) and "
+ "([X-TDE-MimeTypes] == '%2')").arg(MULTIPAGE_VERSION).arg(mimetype->name()));
if (offers.isEmpty()) {
KMessageBox::detailedError(mainWidget, i18n("<qt>The document <b>%1</b> cannot be shown because "