summaryrefslogtreecommitdiffstats
path: root/kugar/lib/mreportsection.h
diff options
context:
space:
mode:
Diffstat (limited to 'kugar/lib/mreportsection.h')
-rw-r--r--kugar/lib/mreportsection.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/kugar/lib/mreportsection.h b/kugar/lib/mreportsection.h
index 704daf4b..1121e010 100644
--- a/kugar/lib/mreportsection.h
+++ b/kugar/lib/mreportsection.h
@@ -11,8 +11,8 @@
#ifndef MREPORTSECTION_H
#define MREPORTSECTION_H
-#include <qptrlist.h>
-#include <qobject.h>
+#include <tqptrlist.h>
+#include <tqobject.h>
#include "mlineobject.h"
#include "mlabelobject.h"
@@ -27,7 +27,7 @@
namespace Kugar
{
-class MReportSection : public QObject
+class MReportSection : public TQObject
{
public:
@@ -53,18 +53,18 @@ protected:
/** Page number - used by special fields */
int pageNumber;
/** Report date - used by special fields */
- QDate reportDate;
+ TQDate reportDate;
/** Section's line collection */
- QPtrList<MLineObject> lines;
+ TQPtrList<MLineObject> lines;
/** Section's label collection */
- QPtrList<MLabelObject> labels;
+ TQPtrList<MLabelObject> labels;
/** Section's special field collection */
- QPtrList<MSpecialObject> specialFields;
+ TQPtrList<MSpecialObject> specialFields;
/** Section's calculated field collection */
- QPtrList<MCalcObject> calculatedFields;
+ TQPtrList<MCalcObject> calculatedFields;
/** Section's field collection (for use as report variables) */
- QPtrList<MFieldObject> fields;
+ TQPtrList<MFieldObject> fields;
public:
/** Adds a new line object to the section's line collection */
@@ -88,25 +88,25 @@ public:
/** Set the current page number - used by special fields */
void setPageNumber( int page );
/** Set the current date - used by special fields */
- void setReportDate( QDate date );
+ void setReportDate( TQDate date );
/** Sets the print frequency of the section */
void setPrintFrequency( int printFrequency );
/** Returns the print frequency of the section */
int printFrequency();
/** Returns the name of the bound field for the calculated field object at the given index */
- QString getCalcFieldName( int idx );
+ TQString getCalcFieldName( int idx );
/** Returns the index of the calculated field object for the given bound field */
- int getCalcFieldIndex( QString field );
+ int getCalcFieldIndex( TQString field );
/** Sets the data for the specified calculated field */
- void setCalcFieldData( int idx, QString data );
+ void setCalcFieldData( int idx, TQString data );
/** Sets the data for the all calculated fields - list size must match number of calculated fields */
- void setCalcFieldData( QPtrList<QMemArray<double> >* values );
+ void setCalcFieldData( TQPtrList<TQMemArray<double> >* values );
/** Returns the number of calculated fields in the section */
int getCalcFieldCount();
/** Sets the field data */
- void setFieldData( QString name, QString data );
+ void setFieldData( TQString name, TQString data );
/** Draws the section to the specified painter & x/y-offsets */
- virtual void draw( QPainter* p, int xoffset, int yoffset );
+ virtual void draw( TQPainter* p, int xoffset, int yoffset );
/** Frees all resources allocated by the report section */
virtual void clear();
@@ -114,7 +114,7 @@ protected:
/** Frees base resources allocated by the report section */
void clearBase();
/** Draws the section base objects to the specified painter & x/y offsets */
- void drawObjects( QPainter* p, int xoffset, int yoffset );
+ void drawObjects( TQPainter* p, int xoffset, int yoffset );
private:
/** Copies member data from one object to another.