diff options
Diffstat (limited to 'kdejava/koala/org/kde/koala/KStringHandler.java')
-rw-r--r-- | kdejava/koala/org/kde/koala/KStringHandler.java | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/kdejava/koala/org/kde/koala/KStringHandler.java b/kdejava/koala/org/kde/koala/KStringHandler.java index 8b01ca9f..6897854a 100644 --- a/kdejava/koala/org/kde/koala/KStringHandler.java +++ b/kdejava/koala/org/kde/koala/KStringHandler.java @@ -3,9 +3,9 @@ package org.kde.koala; import org.kde.qt.Qt; import org.kde.qt.QtSupport; -import org.kde.qt.QRegExp; +import org.kde.qt.TQRegExp; import java.util.ArrayList; -import org.kde.qt.QFontMetrics; +import org.kde.qt.TQFontMetrics; /** @@ -209,8 +209,8 @@ public class KStringHandler implements QtSupport { @short Substitute characters at the beginning of a string by ". */ - public static native String lEmSqueeze(String name, QFontMetrics fontMetrics, int maxlen); - public static native String lEmSqueeze(String name, QFontMetrics fontMetrics); + public static native String lEmSqueeze(String name, TQFontMetrics fontMetrics, int maxlen); + public static native String lEmSqueeze(String name, TQFontMetrics fontMetrics); /** Substitute characters at the beginning of a string by "...". Similar to method above, except that maxlen is the width in pixels to truncate to @param name is the string to modify @@ -221,7 +221,7 @@ public class KStringHandler implements QtSupport { @short Substitute characters at the beginning of a string by ". */ - public static native String lPixelSqueeze(String name, QFontMetrics fontMetrics, int maxPixels); + public static native String lPixelSqueeze(String name, TQFontMetrics fontMetrics, int maxPixels); /** Substitute characters at the middle of a string by "...". @param str is the string to modify @param maxlen is the maximum length the modified string will have @@ -243,8 +243,8 @@ public class KStringHandler implements QtSupport { @short Substitute characters in the middle of a string by ". */ - public static native String cEmSqueeze(String name, QFontMetrics fontMetrics, int maxlen); - public static native String cEmSqueeze(String name, QFontMetrics fontMetrics); + public static native String cEmSqueeze(String name, TQFontMetrics fontMetrics, int maxlen); + public static native String cEmSqueeze(String name, TQFontMetrics fontMetrics); /** Substitute characters in the middle of a string by "...". Similar to method above, except that maxlen is the width in pixels to truncate to @param name is the string to modify @@ -255,7 +255,7 @@ public class KStringHandler implements QtSupport { @short Substitute characters in the middle of a string by ". */ - public static native String cPixelSqueeze(String name, QFontMetrics fontMetrics, int maxPixels); + public static native String cPixelSqueeze(String name, TQFontMetrics fontMetrics, int maxPixels); /** Substitute characters at the end of a string by "...". @param str is the string to modify @param maxlen is the maximum length the modified string will have @@ -277,8 +277,8 @@ public class KStringHandler implements QtSupport { @short Substitute characters at the end of a string by ". */ - public static native String rEmSqueeze(String name, QFontMetrics fontMetrics, int maxlen); - public static native String rEmSqueeze(String name, QFontMetrics fontMetrics); + public static native String rEmSqueeze(String name, TQFontMetrics fontMetrics, int maxlen); + public static native String rEmSqueeze(String name, TQFontMetrics fontMetrics); /** Substitute characters at the end of a string by "...". Similar to method above, except that maxlen is the width in pixels to truncate to @param name is the string to modify @@ -289,7 +289,7 @@ public class KStringHandler implements QtSupport { @short Substitute characters at the end of a string by ". */ - public static native String rPixelSqueeze(String name, QFontMetrics fontMetrics, int maxPixels); + public static native String rPixelSqueeze(String name, TQFontMetrics fontMetrics, int maxPixels); /** Match a filename. @param filename is the real decoded filename (or dirname @@ -346,7 +346,7 @@ public class KStringHandler implements QtSupport { will be extracted. The final token will be the remainder of the string. Example: <pre> - perlSplit(QRegExp("[! ]", "Split me up ! I'm bored ! OK ?", 3) + perlSplit(TQRegExp("[! ]", "Split me up ! I'm bored ! OK ?", 3) ArrayList contains: "Split", "me", "up ! I'm bored, OK ?" </pre> @param sep is the regular expression to use to delimit s. @@ -356,8 +356,8 @@ public class KStringHandler implements QtSupport { @short Split a String into an ArrayList in a similar fashion to the static ArrayList function in Qt, except you can specify a maximum number of tokens. */ - public static native ArrayList perlSplit(QRegExp sep, String s, int max); - public static native ArrayList perlSplit(QRegExp sep, String s); + public static native ArrayList perlSplit(TQRegExp sep, String s, int max); + public static native ArrayList perlSplit(TQRegExp sep, String s); /** This method auto-detects URLs in strings, and adds HTML markup to them so that richtext or HTML-enabled widgets (such as KActiveLabel) |