From fe50f29e05b1318b520a33179ea50c88b6e2c89a Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 27 Jan 2013 00:53:39 -0600 Subject: Rename a number of libraries and executables to avoid conflicts with KDE4 --- kmymoney2/kmymoney2.cpp | 68 ++++++++++++++++++++++++------------------------- 1 file changed, 34 insertions(+), 34 deletions(-) (limited to 'kmymoney2/kmymoney2.cpp') diff --git a/kmymoney2/kmymoney2.cpp b/kmymoney2/kmymoney2.cpp index 721dfab..8c58101 100644 --- a/kmymoney2/kmymoney2.cpp +++ b/kmymoney2/kmymoney2.cpp @@ -51,10 +51,10 @@ #include #include #include -#include +#include #include #include -#include +#include #include #include #include @@ -62,12 +62,12 @@ #include #include #include -#include +#include #include #include #include #include -#include +#include #include // ---------------------------------------------------------------------------- @@ -93,7 +93,7 @@ #include "dialogs/kimportdlg.h" #include "dialogs/mymoneyqifprofileeditor.h" #include "dialogs/kenterscheduledlg.h" -#include "dialogs/kconfirmmanualenterdlg.h" +#include "dialogs/tdeconfirmmanualenterdlg.h" #include "dialogs/kmymoneypricedlg.h" #include "dialogs/kcurrencyeditdlg.h" #include "dialogs/kequitypriceupdatedlg.h" @@ -2408,10 +2408,10 @@ void KMyMoney2App::slotCategoryNew(MyMoneyAccount& account, const MyMoneyAccount } else { // we should not keep the 'no' setting because that can confuse people like // I have seen in some usability tests. So we just delete it right away. - TDEConfig *kconfig = TDEGlobal::config(); - if(kconfig) { - kconfig->setGroup(TQString::fromLatin1("Notification Messages")); - kconfig->deleteEntry(TQString::fromLatin1("CreateNewCategories")); + TDEConfig *tdeconfig = TDEGlobal::config(); + if(tdeconfig) { + tdeconfig->setGroup(TQString::fromLatin1("Notification Messages")); + tdeconfig->deleteEntry(TQString::fromLatin1("CreateNewCategories")); } } } @@ -2582,10 +2582,10 @@ void KMyMoney2App::slotInvestmentDelete(void) } else { // we should not keep the 'no' setting because that can confuse people like // I have seen in some usability tests. So we just delete it right away. - TDEConfig *kconfig = TDEGlobal::config(); - if(kconfig) { - kconfig->setGroup(TQString::fromLatin1("Notification Messages")); - kconfig->deleteEntry(TQString::fromLatin1("DeleteInvestment")); + TDEConfig *tdeconfig = TDEGlobal::config(); + if(tdeconfig) { + tdeconfig->setGroup(TQString::fromLatin1("Notification Messages")); + tdeconfig->deleteEntry(TQString::fromLatin1("DeleteInvestment")); } } } @@ -3777,10 +3777,10 @@ void KMyMoney2App::slotPayeeNew(const TQString& newnameBase, TQString& id) doit = false; // we should not keep the 'no' setting because that can confuse people like // I have seen in some usability tests. So we just delete it right away. - TDEConfig *kconfig = TDEGlobal::config(); - if(kconfig) { - kconfig->setGroup(TQString::fromLatin1("Notification Messages")); - kconfig->deleteEntry(dontAskAgain); + TDEConfig *tdeconfig = TDEGlobal::config(); + if(tdeconfig) { + tdeconfig->setGroup(TQString::fromLatin1("Notification Messages")); + tdeconfig->deleteEntry(dontAskAgain); } } } @@ -4263,7 +4263,7 @@ void KMyMoney2App::slotKDELanguageSettings(void) TQString error; int pid; - TDEApplication::tdeinitExec("kcmshell", args, &error, &pid); + TDEApplication::tdeinitExec("tdecmshell", args, &error, &pid); } void KMyMoney2App::slotNewFeature(void) @@ -5751,28 +5751,28 @@ void KMyMoney2App::slotCheckSchedules(void) void KMyMoney2App::writeLastUsedDir(const TQString& directory) { //get global config object for our app. - TDEConfig *kconfig = TDEGlobal::config(); - if(kconfig) + TDEConfig *tdeconfig = TDEGlobal::config(); + if(tdeconfig) { - kconfig->setGroup("General Options"); + tdeconfig->setGroup("General Options"); //write path entry, no error handling since its void. - kconfig->writePathEntry("LastUsedDirectory", directory); + tdeconfig->writePathEntry("LastUsedDirectory", directory); } } void KMyMoney2App::writeLastUsedFile(const TQString& fileName) { //get global config object for our app. - TDEConfig *kconfig = TDEGlobal::config(); - if(kconfig) + TDEConfig *tdeconfig = TDEGlobal::config(); + if(tdeconfig) { - kconfig->setGroup("General Options"); + tdeconfig->setGroup("General Options"); // write path entry, no error handling since its void. // use a standard string, as fileName could contain a protocol // e.g. file:/home/thb/.... - kconfig->writeEntry("LastUsedFile", fileName); + tdeconfig->writeEntry("LastUsedFile", fileName); } } @@ -5781,13 +5781,13 @@ TQString KMyMoney2App::readLastUsedDir(void) const TQString str; //get global config object for our app. - TDEConfig *kconfig = TDEGlobal::config(); - if(kconfig) + TDEConfig *tdeconfig = TDEGlobal::config(); + if(tdeconfig) { - kconfig->setGroup("General Options"); + tdeconfig->setGroup("General Options"); //read path entry. Second parameter is the default if the setting is not found, which will be the default document path. - str = kconfig->readPathEntry("LastUsedDirectory", TDEGlobalSettings::documentPath()); + str = tdeconfig->readPathEntry("LastUsedDirectory", TDEGlobalSettings::documentPath()); // if the path stored is empty, we use the default nevertheless if(str.isEmpty()) str = TDEGlobalSettings::documentPath(); @@ -5801,13 +5801,13 @@ TQString KMyMoney2App::readLastUsedFile(void) const TQString str; // get global config object for our app. - TDEConfig *kconfig = TDEGlobal::config(); - if(kconfig) + TDEConfig *tdeconfig = TDEGlobal::config(); + if(tdeconfig) { - kconfig->setGroup("General Options"); + tdeconfig->setGroup("General Options"); // read filename entry. - str = kconfig->readEntry("LastUsedFile", ""); + str = tdeconfig->readEntry("LastUsedFile", ""); } return str; -- cgit v1.2.1