summaryrefslogtreecommitdiffstats
path: root/kspread/manipulator.cc
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-15 15:32:11 -0600
committerTimothy Pearson <[email protected]>2011-12-15 15:32:11 -0600
commit94844816550ad672ccfcdc25659c625546239998 (patch)
treee35fc60fd736c645d59f6408af032774ad8023d3 /kspread/manipulator.cc
parent2a811c38c74c03648ecf857e566c44483cbad706 (diff)
downloadkoffice-94844816550ad672ccfcdc25659c625546239998.tar.gz
koffice-94844816550ad672ccfcdc25659c625546239998.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'kspread/manipulator.cc')
-rw-r--r--kspread/manipulator.cc100
1 files changed, 50 insertions, 50 deletions
diff --git a/kspread/manipulator.cc b/kspread/manipulator.cc
index bed111ba..f1a5838b 100644
--- a/kspread/manipulator.cc
+++ b/kspread/manipulator.cc
@@ -445,20 +445,20 @@ void FormatManipulator::copyFormat(TQValueList<layoutCell> & list,
/* Don't need to go through the loop twice...
for (int i = range.left(); i <= right; ++i)
{
- layoutColumn tmptqlayout;
- tmptqlayout.col = i;
- tmptqlayout.l = new ColumnFormat( m_sheet, i );
- tmptqlayout.l->copy( *(m_sheet->columnFormat( i )) );
- listCol.append(tmptqlayout);
+ layoutColumn tmplayout;
+ tmplayout.col = i;
+ tmplayout.l = new ColumnFormat( m_sheet, i );
+ tmplayout.l->copy( *(m_sheet->columnFormat( i )) );
+ listCol.append(tmplayout);
}
*/
for ( int col = range.left(); col <= right; ++col )
{
- layoutColumn tmptqlayout;
- tmptqlayout.col = col;
- tmptqlayout.l = new ColumnFormat( m_sheet, col );
- tmptqlayout.l->copy( *(m_sheet->columnFormat( col )) );
- listCol.append(tmptqlayout);
+ layoutColumn tmplayout;
+ tmplayout.col = col;
+ tmplayout.l = new ColumnFormat( m_sheet, col );
+ tmplayout.l->copy( *(m_sheet->columnFormat( col )) );
+ listCol.append(tmplayout);
cell = m_sheet->getFirstCellColumn( col );
while ( cell )
@@ -469,12 +469,12 @@ void FormatManipulator::copyFormat(TQValueList<layoutCell> & list,
continue;
}
- layoutCell tmptqlayout;
- tmptqlayout.col = col;
- tmptqlayout.row = cell->row();
- tmptqlayout.l = new Format( m_sheet, 0 );
- tmptqlayout.l->copy( *(m_sheet->cellAt( tmptqlayout.col, tmptqlayout.row )->format()) );
- list.append(tmptqlayout);
+ layoutCell tmplayout;
+ tmplayout.col = col;
+ tmplayout.row = cell->row();
+ tmplayout.l = new Format( m_sheet, 0 );
+ tmplayout.l->copy( *(m_sheet->cellAt( tmplayout.col, tmplayout.row )->format()) );
+ list.append(tmplayout);
cell = m_sheet->getNextCellDown( col, cell->row() );
}
@@ -487,12 +487,12 @@ void FormatManipulator::copyFormat(TQValueList<layoutCell> & list,
if ( range.left() <= col && right >= col
&& !cell->isPartOfMerged())
{
- layoutCell tmptqlayout;
- tmptqlayout.col = cell->column();
- tmptqlayout.row = cell->row();
- tmptqlayout.l = new Format( m_sheet, 0 );
- tmptqlayout.l->copy( *(m_sheet->cellAt( tmptqlayout.col, tmptqlayout.row )) );
- list.append(tmptqlayout);
+ layoutCell tmplayout;
+ tmplayout.col = cell->column();
+ tmplayout.row = cell->row();
+ tmplayout.l = new Format( m_sheet, 0 );
+ tmplayout.l->copy( *(m_sheet->cellAt( tmplayout.col, tmplayout.row )) );
+ list.append(tmplayout);
}
}
*/
@@ -501,11 +501,11 @@ void FormatManipulator::copyFormat(TQValueList<layoutCell> & list,
{
for ( int row = range.top(); row <= bottom; ++row )
{
- layoutRow tmptqlayout;
- tmptqlayout.row = row;
- tmptqlayout.l = new RowFormat( m_sheet, row );
- tmptqlayout.l->copy( *(m_sheet->rowFormat( row )) );
- listRow.append(tmptqlayout);
+ layoutRow tmplayout;
+ tmplayout.row = row;
+ tmplayout.l = new RowFormat( m_sheet, row );
+ tmplayout.l->copy( *(m_sheet->rowFormat( row )) );
+ listRow.append(tmplayout);
cell = m_sheet->getFirstCellRow( row );
while ( cell )
@@ -515,12 +515,12 @@ void FormatManipulator::copyFormat(TQValueList<layoutCell> & list,
cell = m_sheet->getNextCellRight( cell->column(), row );
continue;
}
- layoutCell tmptqlayout;
- tmptqlayout.col = cell->column();
- tmptqlayout.row = row;
- tmptqlayout.l = new Format( m_sheet, 0 );
- tmptqlayout.l->copy( *(m_sheet->cellAt( cell->column(), row )->format()) );
- list.append(tmptqlayout);
+ layoutCell tmplayout;
+ tmplayout.col = cell->column();
+ tmplayout.row = row;
+ tmplayout.l = new Format( m_sheet, 0 );
+ tmplayout.l->copy( *(m_sheet->cellAt( cell->column(), row )->format()) );
+ list.append(tmplayout);
cell = m_sheet->getNextCellRight( cell->column(), row );
}
@@ -533,12 +533,12 @@ void FormatManipulator::copyFormat(TQValueList<layoutCell> & list,
if ( range.top() <= row && bottom >= row
&& !cell->isPartOfMerged())
{
- layoutCell tmptqlayout;
- tmptqlayout.col = cell->column();
- tmptqlayout.row = cell->row();
- tmptqlayout.l = new Format( m_sheet, 0 );
- tmptqlayout.l->copy( *(m_sheet->cellAt( tmptqlayout.col, tmptqlayout.row )) );
- list.append(tmptqlayout);
+ layoutCell tmplayout;
+ tmplayout.col = cell->column();
+ tmplayout.row = cell->row();
+ tmplayout.l = new Format( m_sheet, 0 );
+ tmplayout.l->copy( *(m_sheet->cellAt( tmplayout.col, tmplayout.row )) );
+ list.append(tmplayout);
}
}
*/
@@ -551,12 +551,12 @@ void FormatManipulator::copyFormat(TQValueList<layoutCell> & list,
Cell * cell = m_sheet->nonDefaultCell( col, row );
if ( !cell->isPartOfMerged() )
{
- layoutCell tmptqlayout;
- tmptqlayout.col = col;
- tmptqlayout.row = row;
- tmptqlayout.l = new Format( m_sheet, 0 );
- tmptqlayout.l->copy( *(m_sheet->cellAt( col, row )->format()) );
- list.append(tmptqlayout);
+ layoutCell tmplayout;
+ tmplayout.col = col;
+ tmplayout.row = row;
+ tmplayout.l = new Format( m_sheet, 0 );
+ tmplayout.l->copy( *(m_sheet->cellAt( col, row )->format()) );
+ list.append(tmplayout);
}
}
}
@@ -1444,20 +1444,20 @@ double AdjustColumnRowManipulator::adjustColumnHelper(Cell* cell, int col, int r
if ( cell->textWidth() > long_max )
{
double indent = 0.0;
- Format::Align tqalignment = cell->format()->align(cell->column(), cell->row());
- if (tqalignment == Format::Undefined)
+ Format::Align alignment = cell->format()->align(cell->column(), cell->row());
+ if (alignment == Format::Undefined)
{
if (cell->value().isNumber() || cell->isDate() || cell->isTime())
{
- tqalignment = Format::Right;
+ alignment = Format::Right;
}
else
{
- tqalignment = Format::Left;
+ alignment = Format::Left;
}
}
- if (tqalignment == Format::Left)
+ if (alignment == Format::Left)
{
indent = cell->format()->getIndent( cell->column(), cell->row() );
}