summaryrefslogtreecommitdiffstats
path: root/kchart/kdchart/KDChartListTable.h
diff options
context:
space:
mode:
Diffstat (limited to 'kchart/kdchart/KDChartListTable.h')
-rw-r--r--kchart/kdchart/KDChartListTable.h58
1 files changed, 29 insertions, 29 deletions
diff --git a/kchart/kdchart/KDChartListTable.h b/kchart/kdchart/KDChartListTable.h
index a11c44e8..5c022ffc 100644
--- a/kchart/kdchart/KDChartListTable.h
+++ b/kchart/kdchart/KDChartListTable.h
@@ -29,22 +29,22 @@
#ifndef __KDCHARTLISTTABLE_H__
#define __KDCHARTLISTTABLE_H__
-#include <qvaluelist.h>
-#include <qshared.h>
-#include <qtable.h>
+#include <tqvaluelist.h>
+#include <tqshared.h>
+#include <tqtable.h>
#include <KDChartDataIntern.h>
#include <KDChartTableBase.h>
-class KDCHART_EXPORT KDChartListTablePrivate : public QShared
+class KDCHART_EXPORT KDChartListTablePrivate : public TQShared
{
public:
- KDChartListTablePrivate() : QShared() {
+ KDChartListTablePrivate() : TQShared() {
row_count = 0;
col_count = 0;
}
- KDChartListTablePrivate( uint _rows, uint _cols ) : QShared() {
+ KDChartListTablePrivate( uint _rows, uint _cols ) : TQShared() {
for ( uint i = 0; i < _rows; i++ )
row_list.append( int() );
for ( uint j = 0; j < _cols; j++ )
@@ -56,7 +56,7 @@ class KDCHART_EXPORT KDChartListTablePrivate : public QShared
}
KDChartListTablePrivate( const KDChartListTablePrivate& _t ) :
- QShared(),
+ TQShared(),
matrix( _t.matrix ),
row_list( _t.row_list ),
col_list( _t.col_list ),
@@ -146,54 +146,54 @@ class KDCHART_EXPORT KDChartListTablePrivate : public QShared
void insertColumn( uint _c ) {
Q_ASSERT( _c <= col_count );
++col_count;
- QValueList < KDChartData > ::Iterator it;
+ TQValueList < KDChartData > ::Iterator it;
for ( uint i = 0; i < row_count; ++i ) {
it = matrix.at( i * col_count + _c );
matrix.insert( it, KDChartData() );
}
- QValueList < int > ::Iterator it2 = col_list.at( _c );
+ TQValueList < int > ::Iterator it2 = col_list.at( _c );
col_list.insert( it2, int() );
}
void insertRow( uint _r ) {
Q_ASSERT( _r <= row_count );
++row_count;
- QValueList < KDChartData > ::Iterator it = matrix.at( _r * col_count );
+ TQValueList < KDChartData > ::Iterator it = matrix.at( _r * col_count );
for ( uint i = 0; i < col_count; ++i )
matrix.insert( it, KDChartData() );
- QValueList < int > ::Iterator it2 = row_list.at( _r );
+ TQValueList < int > ::Iterator it2 = row_list.at( _r );
row_list.insert( it2, int() );
}
void removeColumn( uint _c ) {
Q_ASSERT( _c < col_count );
--col_count;
- QValueList < KDChartData > ::Iterator it;
+ TQValueList < KDChartData > ::Iterator it;
for ( uint i = 0; i < row_count; ++i ) {
it = matrix.at( i * col_count + _c );
matrix.remove( it );
}
- QValueList < int > ::Iterator it2 = col_list.at( _c );
+ TQValueList < int > ::Iterator it2 = col_list.at( _c );
col_list.remove( it2 );
}
void removeRow( uint _r ) {
Q_ASSERT( _r < row_count );
--row_count;
- QValueList < KDChartData > ::Iterator it = matrix.at( _r * col_count );
+ TQValueList < KDChartData > ::Iterator it = matrix.at( _r * col_count );
for ( uint i = 0; i < col_count; ++i )
it = matrix.remove( it );
- QValueList < int > ::Iterator it2 = row_list.at( _r );
+ TQValueList < int > ::Iterator it2 = row_list.at( _r );
row_list.remove( it2 );
}
- QValueList < KDChartData > matrix;
- QValueList < int > row_list;
- QValueList < int > col_list;
+ TQValueList < KDChartData > matrix;
+ TQValueList < int > row_list;
+ TQValueList < int > col_list;
uint col_count;
uint row_count;
@@ -210,14 +210,14 @@ class KDChartListTableData : public KDChartTableDataBase
/**
* Typedefs
*/
- typedef QValueList < KDChartData > ::Iterator Iterator;
- typedef QValueList < KDChartData > ::ConstIterator ConstIterator;
+ typedef TQValueList < KDChartData > ::Iterator Iterator;
+ typedef TQValueList < KDChartData > ::ConstIterator ConstIterator;
- typedef QValueList < int > ::Iterator RowIterator;
- typedef QValueList < int > ::ConstIterator ConstRowIterator;
+ typedef TQValueList < int > ::Iterator RowIterator;
+ typedef TQValueList < int > ::ConstIterator ConstRowIterator;
- typedef QValueList < int > ::Iterator ColIterator;
- typedef QValueList < int > ::ConstIterator ConstColIterator;
+ typedef TQValueList < int > ::Iterator ColIterator;
+ typedef TQValueList < int > ::ConstIterator ConstColIterator;
/**
* API
@@ -330,7 +330,7 @@ class KDChartListTableData : public KDChartTableDataBase
}
virtual bool cellCoord( uint _row, uint _col,
- QVariant& _value,
+ TQVariant& _value,
int coordinate=1 ) const
{
if( _row >= sh->row_count || _col >= sh->col_count )
@@ -349,8 +349,8 @@ class KDChartListTableData : public KDChartTableDataBase
}
virtual void setCell( uint _row, uint _col,
- const QVariant& _value1,
- const QVariant& _value2=QVariant() )
+ const TQVariant& _value1,
+ const TQVariant& _value2=TQVariant() )
{
detach();
const KDChartData element( _value1, _value2 );
@@ -432,9 +432,9 @@ class KDChartListTableData : public KDChartTableDataBase
sh->expand( _rows, _cols );
// adjust the usedRows / usedCols, if they had been set before
if( _useUsedCols )
- setUsedCols( QMIN( _usedCols, _cols ) );
+ setUsedCols( TQMIN( _usedCols, _cols ) );
if( _useUsedRows )
- setUsedRows( QMIN( _usedRows, _rows ) );
+ setUsedRows( TQMIN( _usedRows, _rows ) );
}
void setUsedRows( uint _rows ) {