summaryrefslogtreecommitdiffstats
path: root/kpovmodeler/pmtreeviewitem.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
commite69e8b1d09fb579316595b4e6a850e717358a8b1 (patch)
treea24fc20865f65772f530d16177520190594ffdd2 /kpovmodeler/pmtreeviewitem.cpp
parenteecec9afb81fdebb0f22e9da22635874c403f854 (diff)
downloadtdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.tar.gz
tdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.zip
TQt4 port kdegraphics
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1237557 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpovmodeler/pmtreeviewitem.cpp')
-rw-r--r--kpovmodeler/pmtreeviewitem.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/kpovmodeler/pmtreeviewitem.cpp b/kpovmodeler/pmtreeviewitem.cpp
index cac3b3c7..e167e86b 100644
--- a/kpovmodeler/pmtreeviewitem.cpp
+++ b/kpovmodeler/pmtreeviewitem.cpp
@@ -24,34 +24,34 @@
#include "pmfactory.h"
#include "pmtexturemap.h"
-PMTreeViewItem::PMTreeViewItem( PMObject* object, TQListView* parent )
- : TQListViewItem( parent )
+PMTreeViewItem::PMTreeViewItem( PMObject* object, TQListView* tqparent )
+ : TQListViewItem( tqparent )
{
m_pObject = object;
setDescriptions( );
initSelection( );
}
-PMTreeViewItem::PMTreeViewItem( PMObject* object, TQListViewItem* parent )
- : TQListViewItem( parent )
+PMTreeViewItem::PMTreeViewItem( PMObject* object, TQListViewItem* tqparent )
+ : TQListViewItem( tqparent )
{
m_pObject = object;
setDescriptions( );
initSelection( );
}
-PMTreeViewItem::PMTreeViewItem( PMObject* object, TQListView* parent,
+PMTreeViewItem::PMTreeViewItem( PMObject* object, TQListView* tqparent,
TQListViewItem* after )
- : TQListViewItem( parent, after )
+ : TQListViewItem( tqparent, after )
{
m_pObject = object;
setDescriptions( );
initSelection( );
}
-PMTreeViewItem::PMTreeViewItem( PMObject* object, TQListViewItem* parent,
+PMTreeViewItem::PMTreeViewItem( PMObject* object, TQListViewItem* tqparent,
TQListViewItem* after )
- : TQListViewItem( parent, after )
+ : TQListViewItem( tqparent, after )
{
m_pObject = object;
setDescriptions( );
@@ -72,13 +72,13 @@ void PMTreeViewItem::setDescriptions( )
else
text = m_pObject->description( );
- if( m_pObject->parent( ) )
+ if( m_pObject->tqparent( ) )
{
- if( m_pObject->parent( )->isA( "TextureMapBase" ) )
+ if( m_pObject->tqparent( )->isA( "TextureMapBase" ) )
{
- PMTextureMapBase* tm = ( PMTextureMapBase* ) m_pObject->parent( );
+ PMTextureMapBase* tm = ( PMTextureMapBase* ) m_pObject->tqparent( );
if( m_pObject->type( ) == tm->mapType( ) )
- text = TQString( "[%1] " ).arg( tm->mapValue( m_pObject ), 4, 'f', 2 ) + text;
+ text = TQString( "[%1] " ).tqarg( tm->mapValue( m_pObject ), 4, 'f', 2 ) + text;
}
}
setText( 0, text );
@@ -87,8 +87,8 @@ void PMTreeViewItem::setDescriptions( )
TQString PMTreeViewItem::key( int, bool ) const
{
TQString result;
- if( m_pObject->parent( ) )
- result.sprintf( "%06i", m_pObject->parent( )->findChild( m_pObject ) );
+ if( m_pObject->tqparent( ) )
+ result.sprintf( "%06i", m_pObject->tqparent( )->findChild( m_pObject ) );
else
result = "000000";
return result;
@@ -113,5 +113,5 @@ void PMTreeViewItem::initSelection( )
{
TQListViewItem::setSelected( m_pObject->isSelected( ) );
// if( m_pObject->isSelected( ) )
-// repaint( );
+// tqrepaint( );
}