summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KWordWrap.java
diff options
context:
space:
mode:
Diffstat (limited to 'kdejava/koala/org/kde/koala/KWordWrap.java')
-rw-r--r--kdejava/koala/org/kde/koala/KWordWrap.java24
1 files changed, 12 insertions, 12 deletions
diff --git a/kdejava/koala/org/kde/koala/KWordWrap.java b/kdejava/koala/org/kde/koala/KWordWrap.java
index 8ff87181..c30b86a2 100644
--- a/kdejava/koala/org/kde/koala/KWordWrap.java
+++ b/kdejava/koala/org/kde/koala/KWordWrap.java
@@ -2,10 +2,10 @@
package org.kde.koala;
import org.kde.qt.Qt;
-import org.kde.qt.QRect;
+import org.kde.qt.TQRect;
import org.kde.qt.QtSupport;
-import org.kde.qt.QPainter;
-import org.kde.qt.QFontMetrics;
+import org.kde.qt.TQPainter;
+import org.kde.qt.TQFontMetrics;
/**
@@ -59,7 +59,7 @@ public class KWordWrap implements QtSupport {
@short
*/
- public native QRect boundingRect();
+ public native TQRect boundingRect();
/**
@return the original string, with '\n' inserted where
the text is broken by the wordwrap algorithm.
@@ -80,7 +80,7 @@ public class KWordWrap implements QtSupport {
Draw the text that has been previously wrapped, at position x,y.
Flags are for alignment, e.g. Qt.AlignHCenter. Default is
Qt.AlignAuto.
- @param painter the QPainter to use.
+ @param painter the TQPainter to use.
@param x the horizontal position of the text
@param y the vertical position of the text
@param flags the ORed text alignment flags from the Qt namespace,
@@ -89,11 +89,11 @@ public class KWordWrap implements QtSupport {
accordingly)
@short Draw the text that has been previously wrapped, at position x,y.
*/
- public native void drawText(QPainter painter, int x, int y, int flags);
- public native void drawText(QPainter painter, int x, int y);
+ public native void drawText(TQPainter painter, int x, int y, int flags);
+ public native void drawText(TQPainter painter, int x, int y);
/**
Main method for wrapping text.
- @param fm Font metrics, for the chosen font. Better cache it, creating a QFontMetrics is expensive.
+ @param fm Font metrics, for the chosen font. Better cache it, creating a TQFontMetrics is expensive.
@param r Constraining rectangle. Only the width and height matter. With
negative height the complete text will be rendered
@param flags currently unused
@@ -103,8 +103,8 @@ public class KWordWrap implements QtSupport {
@short Main method for wrapping text.
*/
- public static native KWordWrap formatText(QFontMetrics fm, QRect r, int flags, String str, int len);
- public static native KWordWrap formatText(QFontMetrics fm, QRect r, int flags, String str);
+ public static native KWordWrap formatText(TQFontMetrics fm, TQRect r, int flags, String str, int len);
+ public static native KWordWrap formatText(TQFontMetrics fm, TQRect r, int flags, String str);
/**
Draws the string <code>t</code> at the given coordinates, if it does not
<code>fit</code> into <code>maxW</code> the text will be faded out.
@@ -117,7 +117,7 @@ public class KWordWrap implements QtSupport {
@param t the text to draw
@short Draws the string <code>t</code> at the given coordinates, if it does not <code>fit</code> into <code>maxW</code> the text will be faded out.
*/
- public static native void drawFadeoutText(QPainter p, int x, int y, int maxW, String t);
+ public static native void drawFadeoutText(TQPainter p, int x, int y, int maxW, String t);
/**
Draws the string <code>t</code> at the given coordinates, if it does not
<code>fit</code> into <code>maxW</code> the text will be truncated.
@@ -128,5 +128,5 @@ public class KWordWrap implements QtSupport {
@param t the text to draw
@short Draws the string <code>t</code> at the given coordinates, if it does not <code>fit</code> into <code>maxW</code> the text will be truncated.
*/
- public static native void drawTruncateText(QPainter p, int x, int y, int maxW, String t);
+ public static native void drawTruncateText(TQPainter p, int x, int y, int maxW, String t);
}