diff options
Diffstat (limited to 'kspread/manipulator_data.cc')
-rw-r--r-- | kspread/manipulator_data.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kspread/manipulator_data.cc b/kspread/manipulator_data.cc index 101f8616..827c610a 100644 --- a/kspread/manipulator_data.cc +++ b/kspread/manipulator_data.cc @@ -39,16 +39,16 @@ AbstractDataManipulator::~AbstractDataManipulator () bool AbstractDataManipulator::process (Element* element) { - QRect range = element->rect().normalize(); + TQRect range = element->rect().normalize(); for (int col = range.left(); col <= range.right(); ++col) for (int row = range.top(); row <= range.bottom(); ++row) { Value val; - QString text; + TQString text; bool parse = false; FormatType fmtType = No_format; if (m_reverse) { // reverse - use the stored value - if (oldData.contains (col) && oldData[col].contains (row)) { + if (oldData.tqcontains (col) && oldData[col].tqcontains (row)) { val = oldData[col][row].val; text = oldData[col][row].text; fmtType = oldData[col][row].format; @@ -85,7 +85,7 @@ bool AbstractDataManipulator::preProcessing () Region::Iterator endOfList(cells().end()); for (Region::Iterator it = cells().begin(); it != endOfList; ++it) { - QRect range = (*it)->rect().normalize(); + TQRect range = (*it)->rect().normalize(); for (int col = range.left(); col <= range.right(); ++col) for (int row = range.top(); row <= range.bottom(); ++row) { @@ -123,7 +123,7 @@ Value DataManipulator::newValue (Element *element, int col, int row, *parsing = m_parsing; if (m_format != No_format) *formatType = m_format; - QRect range = element->rect().normalize(); + TQRect range = element->rect().normalize(); int colidx = range.left() - col; int rowidx = range.top() - row; return data.element (colidx, rowidx); @@ -142,15 +142,15 @@ Value ArrayFormulaManipulator::newValue (Element *element, int col, int row, bool *parsing, FormatType *) { *parsing = true; - QRect range = element->rect().normalize(); + TQRect range = element->rect().normalize(); int colidx = col - range.left(); int rowidx = row - range.top(); // fill in the cells ... top-left one gets the formula, the rest gets =INDEX // TODO: also fill in information about cells being a part of a range for GUI if (colidx || rowidx) { - return (cellRef + QString::number (rowidx+1) + ";" + - QString::number (colidx+1) + ")"); + return (cellRef + TQString::number (rowidx+1) + ";" + + TQString::number (colidx+1) + ")"); } else { Cell *cell = m_sheet->nonDefaultCell (col, row); cellRef = "=INDEX(" + cell->name() + ";"; @@ -176,7 +176,7 @@ bool ProtectedCheck::check () for (Region::Iterator it = cells().begin(); it != endOfList; ++it) { Region::Element *element = *it; - QRect range = element->rect().normalize(); + TQRect range = element->rect().normalize(); for (int col = range.left(); col <= range.right(); ++col) { |