diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-02 19:23:46 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-02 19:23:46 +0000 |
commit | eba47f8f0637f451e21348187591e1f1fd58ac74 (patch) | |
tree | 448f10b95c656604acc331a3236c1e59bde5c1ad /kpovmodeler/pmtreeviewitem.cpp | |
parent | c7e8736c69373f48b0401319757c742e8607431a (diff) | |
download | tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.tar.gz tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.zip |
TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpovmodeler/pmtreeviewitem.cpp')
-rw-r--r-- | kpovmodeler/pmtreeviewitem.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/kpovmodeler/pmtreeviewitem.cpp b/kpovmodeler/pmtreeviewitem.cpp index 72562f78..cac3b3c7 100644 --- a/kpovmodeler/pmtreeviewitem.cpp +++ b/kpovmodeler/pmtreeviewitem.cpp @@ -24,34 +24,34 @@ #include "pmfactory.h" #include "pmtexturemap.h" -PMTreeViewItem::PMTreeViewItem( PMObject* object, QListView* parent ) - : QListViewItem( parent ) +PMTreeViewItem::PMTreeViewItem( PMObject* object, TQListView* parent ) + : TQListViewItem( parent ) { m_pObject = object; setDescriptions( ); initSelection( ); } -PMTreeViewItem::PMTreeViewItem( PMObject* object, QListViewItem* parent ) - : QListViewItem( parent ) +PMTreeViewItem::PMTreeViewItem( PMObject* object, TQListViewItem* parent ) + : TQListViewItem( parent ) { m_pObject = object; setDescriptions( ); initSelection( ); } -PMTreeViewItem::PMTreeViewItem( PMObject* object, QListView* parent, - QListViewItem* after ) - : QListViewItem( parent, after ) +PMTreeViewItem::PMTreeViewItem( PMObject* object, TQListView* parent, + TQListViewItem* after ) + : TQListViewItem( parent, after ) { m_pObject = object; setDescriptions( ); initSelection( ); } -PMTreeViewItem::PMTreeViewItem( PMObject* object, QListViewItem* parent, - QListViewItem* after ) - : QListViewItem( parent, after ) +PMTreeViewItem::PMTreeViewItem( PMObject* object, TQListViewItem* parent, + TQListViewItem* after ) + : TQListViewItem( parent, after ) { m_pObject = object; setDescriptions( ); @@ -60,7 +60,7 @@ PMTreeViewItem::PMTreeViewItem( PMObject* object, QListViewItem* parent, void PMTreeViewItem::setDescriptions( ) { - QString text; + TQString text; setPixmap( 0, SmallIcon( m_pObject->pixmap( ), PMFactory::instance( ) ) ); if( m_pObject->canHaveName( ) ) @@ -78,15 +78,15 @@ void PMTreeViewItem::setDescriptions( ) { PMTextureMapBase* tm = ( PMTextureMapBase* ) m_pObject->parent( ); if( m_pObject->type( ) == tm->mapType( ) ) - text = QString( "[%1] " ).arg( tm->mapValue( m_pObject ), 4, 'f', 2 ) + text; + text = TQString( "[%1] " ).arg( tm->mapValue( m_pObject ), 4, 'f', 2 ) + text; } } setText( 0, text ); } -QString PMTreeViewItem::key( int, bool ) const +TQString PMTreeViewItem::key( int, bool ) const { - QString result; + TQString result; if( m_pObject->parent( ) ) result.sprintf( "%06i", m_pObject->parent( )->findChild( m_pObject ) ); else @@ -102,7 +102,7 @@ void PMTreeViewItem::setSelected( bool select ) // ignore selections during a move event if( treeview->acceptSelect( ) ) { - QListViewItem::setSelected( select ); + TQListViewItem::setSelected( select ); if( ws != isSelected( ) ) treeview->itemSelected( this, isSelected( ) ); @@ -111,7 +111,7 @@ void PMTreeViewItem::setSelected( bool select ) void PMTreeViewItem::initSelection( ) { - QListViewItem::setSelected( m_pObject->isSelected( ) ); + TQListViewItem::setSelected( m_pObject->isSelected( ) ); // if( m_pObject->isSelected( ) ) // repaint( ); } |