diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-05 06:00:29 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-05 06:00:29 +0000 |
commit | fecb0e67b23e8b83ba7fc881bb57bc48c0852d62 (patch) | |
tree | 6b8614802f0d01b353bc9ba78aff2090846c198e /libkdchart/KDChartListTable.h | |
parent | dadc34655c3ab961b0b0b94a10eaaba710f0b5e8 (diff) | |
download | kmymoney-fecb0e67b23e8b83ba7fc881bb57bc48c0852d62.tar.gz kmymoney-fecb0e67b23e8b83ba7fc881bb57bc48c0852d62.zip |
TQt4 port kmymoney
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmymoney@1239855 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkdchart/KDChartListTable.h')
-rw-r--r-- | libkdchart/KDChartListTable.h | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/libkdchart/KDChartListTable.h b/libkdchart/KDChartListTable.h index a11c44e..5c022ff 100644 --- a/libkdchart/KDChartListTable.h +++ b/libkdchart/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 ) { |