diff options
Diffstat (limited to 'kexi/formeditor/widgetlibrary.cpp')
-rw-r--r-- | kexi/formeditor/widgetlibrary.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/kexi/formeditor/widgetlibrary.cpp b/kexi/formeditor/widgetlibrary.cpp index ac663f8b..3d8607ba 100644 --- a/kexi/formeditor/widgetlibrary.cpp +++ b/kexi/formeditor/widgetlibrary.cpp @@ -173,20 +173,20 @@ WidgetLibrary::loadFactoryWidgets(WidgetFactory *f) // TQStringList l = TQStringList::split("|", w->alternateClassName()); TQValueList<TQCString>::ConstIterator endIt = l.constEnd(); for(TQValueList<TQCString>::ConstIterator it = l.constBegin(); it != endIt; ++it) { - WidgetInfo *widgetForClass = d->widgets.tqfind( *it ); + WidgetInfo *widgetForClass = d->widgets.find( *it ); if (!widgetForClass || (widgetForClass && !widgetForClass->isOverriddenClassName(*it))) { //insert a widgetinfo, if: //1) this class has no alternate class assigned yet, or //2) this class has alternate class assigned but without 'override' flag - d->widgets.tqreplace( *it, w); + d->widgets.replace( *it, w); } -/* WidgetInfo *widgetForClass = d->alternateWidgets.tqfind(*it); +/* WidgetInfo *widgetForClass = d->alternateWidgets.find(*it); if (!widgetForClass || (widgetForClass && !widgetForClass->isOverriddenClassName(*it))) { //insert a widgetinfo, if: //1) this class has no alternate class assigned yet, or //2) this class has alternate class assigned but without 'override' flag - d->alternateWidgets.tqreplace(*it, w); + d->alternateWidgets.replace(*it, w); }*/ } } @@ -249,7 +249,7 @@ WidgetLibrary::loadFactories() //collect information about classes to be hidden if (f->m_hiddenClasses) { for (TQAsciiDictIterator<char> it2(*f->m_hiddenClasses); it2.current(); ++it2) { - d->hiddenClasses.tqreplace( it2.currentKey(), (char*)1 ); + d->hiddenClasses.replace( it2.currentKey(), (char*)1 ); } } } @@ -453,7 +453,7 @@ TQString WidgetLibrary::displayName(const TQCString &classname) { loadFactories(); - WidgetInfo *wi = d->widgets.tqfind(classname); + WidgetInfo *wi = d->widgets.find(classname); if(wi) return wi->name(); @@ -465,7 +465,7 @@ WidgetLibrary::savingName(const TQCString &classname) { loadFactories(); TQString s; - WidgetInfo *wi = d->widgets.tqfind(classname); + WidgetInfo *wi = d->widgets.find(classname); if(wi && !wi->savingName().isEmpty()) return wi->savingName(); @@ -476,7 +476,7 @@ TQString WidgetLibrary::namePrefix(const TQCString &classname) { loadFactories(); - WidgetInfo *wi = d->widgets.tqfind(classname); + WidgetInfo *wi = d->widgets.find(classname); if(wi) return wi->namePrefix(); @@ -501,7 +501,7 @@ TQCString WidgetLibrary::classNameForAlternate(const TQCString &classname) { loadFactories(); - if(d->widgets.tqfind(classname)) + if(d->widgets.find(classname)) return classname; WidgetInfo *wi = d->widgets[classname]; @@ -517,7 +517,7 @@ TQString WidgetLibrary::includeFileName(const TQCString &classname) { loadFactories(); - WidgetInfo *wi = d->widgets.tqfind(classname); + WidgetInfo *wi = d->widgets.find(classname); if(wi) return wi->includeFileName(); @@ -528,7 +528,7 @@ TQString WidgetLibrary::iconName(const TQCString &classname) { loadFactories(); - WidgetInfo *wi = d->widgets.tqfind(classname); + WidgetInfo *wi = d->widgets.find(classname); if(wi) return wi->pixmap(); @@ -539,7 +539,7 @@ bool WidgetLibrary::saveSpecialProperty(const TQCString &classname, const TQString &name, const TQVariant &value, TQWidget *w, TQDomElement &parentNode, TQDomDocument &tqparent) { loadFactories(); - WidgetInfo *wi = d->widgets.tqfind(classname); + WidgetInfo *wi = d->widgets.find(classname); if (!wi) return false; @@ -555,7 +555,7 @@ bool WidgetLibrary::readSpecialProperty(const TQCString &classname, TQDomElement &node, TQWidget *w, ObjectTreeItem *item) { loadFactories(); - WidgetInfo *wi = d->widgets.tqfind(classname); + WidgetInfo *wi = d->widgets.find(classname); if (!wi) return false; if (wi->factory()->readSpecialProperty(classname, node, w, item)) @@ -587,7 +587,7 @@ WidgetLibrary::isPropertyVisible(const TQCString &classname, TQWidget *w, } loadFactories(); - WidgetInfo *wi = d->widgets.tqfind(classname); + WidgetInfo *wi = d->widgets.find(classname); if (!wi) return false; if (!d->showAdvancedProperties && d->advancedProperties[ property ]) { @@ -613,7 +613,7 @@ TQValueList<TQCString> WidgetLibrary::autoSaveProperties(const TQCString &classname) { loadFactories(); - WidgetInfo *wi = d->widgets.tqfind(classname); + WidgetInfo *wi = d->widgets.find(classname); if(!wi) return TQValueList<TQCString>(); TQValueList<TQCString> lst; @@ -628,7 +628,7 @@ WidgetInfo* WidgetLibrary::widgetInfoForClassName(const char* classname) { loadFactories(); - return d->widgets.tqfind(classname); + return d->widgets.find(classname); } WidgetFactory* |