summaryrefslogtreecommitdiffstats
path: root/kpovmodeler/pmheightfield.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/pmheightfield.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/pmheightfield.cpp')
-rw-r--r--kpovmodeler/pmheightfield.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/kpovmodeler/pmheightfield.cpp b/kpovmodeler/pmheightfield.cpp
index e729282a..6806437a 100644
--- a/kpovmodeler/pmheightfield.cpp
+++ b/kpovmodeler/pmheightfield.cpp
@@ -29,8 +29,8 @@
#include <klocale.h>
const PMHeightField::HeightFieldType c_defaultType = PMHeightField::HFgif;
-const QString c_defaultTypeText = QString( "gif" );
-const QString c_defaultFileName = QString( "" );
+const TQString c_defaultTypeText = TQString( "gif" );
+const TQString c_defaultFileName = TQString( "" );
const bool c_defaultHierarchy = true;
const bool c_defaultSmooth = false;
const double c_defaultWaterLevel = 0.0;
@@ -82,12 +82,12 @@ PMHeightField::~PMHeightField( )
delete m_pROAM;
}
-QString PMHeightField::description( ) const
+TQString PMHeightField::description( ) const
{
return i18n( "height field" );
}
-void PMHeightField::serialize( QDomElement& e, QDomDocument& doc ) const
+void PMHeightField::serialize( TQDomElement& e, TQDomDocument& doc ) const
{
e.setAttribute( "hf_type", typeToString( m_hfType ) );
e.setAttribute( "file_name", m_fileName );
@@ -146,7 +146,7 @@ void PMHeightField::setHeightFieldType( PMHeightField::HeightFieldType t )
}
}
-void PMHeightField::setFileName( const QString& f )
+void PMHeightField::setFileName( const TQString& f )
{
if( f != m_fileName )
{
@@ -200,7 +200,7 @@ void PMHeightField::setWaterLevel( double wl )
}
}
-PMDialogEditBase* PMHeightField::editWidget( QWidget* parent ) const
+PMDialogEditBase* PMHeightField::editWidget( TQWidget* parent ) const
{
return new PMHeightFieldEdit( parent );
}
@@ -396,37 +396,37 @@ PMViewStructure* PMHeightField::defaultViewStructure( ) const
return s_pDefaultViewStructure;
}
-QString PMHeightField::typeToString( PMHeightField::HeightFieldType t )
+TQString PMHeightField::typeToString( PMHeightField::HeightFieldType t )
{
- QString s;
+ TQString s;
switch( t )
{
case HFgif:
- s = QString( "gif" );
+ s = TQString( "gif" );
break;
case HFtga:
- s = QString( "tga" );
+ s = TQString( "tga" );
break;
case HFpot:
- s = QString( "pot" );
+ s = TQString( "pot" );
break;
case HFpng:
- s = QString( "png" );
+ s = TQString( "png" );
break;
case HFpgm:
- s = QString( "pgm" );
+ s = TQString( "pgm" );
break;
case HFppm:
- s = QString( "ppm" );
+ s = TQString( "ppm" );
break;
case HFsys:
- s = QString( "sys" );
+ s = TQString( "sys" );
break;
}
return s;
}
-PMHeightField::HeightFieldType PMHeightField::stringToType( const QString &str )
+PMHeightField::HeightFieldType PMHeightField::stringToType( const TQString &str )
{
HeightFieldType t = HFgif;
if( str == "gif" )