diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | b6edfe41c9395f2e20784cbf0e630af6426950a3 (patch) | |
tree | 56ed9b871d4296e6c15949c24e16420be1b28697 /kexi/formeditor/widgetfactory.cpp | |
parent | ef39e8e4178a8f98cf5f154916ba0f03e4855206 (diff) | |
download | koffice-b6edfe41c9395f2e20784cbf0e630af6426950a3.tar.gz koffice-b6edfe41c9395f2e20784cbf0e630af6426950a3.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kexi/formeditor/widgetfactory.cpp')
-rw-r--r-- | kexi/formeditor/widgetfactory.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kexi/formeditor/widgetfactory.cpp b/kexi/formeditor/widgetfactory.cpp index f26661ab..3e0458b9 100644 --- a/kexi/formeditor/widgetfactory.cpp +++ b/kexi/formeditor/widgetfactory.cpp @@ -100,7 +100,7 @@ void WidgetInfo::addAlternateClassName(const TQCString& alternateName, bool over bool WidgetInfo::isOverriddenClassName(const TQCString& alternateName) const { - return m_overriddenAlternateNames && (m_overriddenAlternateNames->tqfind(alternateName) != 0); + return m_overriddenAlternateNames && (m_overriddenAlternateNames->find(alternateName) != 0); } void WidgetInfo::setAutoSyncForProperty(const char *propertyName, tristate flag) @@ -121,7 +121,7 @@ void WidgetInfo::setAutoSyncForProperty(const char *propertyName, tristate flag) tristate WidgetInfo::autoSyncForProperty(const char *propertyName) const { - char* flag = m_propertiesWithDisabledAutoSync ? m_propertiesWithDisabledAutoSync->tqfind(propertyName) : 0; + char* flag = m_propertiesWithDisabledAutoSync ? m_propertiesWithDisabledAutoSync->find(propertyName) : 0; if (!flag) return cancelled; return flag==(char*)1 ? true : false; @@ -134,12 +134,12 @@ void WidgetInfo::setCustomTypeForProperty(const char *propertyName, int type) if (!m_customTypesForProperty) { m_customTypesForProperty = new TQMap<TQCString,int>(); } - m_customTypesForProperty->tqreplace(propertyName, type); + m_customTypesForProperty->replace(propertyName, type); } int WidgetInfo::customTypeForProperty(const char *propertyName) const { - if (!m_customTypesForProperty || !m_customTypesForProperty->tqcontains(propertyName)) + if (!m_customTypesForProperty || !m_customTypesForProperty->contains(propertyName)) return KoProperty::Auto; return (*m_customTypesForProperty)[propertyName]; } @@ -253,7 +253,7 @@ WidgetFactory::createEditor(const TQCString &classname, const TQString &text, //copy properties if available WidgetWithSubpropertiesInterface* subpropIface = dynamic_cast<WidgetWithSubpropertiesInterface*>(w); TQWidget *subwidget = (subpropIface && subpropIface->subwidget()) ? subpropIface->subwidget() : w; - if (-1!=m_editor->tqmetaObject()->tqfindProperty("margin", true) && -1!=subwidget->tqmetaObject()->tqfindProperty("margin", true)) + if (-1!=m_editor->tqmetaObject()->findProperty("margin", true) && -1!=subwidget->tqmetaObject()->findProperty("margin", true)) m_editor->setProperty("margin", subwidget->property("margin")); //#endif //js m_handles = new ResizeHandleSet(w, container->form(), true); @@ -520,7 +520,7 @@ WidgetFactory::changeProperty(const char *name, const TQVariant &value, Form *fo else { WidgetPropertySet *set = KFormDesigner::FormManager::self()->propertySet(); - if(set->tqcontains(name)) + if(set->contains(name)) (*set)[name] = value; } } |