summaryrefslogtreecommitdiffstats
path: root/kpovmodeler/pmcolor.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/pmcolor.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/pmcolor.cpp')
-rw-r--r--kpovmodeler/pmcolor.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/kpovmodeler/pmcolor.cpp b/kpovmodeler/pmcolor.cpp
index 0eb38b79..cac668e7 100644
--- a/kpovmodeler/pmcolor.cpp
+++ b/kpovmodeler/pmcolor.cpp
@@ -22,8 +22,8 @@
#include "pmdebug.h"
-#include <qtextstream.h>
-#include <qstring.h>
+#include <tqtextstream.h>
+#include <tqstring.h>
PMColor::PMColor( )
{
@@ -67,7 +67,7 @@ PMColor::PMColor( const PMVector& v )
}
}
-PMColor::PMColor( const QColor& c )
+PMColor::PMColor( const TQColor& c )
{
m_colorValue[0] = c.red( ) / 255.0;
m_colorValue[1] = c.green( ) / 255.0;
@@ -76,7 +76,7 @@ PMColor::PMColor( const QColor& c )
m_colorValue[4] = 0.0;
}
-QColor PMColor::toQColor( ) const
+TQColor PMColor::toQColor( ) const
{
double r, g, b, max = 0;
r = red( );
@@ -99,14 +99,14 @@ QColor PMColor::toQColor( ) const
g /= max;
b /= max;
}
- return QColor( ( int ) ( r * 255 + 0.5 ), ( int ) ( g * 255 + 0.5 ),
+ return TQColor( ( int ) ( r * 255 + 0.5 ), ( int ) ( g * 255 + 0.5 ),
( int ) ( b * 255 + 0.5 ) );
}
-QString PMColor::serialize( bool addColorKeyword ) const
+TQString PMColor::serialize( bool addColorKeyword ) const
{
- QString result;
- QTextStream str( &result, IO_WriteOnly );
+ TQString result;
+ TQTextStream str( &result, IO_WriteOnly );
if( addColorKeyword )
str << "color ";
@@ -146,10 +146,10 @@ QString PMColor::serialize( bool addColorKeyword ) const
return result;
}
-QString PMColor::serializeXML( ) const
+TQString PMColor::serializeXML( ) const
{
- QString result;
- QTextStream str( &result, IO_WriteOnly );
+ TQString result;
+ TQTextStream str( &result, IO_WriteOnly );
int i;
for( i = 0; i < 5; i++ )
@@ -177,11 +177,11 @@ bool PMColor::operator== ( const PMColor& c ) const
return true;
}
-bool PMColor::loadXML( const QString& str )
+bool PMColor::loadXML( const TQString& str )
{
- QString tmp( str );
- QTextStream s( &tmp, IO_ReadOnly );
- QString val;
+ TQString tmp( str );
+ TQTextStream s( &tmp, IO_ReadOnly );
+ TQString val;
bool ok;
int i;