diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
commit | 04766b207afba7961d4d802313e426f5a2fbef63 (patch) | |
tree | c888ea1027c793e2d0386a7e5a1a0cd077b03cb3 /lib/koproperty/editor.cpp | |
parent | b6edfe41c9395f2e20784cbf0e630af6426950a3 (diff) | |
download | koffice-04766b207afba7961d4d802313e426f5a2fbef63.tar.gz koffice-04766b207afba7961d4d802313e426f5a2fbef63.zip |
rename the following methods:
tqparent parent
tqmask mask
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/koproperty/editor.cpp')
-rw-r--r-- | lib/koproperty/editor.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/lib/koproperty/editor.cpp b/lib/koproperty/editor.cpp index f15cab20..7d6c809e 100644 --- a/lib/koproperty/editor.cpp +++ b/lib/koproperty/editor.cpp @@ -49,14 +49,14 @@ namespace KoProperty { //! @internal static bool kofficeAppDirAdded = false; -//! \return true if \a o has tqparent \a par. +//! \return true if \a o has parent \a par. //! @internal inline bool hasParent(TQObject* par, TQObject* o) { if (!o || !par) return false; while (o && o != par) - o = o->tqparent(); + o = o->parent(); return o == par; } @@ -119,8 +119,8 @@ class EditorPrivate using namespace KoProperty; -Editor::Editor(TQWidget *tqparent, bool autoSync, const char *name) - : KListView(tqparent, name) +Editor::Editor(TQWidget *parent, bool autoSync, const char *name) + : KListView(parent, name) { d = new EditorPrivate(this); d->itemDict.setAutoDelete(false); @@ -248,7 +248,7 @@ Editor::fill() } void -Editor::addItem(const TQCString &name, EditorItem *tqparent) +Editor::addItem(const TQCString &name, EditorItem *parent) { if(!d->set || !d->set->contains(name)) return; @@ -258,13 +258,13 @@ Editor::addItem(const TQCString &name, EditorItem *tqparent) // kopropertydbg << "Property is not visible: " << name << endl; return; } - TQListViewItem *last = tqparent ? tqparent->firstChild() : d->topItem->firstChild(); + TQListViewItem *last = parent ? parent->firstChild() : d->topItem->firstChild(); while(last && last->nextSibling()) last = last->nextSibling(); EditorItem *item=0; - if(tqparent) - item = new EditorItem(this, tqparent, property, last); + if(parent) + item = new EditorItem(this, parent, property, last); else item = new EditorItem(this, d->topItem, property, last); d->itemDict.insert(name, item); @@ -456,8 +456,8 @@ Editor::slotPropertyChanged(Set& set, Property& property) else { // prop not in the dict, might be a child property: EditorItem *item = d->itemDict[property.name()]; - if(!item && property.tqparent()) - item = d->itemDict[property.tqparent()->name()]; + if(!item && property.parent()) + item = d->itemDict[property.parent()->name()]; if (item) { repaintItem(item); for(TQListViewItem *it = item->firstChild(); it; it = it->nextSibling()) @@ -467,14 +467,14 @@ Editor::slotPropertyChanged(Set& set, Property& property) //! @todo should we move this somewhere? #if 0 - if (property.tqparent() && property.tqparent()->type()==Rect) { + if (property.parent() && property.parent()->type()==Rect) { const int delta = property.value().toInt()-previousValue.toInt(); if (property.type()==Rect_X) { //|| property.type()==Rect_Y) - property.tqparent()->child("width")->setValue(delta, false); + property.parent()->child("width")->setValue(delta, false); } -/* if (widget->property() && (TQWidget*)d->currentWidget==widget && d->currentItem->tqparent()) { - EditorItem *parentItem = static_cast<EditorItem*>(d->currentItem->tqparent()); +/* if (widget->property() && (TQWidget*)d->currentWidget==widget && d->currentItem->parent()) { + EditorItem *parentItem = static_cast<EditorItem*>(d->currentItem->parent()); const int thisType = ; && parentItem->property()->type()==Rect) { //changing x or y components of Rect type shouldn't change width or height, respectively @@ -504,8 +504,8 @@ Editor::slotPropertyReset(Set& set, Property& property) else { EditorItem *item = d->itemDict[property.name()]; // prop not in the dict, might be a child prop. - if(!item && property.tqparent()) - item = d->itemDict[property.tqparent()->name()]; + if(!item && property.parent()) + item = d->itemDict[property.parent()->name()]; if (item) { repaintItem(item); for(TQListViewItem *it = item->firstChild(); it; it = it->nextSibling()) @@ -801,8 +801,8 @@ Editor::slotCollapsed(TQListViewItem *item) return; //unselect child item and hide editor if a group item has been collapsed if (dynamic_cast<EditorGroupItem*>(item)) { - for (TQListViewItem *i = selectedItem(); i; i = i->tqparent()) { - if (i->tqparent()==item) { + for (TQListViewItem *i = selectedItem(); i; i = i->parent()) { + if (i->parent()==item) { d->previouslyCollapsedGroupItem = item; d->childFormPreviouslyCollapsedGroupItem = selectedItem(); hideEditor(); |