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/pmtext.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/pmtext.cpp')
-rw-r--r-- | kpovmodeler/pmtext.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/kpovmodeler/pmtext.cpp b/kpovmodeler/pmtext.cpp index 21191cbc..9410228d 100644 --- a/kpovmodeler/pmtext.cpp +++ b/kpovmodeler/pmtext.cpp @@ -28,8 +28,8 @@ #include <klocale.h> -const QString c_defaultFont = QString( "" ); -const QString c_defaultText = QString( "" ); +const TQString c_defaultFont = TQString( "" ); +const TQString c_defaultText = TQString( "" ); const double c_defaultThickness = 1.0; const PMVector c_defaultOffset = PMVector( 0.0, 0.0 ); @@ -66,12 +66,12 @@ PMText::~PMText( ) { } -QString PMText::description( ) const +TQString PMText::description( ) const { return i18n( "text" ); } -void PMText::serialize( QDomElement& e, QDomDocument& doc ) const +void PMText::serialize( TQDomElement& e, TQDomDocument& doc ) const { e.setAttribute( "font", m_font ); e.setAttribute( "text", m_text ); @@ -117,7 +117,7 @@ void PMText::cleanUp( ) const Base::cleanUp( ); } -void PMText::setFont( const QString& f ) +void PMText::setFont( const TQString& f ) { if( f != m_font ) { @@ -128,7 +128,7 @@ void PMText::setFont( const QString& f ) } } -void PMText::setText( const QString& t ) +void PMText::setText( const TQString& t ) { if( t != m_text ) { @@ -162,7 +162,7 @@ void PMText::setOffset( const PMVector& o ) } } -PMDialogEditBase* PMText::editWidget( QWidget* parent ) const +PMDialogEditBase* PMText::editWidget( TQWidget* parent ) const { return new PMTextEdit( parent ); } @@ -205,13 +205,13 @@ void PMText::createViewStructure( ) // calculate needed points and lines int nlines = 0, npoints = 0; - QString file = PMResourceLocator::findFile( m_font ); + TQString file = PMResourceLocator::findFile( m_font ); PMTrueTypeFont* font = PMTrueTypeCache::font( file ); if( font && font->isValid( ) ) { - QTextStream str( &m_text, IO_ReadOnly ); - QChar c; + TQTextStream str( &m_text, IO_ReadOnly ); + TQChar c; PMTrueTypeOutline* ol; while( !str.atEnd( ) ) @@ -239,8 +239,8 @@ void PMText::createViewStructure( ) if( ( nlines > 0 ) && ( npoints > 0 ) && font ) { // create the view structure - QTextStream str( &m_text, IO_ReadOnly ); - QChar c, oldc; + TQTextStream str( &m_text, IO_ReadOnly ); + TQChar c, oldc; PMTrueTypeOutline* ol; double dp = 1.0 / s_steps; int i; |