diff options
Diffstat (limited to 'kab')
| -rw-r--r-- | kab/addressbook.cpp | 16 | ||||
| -rw-r--r-- | kab/addressbook.h | 2 | ||||
| -rw-r--r-- | kab/kabapi.cpp | 8 | ||||
| -rw-r--r-- | kab/kabapi.h | 2 | ||||
| -rw-r--r-- | kab/qconfigDB.cpp | 12 | ||||
| -rw-r--r-- | kab/qconfigDB.h | 5 |
6 files changed, 23 insertions, 22 deletions
diff --git a/kab/addressbook.cpp b/kab/addressbook.cpp index 017621ac7..aa1ddfdfb 100644 --- a/kab/addressbook.cpp +++ b/kab/addressbook.cpp @@ -23,7 +23,7 @@ #include <tdeapplication.h> #include <tdeglobal.h> -#include <kstandarddirs.h> +#include <tdestandarddirs.h> #include <tdelocale.h> #include <kdebug.h> #include <tdemessagebox.h> @@ -100,7 +100,7 @@ const int AddressBook::Entry::NoOfFields =sizeof(AddressBook::Entry::Fields)/sizeof(AddressBook::Entry::Fields[0]); struct QStringLess - : public binary_function<const TQString&, const TQString&, bool> + : public std::function<bool(const TQString&, const TQString&)> { /** The function operator, inline. */ bool operator()(const TQString& x, const TQString& y) const @@ -418,12 +418,12 @@ AddressBook::AddressBook(TQWidget* parent, const char* name, bool loadit) KMessageBox::error(this, i18n("Cannot initialize local variables."), i18n("Out of Memory")); - kapp->quit(); // It is critical, but will possibly never happen. + tdeApp->quit(); // It is critical, but will possibly never happen. } - connect(data, TQT_SIGNAL(fileChanged()), TQT_SLOT(dataFileChanged())); - connect(data, TQT_SIGNAL(changed(QConfigDB*)), - TQT_SLOT(reloaded(QConfigDB*))); - connect(config, TQT_SIGNAL(fileChanged()), TQT_SLOT(configFileChanged())); + connect(data, TQ_SIGNAL(fileChanged()), TQ_SLOT(dataFileChanged())); + connect(data, TQ_SIGNAL(changed(QConfigDB*)), + TQ_SLOT(reloaded(QConfigDB*))); + connect(config, TQ_SIGNAL(fileChanged()), TQ_SLOT(configFileChanged())); // ----- set style: filename = locate( "data", STD_CONFIGFILENAME); @@ -1066,7 +1066,7 @@ AddressBook::add(const Entry& entry, KabKey& key, bool update) KMessageBox::error(this, i18n("Cannot initialize local variables."), i18n("Out of Memory")); - kapp->quit(); // It is critical, but will possibly never happen. + tdeApp->quit(); // It is critical, but will possibly never happen. return InternError; // shut the compiler up... } // ----- lock the file: diff --git a/kab/addressbook.h b/kab/addressbook.h index 8aa78411e..1137407b3 100644 --- a/kab/addressbook.h +++ b/kab/addressbook.h @@ -183,7 +183,7 @@ class CategoriesMap : public TQMap<int, TQString> class AddressBook : public TQFrame { // ############################################################################ - Q_OBJECT + TQ_OBJECT // ---------------------------------------------------------------------------- public: /** diff --git a/kab/kabapi.cpp b/kab/kabapi.cpp index 62a50f162..2008f1f88 100644 --- a/kab/kabapi.cpp +++ b/kab/kabapi.cpp @@ -43,8 +43,8 @@ KabAPI::KabAPI(TQWidget* parent, const char* name) setMainWidget(listbox); showButtonApply(false); enableButtonSeparator(true); - connect(listbox, TQT_SIGNAL(highlighted(int)), TQT_SLOT(entrySelected(int))); - connect(listbox, TQT_SIGNAL(doubleClicked ( TQListBoxItem * )),TQT_SLOT(slotDoubleClicked ( TQListBoxItem * ))); + connect(listbox, TQ_SIGNAL(highlighted(int)), TQ_SLOT(entrySelected(int))); + connect(listbox, TQ_SIGNAL(doubleClicked ( TQListBoxItem * )),TQ_SLOT(slotDoubleClicked ( TQListBoxItem * ))); } @@ -90,8 +90,8 @@ AddressBook::ErrorCode KabAPI::init() book=new AddressBook(0, "KABAPI::book", true); //change parent from "this" to "0" //dsweet if(book->getState()==AddressBook::NoError) { - connect(book, TQT_SIGNAL(setStatus(const TQString&)), - TQT_SLOT(setStatusSlot(const TQString&))); + connect(book, TQ_SIGNAL(setStatus(const TQString&)), + TQ_SLOT(setStatusSlot(const TQString&))); return AddressBook::NoError; } else { return AddressBook::InternError; diff --git a/kab/kabapi.h b/kab/kabapi.h index 98cae1320..b2585760a 100644 --- a/kab/kabapi.h +++ b/kab/kabapi.h @@ -68,7 +68,7 @@ class TDEListBox; class KabAPI : public KDialogBase { // ############################################################################ - Q_OBJECT + TQ_OBJECT // ---------------------------------------------------------------------------- public: /** diff --git a/kab/qconfigDB.cpp b/kab/qconfigDB.cpp index dc77a1e1b..ed4c2b15a 100644 --- a/kab/qconfigDB.cpp +++ b/kab/qconfigDB.cpp @@ -656,7 +656,7 @@ KeyValueMap::insert(const TQCString& key, const TQString& value, bool force) TQCString v; // ----- v=value.utf8(); - kdDebug(GUARD, KAB_KDEBUG_AREA) << "KeyValueMap::insert[QString]: trying to " + kdDebug(GUARD, KAB_KDEBUG_AREA) << "KeyValueMap::insert[TQString]: trying to " "insert \"" << (!value.isNull() ? "true" : "false") << "\" for key\n -->" << v @@ -670,19 +670,19 @@ KeyValueMap::get(const TQCString& key, TQString& value) const { bool GUARD; GUARD=false; // ########################################################################### - kdDebug(GUARD, KAB_KDEBUG_AREA) << "KeyValueMap::get[QString]: trying to get " + kdDebug(GUARD, KAB_KDEBUG_AREA) << "KeyValueMap::get[TQString]: trying to get " "a TQString value for key " << key << endl; TQCString v; // ----- get string representation: if(!get(key, v)) { - kdDebug(GUARD, KAB_KDEBUG_AREA) << "KeyValueMap::get[QString]: key " + kdDebug(GUARD, KAB_KDEBUG_AREA) << "KeyValueMap::get[TQString]: key " << key << " not in KeyValueMap.\n"; return false; } // ----- find its state: value=TQString::fromUtf8(v); // is there a better way? - kdDebug(GUARD, KAB_KDEBUG_AREA) << "KeyValueMap::get[QString]: success, value" + kdDebug(GUARD, KAB_KDEBUG_AREA) << "KeyValueMap::get[TQString]: success, value" " (in UTF8) is " << v << endl; return true; // ########################################################################### @@ -712,7 +712,7 @@ KeyValueMap::get(const TQCString& key, bool& value) const bool GUARD; GUARD=false; // ########################################################################### kdDebug(GUARD, KAB_KDEBUG_AREA) << "KeyValueMap::get[bool]: trying to get " - "BOOL value for key " << key << endl; + "bool value for key " << key << endl; TQCString v; // ----- get string representation: if(!get(key, v)) @@ -2221,7 +2221,7 @@ QConfigDB::watch(bool state) if(timer==0) { timer=new TQTimer(this); - connect(timer, TQT_SIGNAL(timeout()), TQT_SLOT(checkFileChanged())); + connect(timer, TQ_SIGNAL(timeout()), TQ_SLOT(checkFileChanged())); } timer->start(1000); } else { // stop timer diff --git a/kab/qconfigDB.h b/kab/qconfigDB.h index 36fcd369d..f74e5886c 100644 --- a/kab/qconfigDB.h +++ b/kab/qconfigDB.h @@ -19,6 +19,7 @@ namespace std { } using namespace std; +#include <functional> #include <list> #include <map> #include <tqwidget.h> @@ -43,7 +44,7 @@ class TQTextStream; * it is called with. */ struct QCStringLess - : public binary_function<const TQCString&, const TQCString&, bool> + : public std::function<bool(const TQCString&, const TQCString&)> { /** * The function operator, inline. @@ -550,7 +551,7 @@ public: class QConfigDB : public TQWidget { // ############################################################################ - Q_OBJECT + TQ_OBJECT // ---------------------------------------------------------------------------- protected: /** |
