summaryrefslogtreecommitdiffstats
path: root/kugar/lib/mreportsection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kugar/lib/mreportsection.cpp')
-rw-r--r--kugar/lib/mreportsection.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/kugar/lib/mreportsection.cpp b/kugar/lib/mreportsection.cpp
index 9712407a..1184d773 100644
--- a/kugar/lib/mreportsection.cpp
+++ b/kugar/lib/mreportsection.cpp
@@ -17,14 +17,14 @@ namespace Kugar
/** Constructor */
MReportSection::MReportSection()
{
- // Set geometry
+ // Set tqgeometry
height = 50;
// Set print frequency
frequency = MReportSection::EveryPage;
// Set special field data
- reportDate = QDate::currentDate();
+ reportDate = TQDate::tqcurrentDate();
pageNumber = 0;
// Set the line list to AutoDelete
@@ -38,7 +38,7 @@ MReportSection::MReportSection()
}
/** Copy constructor */
-MReportSection::MReportSection( const MReportSection& mReportSection ) /*: QObject((QObject &) mReportSection)*/
+MReportSection::MReportSection( const MReportSection& mReportSection ) /*: TQObject((TQObject &) mReportSection)*/
{
copy( &mReportSection );
}
@@ -53,7 +53,7 @@ MReportSection MReportSection::operator=( const MReportSection& mReportSection )
copy( &mReportSection );
// Copy the base class's data
- //((QObject &) *this) = mReportSection;
+ //((TQObject &) *this) = mReportSection;
return *this;
}
@@ -146,7 +146,7 @@ void MReportSection::setPageNumber( int page )
}
/** Set the current date - used by special fields */
-void MReportSection::setReportDate( QDate date )
+void MReportSection::setReportDate( TQDate date )
{
reportDate = date;
}
@@ -164,7 +164,7 @@ int MReportSection::printFrequency()
}
/** Returns the name of the bound field for the calculated field object at the given index */
-QString MReportSection::getCalcFieldName( int idx )
+TQString MReportSection::getCalcFieldName( int idx )
{
MCalcObject * field = calculatedFields.at( idx );
@@ -172,7 +172,7 @@ QString MReportSection::getCalcFieldName( int idx )
}
/** Sets the data for the specified calculated field */
-void MReportSection::setCalcFieldData( int idx, QString data )
+void MReportSection::setCalcFieldData( int idx, TQString data )
{
MCalcObject * field = calculatedFields.at( idx );
@@ -180,7 +180,7 @@ void MReportSection::setCalcFieldData( int idx, QString data )
}
/** Sets the data for the all calculated fields - list size must number of calculated fields */
-void MReportSection::setCalcFieldData( QPtrList<QMemArray<double> >* values )
+void MReportSection::setCalcFieldData( TQPtrList<TQMemArray<double> >* values )
{
MCalcObject * field;
int i = 0;
@@ -191,19 +191,19 @@ void MReportSection::setCalcFieldData( QPtrList<QMemArray<double> >* values )
switch ( field->getCalculationType() )
{
case MCalcObject::Count:
- field->setText( QString::number( MUtil::count( values->at( i ) ) ) );
+ field->setText( TQString::number( MUtil::count( values->at( i ) ) ) );
break;
case MCalcObject::Sum:
- field->setText( QString::number( MUtil::sum( values->at( i ) ), 'f', 2 ) );
+ field->setText( TQString::number( MUtil::sum( values->at( i ) ), 'f', 2 ) );
break;
case MCalcObject::Average:
- field->setText( QString::number( MUtil::average( values->at( i ) ) ) );
+ field->setText( TQString::number( MUtil::average( values->at( i ) ) ) );
break;
case MCalcObject::Variance:
- field->setText( QString::number( MUtil::variance( values->at( i ) ) ) );
+ field->setText( TQString::number( MUtil::variance( values->at( i ) ) ) );
break;
case MCalcObject::StandardDeviation:
- field->setText( QString::number( MUtil::stdDeviation( values->at( i ) ) ) );
+ field->setText( TQString::number( MUtil::stdDeviation( values->at( i ) ) ) );
break;
}
i++;
@@ -211,7 +211,7 @@ void MReportSection::setCalcFieldData( QPtrList<QMemArray<double> >* values )
}
/** Returns the index of the calculated field object for the given bound field */
-int MReportSection::getCalcFieldIndex( QString field )
+int MReportSection::getCalcFieldIndex( TQString field )
{
MCalcObject * tmpField;
@@ -231,13 +231,13 @@ int MReportSection::getCalcFieldCount()
}
/** Draws the section to the specified painter & x/y-offsets */
-void MReportSection::draw( QPainter* p, int xoffset, int yoffset )
+void MReportSection::draw( TQPainter* p, int xoffset, int yoffset )
{
drawObjects( p, xoffset, yoffset );
}
/** Draws the section base objects to the specified painter & x/y offsets */
-void MReportSection::drawObjects( QPainter* p, int xoffset, int yoffset )
+void MReportSection::drawObjects( TQPainter* p, int xoffset, int yoffset )
{
MLineObject * line;
MLabelObject* label;
@@ -293,7 +293,7 @@ void MReportSection::drawObjects( QPainter* p, int xoffset, int yoffset )
Used by the copy constructor and assignment operator */
void MReportSection::copy( const MReportSection* mReportSection )
{
- // Copy the section's geometry
+ // Copy the section's tqgeometry
height = mReportSection->height;
// Copy the print frequency
@@ -311,7 +311,7 @@ void MReportSection::copy( const MReportSection* mReportSection )
calculatedFields = mReportSection->calculatedFields;
}
-void MReportSection::setFieldData( QString name, QString data )
+void MReportSection::setFieldData( TQString name, TQString data )
{
MFieldObject * field;
for ( field = fields.first(); field != 0; field = fields.next() )