summaryrefslogtreecommitdiffstats
path: root/lib/kformula/formulacursor.h
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 /lib/kformula/formulacursor.h
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 'lib/kformula/formulacursor.h')
-rw-r--r--lib/kformula/formulacursor.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/lib/kformula/formulacursor.h b/lib/kformula/formulacursor.h
index 72cfb178..1aa5d8bf 100644
--- a/lib/kformula/formulacursor.h
+++ b/lib/kformula/formulacursor.h
@@ -21,7 +21,7 @@
#ifndef FORMULACURSOR_H
#define FORMULACURSOR_H
-#include <qstring.h>
+#include <tqstring.h>
#include "basicelement.h"
#include "kformuladefs.h"
@@ -104,7 +104,7 @@ public:
* Draws the cursor at its current position.
* The cursor will always be drawn in xor mode.
*/
- void draw( QPainter&, const ContextStyle& context, StyleAttributes& style,
+ void draw( TQPainter&, const ContextStyle& context, StyleAttributes& style,
bool smallCursor, bool activeCursor );
@@ -152,19 +152,19 @@ public:
void insert(BasicElement*, Direction = beforeCursor);
/**
- * Inserts the listed children at the current position.
+ * Inserts the listed tqchildren at the current position.
* Ignores the selection.
* The list will be emptied.
*/
- void insert(QPtrList<BasicElement>&,
+ void insert(TQPtrList<BasicElement>&,
Direction = beforeCursor);
/**
- * Removes the current selected children and returns them.
+ * Removes the current selected tqchildren and returns them.
* The cursor needs to be normal (that is be inside a SequenceElement)
* for this to have any effect.
*/
- void remove(QPtrList<BasicElement>&,
+ void remove(TQPtrList<BasicElement>&,
Direction = beforeCursor);
@@ -182,7 +182,7 @@ public:
BasicElement* replaceByMainChildContent(Direction = beforeCursor);
/**
- * Trys to find the element we are the main child of and replace
+ * Trys to find the element we are the main child of and tqreplace
* it with our content.
*
* This is simply another form of replaceByMainChildContent. You
@@ -200,8 +200,8 @@ public:
// The range that is selected. Makes no sense if there is
// no selection.
- int getSelectionStart() const { return QMIN(getPos(), getMark()); }
- int getSelectionEnd() const { return QMAX(getPos(), getMark()); }
+ int getSelectionStart() const { return TQMIN(getPos(), getMark()); }
+ int getSelectionEnd() const { return TQMAX(getPos(), getMark()); }
/**
@@ -291,19 +291,19 @@ public:
/**
* Stores the currently selected elements inside a dom.
*/
- void copy( QDomDocument& doc );
+ void copy( TQDomDocument& doc );
/**
* Inserts the elements that could be read from the dom into
* the list. Returns true on success.
*/
- bool buildElementsFromDom( QDomElement root, QPtrList<BasicElement>& list );
+ bool buildElementsFromDom( TQDomElement root, TQPtrList<BasicElement>& list );
/**
* Inserts the elements that could be read from the MathML dom into
* the list. Returns true on success.
*/
- bool buildElementsFromMathMLDom( QDomElement root, QPtrList<BasicElement>& list );
+ bool buildElementsFromMathMLDom( TQDomElement root, TQPtrList<BasicElement>& list );
// undo/redo support
@@ -341,7 +341,7 @@ public:
void setCursorData(CursorData* data);
/**
- * The element is going to leave the formula with and all its children.
+ * The element is going to leave the formula with and all its tqchildren.
*/
void elementWillVanish(BasicElement* element);
@@ -409,7 +409,7 @@ private:
/**
* The position the cursor in on inside the element.
- * Might be anything from 0 to current->children->size().
+ * Might be anything from 0 to current->tqchildren->size().
*
* This is where new elements are put in.
*/