summaryrefslogtreecommitdiffstats
path: root/kpovmodeler/pmmesh.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
commiteba47f8f0637f451e21348187591e1f1fd58ac74 (patch)
tree448f10b95c656604acc331a3236c1e59bde5c1ad /kpovmodeler/pmmesh.cpp
parentc7e8736c69373f48b0401319757c742e8607431a (diff)
downloadtdegraphics-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/pmmesh.cpp')
-rw-r--r--kpovmodeler/pmmesh.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kpovmodeler/pmmesh.cpp b/kpovmodeler/pmmesh.cpp
index 571170a9..d143edf4 100644
--- a/kpovmodeler/pmmesh.cpp
+++ b/kpovmodeler/pmmesh.cpp
@@ -52,11 +52,11 @@ public:
/**
* Saves the triangles memento data
*/
- void setTriangleMementos( const QPtrList<PMMemento>& list )
+ void setTriangleMementos( const TQPtrList<PMMemento>& list )
{
if ( !m_bTriangleMementosSaved )
{
- QPtrListIterator<PMMemento> Itr( list );
+ TQPtrListIterator<PMMemento> Itr( list );
PMMemento* m;
while( ( m = Itr.current( ) ) != 0 )
{
@@ -71,7 +71,7 @@ public:
/**
* Returns the triangles memento data
*/
- QPtrList<PMMemento> triangleMementos( ) const
+ TQPtrList<PMMemento> triangleMementos( ) const
{
if ( !m_bTriangleMementosSaved )
kdError( PMArea ) << "Triangles mementos not saved in PMMeshMemento::triangleMementos\n";
@@ -82,7 +82,7 @@ public:
*/
bool triangleMementosSaved( ) const { return m_bTriangleMementosSaved; }
private:
- QPtrList<PMMemento> m_triangleMementos;
+ TQPtrList<PMMemento> m_triangleMementos;
bool m_bTriangleMementosSaved;
};
@@ -112,12 +112,12 @@ PMMesh::~PMMesh( )
{
}
-QString PMMesh::description( ) const
+TQString PMMesh::description( ) const
{
return i18n( "mesh" );
}
-void PMMesh::serialize( QDomElement& e, QDomDocument& doc ) const
+void PMMesh::serialize( TQDomElement& e, TQDomDocument& doc ) const
{
e.setAttribute( "hierarchy", m_hierarchy );
e.setAttribute( "enable_inside_vector", m_enableInsideVector );
@@ -189,7 +189,7 @@ void PMMesh::setInsideVector( const PMVector& iv )
}
}
-PMDialogEditBase* PMMesh::editWidget( QWidget* parent ) const
+PMDialogEditBase* PMMesh::editWidget( TQWidget* parent ) const
{
return new PMMeshEdit( parent );
}
@@ -233,8 +233,8 @@ void PMMesh::restoreMemento( PMMemento* s )
{
int numChildren = countChildren( );
PMMemento* tm;
- QPtrList<PMMemento> list = m->triangleMementos( );
- QPtrListIterator<PMMemento> Itr( list );
+ TQPtrList<PMMemento> list = m->triangleMementos( );
+ TQPtrListIterator<PMMemento> Itr( list );
for ( int i = 0; i < numChildren && ( tm = Itr.current( ) ) != 0; ++i, ++Itr )
childAt( i )->restoreMemento( tm );
}
@@ -331,8 +331,8 @@ void PMMesh::controlPointsChangedList( PMControlPointList& list, PMObjectList& o
{
int numChildren = countChildren( );
PMControlPoint* p;
- QValueList<pointToPoint>::ConstIterator ptpItr = m_pointToPointList.begin( );
- QPtrList<PMMemento> mementoList;
+ TQValueList<pointToPoint>::ConstIterator ptpItr = m_pointToPointList.begin( );
+ TQPtrList<PMMemento> mementoList;
PMTriangle *obj;
PMVector p0, p1, p2;
PM3DControlPoint* cp0, * cp1, * cp2;
@@ -346,7 +346,7 @@ void PMMesh::controlPointsChangedList( PMControlPointList& list, PMObjectList& o
int listID, pointID, numCP;
// have to cache changed values because checking once changes them to false
- QMemArray<bool> changed( list.count( ) );
+ TQMemArray<bool> changed( list.count( ) );
p = list.first( );
for ( int i = 0; p; ++i, p = list.next( ) )
changed[i] = p->changed( );