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 | e7366c97c998679efa80cf61c88e64a11a3d3c33 (patch) | |
tree | a161d2940165f6cc47c05f0271ad8e5f64ffe6e8 /kpovmodeler/pmtreeview.cpp | |
parent | da4be7880ff1de6415ab6256afd2514e64f5fa2e (diff) | |
download | tdegraphics-e7366c97c998679efa80cf61c88e64a11a3d3c33.tar.gz tdegraphics-e7366c97c998679efa80cf61c88e64a11a3d3c33.zip |
rename the following methods:
tqparent parent
tqmask mask
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpovmodeler/pmtreeview.cpp')
-rw-r--r-- | kpovmodeler/pmtreeview.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/kpovmodeler/pmtreeview.cpp b/kpovmodeler/pmtreeview.cpp index 03eb8f7b..8ec640d7 100644 --- a/kpovmodeler/pmtreeview.cpp +++ b/kpovmodeler/pmtreeview.cpp @@ -38,9 +38,9 @@ #include "pmobjectdrag.h" -PMTreeViewWidget::PMTreeViewWidget( PMPart* part, TQWidget* tqparent /*= 0*/, +PMTreeViewWidget::PMTreeViewWidget( PMPart* part, TQWidget* parent /*= 0*/, const char* name /*=0*/ ) - : PMViewBase( tqparent, name ) + : PMViewBase( parent, name ) { TQHBoxLayout* hl = new TQHBoxLayout( this ); PMTreeView* tv = new PMTreeView( part, this ); @@ -52,9 +52,9 @@ TQString PMTreeViewWidget::description( ) const return i18n( "Object Tree" ); } -PMTreeView::PMTreeView( PMPart* part, TQWidget* tqparent /*= 0*/, +PMTreeView::PMTreeView( PMPart* part, TQWidget* parent /*= 0*/, const char* name /*= 0*/ ) - : TQListView( tqparent, name ) + : TQListView( parent, name ) { addColumn( i18n( "Objects" ) ); header( )->hide( ); @@ -106,15 +106,15 @@ void PMTreeView::slotObjectChanged( PMObject* obj, const int mode, if( ( mode & PMCAdd ) && !( mode & PMCInsertError ) ) { // object was added - if( !obj->tqparent( ) ) + if( !obj->parent( ) ) { - // object has no tqparent, append it as top level item + // object has no parent, append it as top level item pTreeItem = new PMTreeViewItem( obj, this ); } else { - // find the tqparent in the listview - TQListViewItem* pParentTreeItem = findObject( obj->tqparent( ) ); + // find the parent in the listview + TQListViewItem* pParentTreeItem = findObject( obj->parent( ) ); if( pParentTreeItem ) { PMObject* hObj = obj->prevSibling( ); @@ -186,7 +186,7 @@ void PMTreeView::slotObjectChanged( PMObject* obj, const int mode, if( pTreeItem ) { PMTreeViewItem* p; - for( p = pTreeItem->tqparent( ); p; p = p->tqparent( ) ) + for( p = pTreeItem->parent( ); p; p = p->parent( ) ) p->setOpen( true ); pTreeItem->setSelected( true ); setCurrentItem( pTreeItem ); @@ -238,7 +238,7 @@ PMTreeViewItem* PMTreeView::findObject( const PMObject* obj ) { PMTreeViewItem* pTreeItem = 0; - if( !obj->tqparent( ) ) + if( !obj->parent( ) ) { // top level object pTreeItem = ( PMTreeViewItem* ) firstChild( ); @@ -248,7 +248,7 @@ PMTreeViewItem* PMTreeView::findObject( const PMObject* obj ) } else { - pTreeItem = findObject( obj->tqparent( ) ); + pTreeItem = findObject( obj->parent( ) ); if( pTreeItem ) { pTreeItem = ( PMTreeViewItem* ) pTreeItem->firstChild( ); @@ -269,7 +269,7 @@ void PMTreeView::selectItem( TQListViewItem* /*sitem*/ ) m_pSelectedObject = ( ( PMTreeViewItem* ) sitem )->object( ); - for( pItem = sitem->tqparent( ); pItem; pItem = pItem->tqparent( ) ) + for( pItem = sitem->parent( ); pItem; pItem = pItem->parent( ) ) pItem->setOpen( true ); ensureItemVisible( sitem ); setCurrentItem( sitem ); @@ -389,11 +389,11 @@ void PMTreeView::contentsMousePressEvent( TQMouseEvent * e ) else if( ( e->state( ) & ShiftButton ) && oldCurrent && m_pLastSelected ) { if( ( oldCurrent != m_pLastSelected ) && - ( oldCurrent->tqparent( ) == m_pLastSelected->tqparent( ) ) ) + ( oldCurrent->parent( ) == m_pLastSelected->parent( ) ) ) { specialAction = true; - // shift click, old current item has the same tqparent + // shift click, old current item has the same parent // as the new selection. Select all items between the two // items if( m_pLastSelected->object( )->isSelectable( ) ) @@ -628,8 +628,8 @@ void PMTreeView::viewportDragMoveEvent( TQDragMoveEvent *e ) accept = false; if( !obj->isReadOnly( ) ) accept = true; - if( obj->tqparent( ) ) - if( !obj->tqparent( )->isReadOnly( ) ) + if( obj->parent( ) ) + if( !obj->parent( )->isReadOnly( ) ) accept = true; } } @@ -733,7 +733,7 @@ void PMTreeView::keyPressEvent( TQKeyEvent* e ) accept = true; break; case TQt::Key_Left: - newSelection = current->tqparent( ); + newSelection = current->parent( ); accept = true; break; case TQt::Key_Right: |