diff options
Diffstat (limited to 'kexi/core/kexiactioncategories.cpp')
-rw-r--r-- | kexi/core/kexiactioncategories.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kexi/core/kexiactioncategories.cpp b/kexi/core/kexiactioncategories.cpp index 4f3993425..b3cd1c066 100644 --- a/kexi/core/kexiactioncategories.cpp +++ b/kexi/core/kexiactioncategories.cpp @@ -22,8 +22,8 @@ #include <kstaticdeleter.h> #include <kdebug.h> -#include <qmap.h> -#include <qasciidict.h> +#include <tqmap.h> +#include <tqasciidict.h> namespace Kexi { @@ -41,7 +41,7 @@ class ActionInternal delete supportedObjectTypes; } int categories; - QMap<int, bool> *supportedObjectTypes; + TQMap<int, bool> *supportedObjectTypes; bool allObjectTypesAreSupported : 1; }; @@ -57,7 +57,7 @@ class ActionCategories::Private actions.setAutoDelete(true); } - QAsciiDict<ActionInternal> actions; + TQAsciiDict<ActionInternal> actions; }; KEXICORE_EXPORT ActionCategories *actionCategories() @@ -89,7 +89,7 @@ void ActionCategories::addAction(const char* name, int categories, KexiPart::ObjectTypes supportedObjectType5, KexiPart::ObjectTypes supportedObjectType6, KexiPart::ObjectTypes supportedObjectType7, KexiPart::ObjectTypes supportedObjectType8) { - ActionInternal * a = d->actions.find( name ); + ActionInternal * a = d->actions.tqfind( name ); if (a) { a->categories |= categories; } @@ -99,7 +99,7 @@ void ActionCategories::addAction(const char* name, int categories, } if (supportedObjectType1) { if (!a->supportedObjectTypes) - a->supportedObjectTypes = new QMap<int, bool>(); + a->supportedObjectTypes = new TQMap<int, bool>(); a->supportedObjectTypes->insert(supportedObjectType1, true); if (supportedObjectType2) { a->supportedObjectTypes->insert(supportedObjectType2, true); @@ -127,7 +127,7 @@ void ActionCategories::addAction(const char* name, int categories, void ActionCategories::setAllObjectTypesSupported(const char* name, bool set) { - ActionInternal * a = d->actions.find( name ); + ActionInternal * a = d->actions.tqfind( name ); if (a) a->allObjectTypesAreSupported = set; else @@ -136,14 +136,14 @@ void ActionCategories::setAllObjectTypesSupported(const char* name, bool set) int ActionCategories::actionCategories(const char* name) const { - const ActionInternal * a = d->actions.find( name ); + const ActionInternal * a = d->actions.tqfind( name ); return a ? a->categories : 0; } bool ActionCategories::actionSupportsObjectType(const char* name, KexiPart::ObjectTypes objectType) const { - const ActionInternal * a = d->actions.find( name ); + const ActionInternal * a = d->actions.tqfind( name ); if (a && a->allObjectTypesAreSupported) return true; - return (a && a->supportedObjectTypes) ? a->supportedObjectTypes->contains(objectType) : false; + return (a && a->supportedObjectTypes) ? a->supportedObjectTypes->tqcontains(objectType) : false; } |