summaryrefslogtreecommitdiffstats
path: root/libkdchart/KDChart.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libkdchart/KDChart.cpp')
-rw-r--r--libkdchart/KDChart.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/libkdchart/KDChart.cpp b/libkdchart/KDChart.cpp
index 4d8fd0c..415f013 100644
--- a/libkdchart/KDChart.cpp
+++ b/libkdchart/KDChart.cpp
@@ -302,7 +302,7 @@ void KDChart::paint( TQPainter* painter,
}
//qDebug("xxx" );
if( (params || data) && !setupGeometry( painter, params, data, drawRect ) ){
- qDebug("ERROR: KDChart::paint() could not calculate the chart geometry.");
+ qDebug("ERROR: KDChart::paint() could not calculate the chart tqgeometry.");
bOk = false;
}
}else{
@@ -388,7 +388,7 @@ void KDChart::initInterpreter( TQSInterpreter* interpreter )
void KDChart::initProject( TQSProject* project )
{
- project->createScript( TQString::fromLatin1( "KDCHART_Globals" ), globals() );
+ project->createScript( TQString::tqfromLatin1( "KDCHART_Globals" ), globals() );
privateInitInterpreter( project->interpreter() );
}
@@ -431,20 +431,20 @@ TQString KDChart::globals()
for( TQMapIterator<char*,double> it= intMap.begin(); it != intMap.end(); ++it ) {
// This is written this way to be efficient
- globals += TQString::fromLatin1( "const " );
+ globals += TQString::tqfromLatin1( "const " );
globals += it.key();
globals += " = ";
globals += TQString::number( it.data() );
globals += ";\n";
}
- globals += TQString::fromLatin1( "const KDCHART_AXIS_LABELS_AUTO_DATETIME_FORMAT=\"%1\";\n" )
- .arg( TQString::fromLatin1( KDCHART_AXIS_LABELS_AUTO_DATETIME_FORMAT ) );
- globals += TQString::fromLatin1( "const KDCHART_AXIS_LABELS_AUTO_LIMIT = 140319.64;\n" );
- globals += TQString::fromLatin1( "const KDCHART_DEFAULT_AXIS_GRID_COLOR = new Color(\"%1\");\n" )
- .arg(KDCHART_DEFAULT_AXIS_GRID_COLOR.name());
- globals += TQString::fromLatin1( "const KDCHART_DATA_VALUE_AUTO_COLOR = new Color(\"%1\");\n" )
- .arg( (KDCHART_DATA_VALUE_AUTO_COLOR)->name());
+ globals += TQString::tqfromLatin1( "const KDCHART_AXIS_LABELS_AUTO_DATETIME_FORMAT=\"%1\";\n" )
+ .tqarg( TQString::tqfromLatin1( KDCHART_AXIS_LABELS_AUTO_DATETIME_FORMAT ) );
+ globals += TQString::tqfromLatin1( "const KDCHART_AXIS_LABELS_AUTO_LIMIT = 140319.64;\n" );
+ globals += TQString::tqfromLatin1( "const KDCHART_DEFAULT_AXIS_GRID_COLOR = new Color(\"%1\");\n" )
+ .tqarg(KDCHART_DEFAULT_AXIS_GRID_COLOR.name());
+ globals += TQString::tqfromLatin1( "const KDCHART_DATA_VALUE_AUTO_COLOR = new Color(\"%1\");\n" )
+ .tqarg( (KDCHART_DATA_VALUE_AUTO_COLOR)->name());
TQMap<char*,TQColor> colorMap;
@@ -469,14 +469,14 @@ TQString KDChart::globals()
colorMap.insert( "TQt.darkYellow", TQt::darkYellow );
for( TQMapIterator<char*,TQColor> it2= colorMap.begin(); it2 != colorMap.end(); ++it2 ) {
// This is written this way to be efficient
- globals += TQString::fromLatin1( it2.key() );
- globals += TQString::fromLatin1( " = new Color( " );
+ globals += TQString::tqfromLatin1( it2.key() );
+ globals += TQString::tqfromLatin1( " = new Color( " );
globals += TQString::number( it2.data().red() );
globals += ',';
globals += TQString::number( it2.data().green() );
globals += ',';
globals += TQString::number( it2.data().blue() );
- globals += TQString::fromLatin1( " );\n" );
+ globals += TQString::tqfromLatin1( " );\n" );
}
//qDebug( "%s",globals.latin1() );
return globals;