summaryrefslogtreecommitdiffstats
path: root/kspread/manipulator_data.cc
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kspread/manipulator_data.cc
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz
koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kspread/manipulator_data.cc')
-rw-r--r--kspread/manipulator_data.cc18
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)
{